feat(api-logs, sdk-logs)!: add Logger#enabled method#6371
feat(api-logs, sdk-logs)!: add Logger#enabled method#6371david-luna merged 27 commits intoopen-telemetry:mainfrom
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6371 +/- ##
==========================================
+ Coverage 95.71% 95.73% +0.01%
==========================================
Files 369 369
Lines 12461 12494 +33
Branches 2945 2956 +11
==========================================
+ Hits 11927 11961 +34
+ Misses 534 533 -1
🚀 New features to boost your workflow:
|
pichlermarc
left a comment
There was a problem hiding this comment.
thanks for working on this 🙌
A few more comments around the SDK impl.
| await Promise.all(this.processors.map(processor => processor.shutdown())); | ||
| } | ||
|
|
||
| public enabled(options: { |
There was a problem hiding this comment.
note for reviewer: IMO it must be implemented here since any of the processors may implement it and need to be called if so
trentm
left a comment
There was a problem hiding this comment.
Just a start at reviewing. I spent way too much time reading specs and other implementations and poking around.
Co-authored-by: Trent Mick <trentm@gmail.com>
Co-authored-by: Trent Mick <trentm@gmail.com>
trentm
left a comment
There was a problem hiding this comment.
Next review. I haven't looked at tests yet.
Co-authored-by: Trent Mick <trentm@gmail.com>
…try-js into add-logger-enabled
pichlermarc
left a comment
There was a problem hiding this comment.
looks good, thank you for tackling this 🙌
Co-authored-by: Marc Pichler <marc.pichler@dynatrace.com>
trentm
left a comment
There was a problem hiding this comment.
LGTM, just the changelog nit. Thanks!
| `NodeSDK` from `@opentelemetry/sdk-node` to get automatic environment variable configuration. | ||
| * fix(instrumentation-http)!: do not normalize hyphens to underscores in captured header attribute names if using stable semconv [#6381](https://github.com/open-telemetry/opentelemetry-js/issues/6381) @trentm | ||
| * With the `headersToSpanAttributes` option, one can specify that HTTP headers should be captured as span attributes named `http.{request,response}.header.HEADERNAME`. With old Semantic Conventions, the `HEADERNAME` normalizes hyphens to underscores, e.g. `http.response.header.content_length`. When stable HTTP semconv is enabled (via `OTEL_SEMCONV_STABILITY_OPT_IN`), hyphens are no longer changed, e.g. `http.response.header.content-length`. | ||
| * feat(api-logs, sdk-logs)!: add `enabled` method to Logger interface and implement it in logs API and SDK [#6371](https://github.com/open-telemetry/opentelemetry-js/pull/6371) @david-luna |
There was a problem hiding this comment.
We've done a release since, so this needs to be moved up to the top section.
|
@open-telemetry/browser-maintainers could you please check if all is fine? |
Which problem is this PR solving?
Closes #6351
Added as a breaking change since anyone implementing this interface now must to implement the new method.
Short description of the changes
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist: