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
Update instrumentation/servlet/servlet-common/bootstrap/src/main/java…
…/io/opentelemetry/javaagent/bootstrap/servlet/ExperimentalSnippetHolder.java

Co-authored-by: Mateusz Rzeszutek <[email protected]>
  • Loading branch information
siyuniu-ms and Mateusz Rzeszutek committed Jun 7, 2023
commit 41b0abb8874ebaed0215ed39dbb8df37ff03ce3e
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,7 @@ public class ExperimentalSnippetHolder {

private static String getSnippetSetting() {
String result = ConfigPropertiesUtil.getString("otel.experimental.javascript-snippet");
if (result == null) {
return "";
} else {
return result;
}
return result == null ? "" : result;
}

public static void setSnippet(String newValue) {
Expand Down
Loading