-
Notifications
You must be signed in to change notification settings - Fork 1k
Disable JSP compile spans by default #15261
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
base: main
Are you sure you want to change the base?
Conversation
| - name: jsp-2.3 | ||
| display_name: JSP (JavaServer Pages) | ||
| description: | | ||
| This instrumentation enables view spans for JSP page rendering and compilation (view spans are disabled by default). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@trask the jsp compile spans are enabled by default. Should we disable them?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
|
| "io.opentelemetry.jsp-2.3", | ||
| JspCompilationContextInstrumentationSingletons::spanNameOnCompile) | ||
| .addAttributesExtractor(new CompilationAttributesExtractor()) | ||
| .setEnabled(ExperimentalConfig.get().viewTelemetryEnabled()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
view telemetry flag is usually used for view rendering but I think this is fine too
| attributes: [] | ||
| jsp: | ||
| - name: jsp-2.3 | ||
| display_name: JSP (JavaServer Pages) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually the instrumentation name is a bit misleading. It really applies only to jasper, which is the jsp engine used by tomcat and all (except liberty?) open source app servers. Weblogic and websphere have their own jsp engines. The view rendering part should work for all jsp engines, but the compilation part will probably make muzzle reject the instrumentation for non-jasper implementations. This is just a FYI.
Disabling the JSP compile spans by default. They can be re-enabled using the
otel.instrumentation.common.experimental.view-telemetry.enabled=trueconfiguration flagMetadata updates are part of #14096 and #14128