Skip to content

Commit 5f33dca

Browse files
committed
initial value change to empty string
1 parent eff7aba commit 5f33dca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

instrumentation/servlet/servlet-common/bootstrap/src/main/java/io/opentelemetry/javaagent/bootstrap/servlet/ExperimentalSnippetHolder.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ public class ExperimentalSnippetHolder {
1212
private static final AtomicReference<String> snippet = new AtomicReference<>("");
1313

1414
public static void setSnippet(String newValue) {
15-
snippet.compareAndSet(null, newValue);
15+
snippet.compareAndSet("", newValue);
16+
System.out.println("setSnippet to " + getSnippet());
1617
}
1718

1819
public static String getSnippet() {

0 commit comments

Comments
 (0)