-
Notifications
You must be signed in to change notification settings - Fork 871
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
Can we mark logging instrumentation as stable when the logs sdk is stable in 1.27.0? #8637
Comments
The log4j appender has a static inner builder class that is reflectively called when interpreting the xml configuration. My idea was maybe this builder could be moved to an internal package such that we can maintain the ability to change the setters. |
The
Considering that from the xml configuration it is impossible to tell that these setters are in an internal class users won't be able to tell that these properties are experimental. |
I agree. An internal class can only prevent that users use the appender programmatically, e.g. by extending it - which we could prevent by making it final. Would it be enough to add "experimental" in the feature names, as in "captureExperimentalAttributes"? |
It depends on what a non-experimental feature that is disabled by default means. If we can agree that disabled by default features can implicitly be treated as experimental then we could skip adding the
forces us to make all features experimental that do not have semantic conventions. |
I'd say adding an explicit "experimental" is more in the spirit of https://opentelemetry.io/docs/specs/otel/telemetry-stability/#stable-instrumentations
I tend to agree with that. |
👍
we'd need to push to get a semantic conventions working group established for marking these stable
this is using
👍
this is prefixing the attribute keys with |
I'd suggest we do that as a next step and mark code attributes as experimental for now.
we could simply remove the |
Log4j uses the term Context Data instead of MDC, and so currently the log4j instrumentation uses I could potentially see removing the full prefix and just adding MDC / Context Data keys directly as log attributes. |
before marking appenders stable, we should discuss/align on their dependence on GlobalOpenTelemetry, see #8688 (comment) |
Another logging appender stability blocker: open-telemetry/opentelemetry-specification#3518 |
I think exception semantic conventions on logs not being stable may be a blocker: https://github.com/open-telemetry/semantic-conventions/blob/main/specification/logs/semantic_conventions/exceptions.md |
this is a good issue to follow/contribute to: open-telemetry/semantic-conventions#134 |
Would be good to implement #8354 (comment) |
From the SIG meeting 2023-06-01:
The following aspects have to be considered:
Semantic Conventions
All semantic conventions are marked as experimental - but this should not hold us back from making the appenders stable.
Experimental features
An overview which features have semantic conventions.
thread.name
,thread.id
code.filepath
,code.namespace
,code.function
,code.lineno
Logback
Log4j
The text was updated successfully, but these errors were encountered: