Skip to content

[Logs] Add optional Event Name parameter to Logger.Enabled and LogRecordProcessor.Enabled#4489

Merged
reyang merged 6 commits intoopen-telemetry:mainfrom
pellared:add-opt-evt-name-enabled
May 13, 2025
Merged

[Logs] Add optional Event Name parameter to Logger.Enabled and LogRecordProcessor.Enabled#4489
reyang merged 6 commits intoopen-telemetry:mainfrom
pellared:add-opt-evt-name-enabled

Conversation

@pellared
Copy link
Member

@pellared pellared commented Apr 28, 2025

Fixes #4220

Already used by Rust; #4220 (comment):

Yes. Otel Rust already has more parameters for the Enabled() check.

We expect to use that in Etw/user_events exporters scenarios, where we ask the OSKernel about whether a given event is interesting or not. Its currently leveraging severity only, but we expect to leverage EventName(and scope too) in the future.

OTel Go prototype: open-telemetry/opentelemetry-go#6702

@pellared pellared changed the title [Logs] Add optional Event Name parameter to Logger.Enabled [Logs] Add optional Event Name parameter to Logger.Enabled and LogRecordProcessor.Enabled Apr 28, 2025
@pellared pellared marked this pull request as ready for review April 28, 2025 09:30
@pellared pellared requested review from a team April 28, 2025 09:30
@pellared pellared requested a review from cijothomas May 5, 2025 13:28
Copy link
Member

@cijothomas cijothomas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@reyang reyang merged commit 6eee38c into open-telemetry:main May 13, 2025
5 of 6 checks passed
@carlosalberto carlosalberto mentioned this pull request May 14, 2025
carlosalberto added a commit that referenced this pull request May 14, 2025
May 2025 Release.

### Context

- Drop reference to binary `Propagator`.

([#4490](#4490))

### Logs

- Add optional `Event Name` parameter to `Logger.Enabled` and
`LogRecordProcessor.Enabled`.

([#4489](#4489))

### Resource

- Add experimental resource detector name.

([#4461](#4461))

### OTEPs

- OTEP: Span Event API deprecation plan.

([#4430](#4430))
@pellared pellared deleted the add-opt-evt-name-enabled branch May 27, 2025 07:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add EventName parameter to Logger.Enabled

6 participants