Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snippet Injection Smoke Test #8655

Merged
merged 9 commits into from
Jun 7, 2023
Prev Previous commit
Next Next commit
Update ExperimentalSnippetHolder.java
  • Loading branch information
siyuniu-ms committed Jun 5, 2023
commit db97d54371aa3c53384315b193874808e04ad595
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@

package io.opentelemetry.javaagent.bootstrap.servlet;

import io.opentelemetry.instrumentation.api.internal.ConfigPropertiesUtil;
import java.util.concurrent.atomic.AtomicReference;

public class ExperimentalSnippetHolder {

private static final AtomicReference<String> snippet =
new AtomicReference<>(System.getProperty("otel.experimental.javascript-snippet", ""));
new AtomicReference<>(ConfigPropertiesUtil.getString("otel.experimental.javascript-snippet"));
siyuniu-ms marked this conversation as resolved.
Show resolved Hide resolved

public static void setSnippet(String newValue) {
snippet.compareAndSet("", newValue);
Expand Down