Skip to content

Conversation

@cyrille-leclerc
Copy link
Member

@cyrille-leclerc cyrille-leclerc commented Nov 28, 2024

Description:

Support promoting Baggage attributes as log attributes the same we we can promote baggage attributes as span attributes.

Existing Issue(s):

Testing:

Enriched the BaggageProcessorCustomizerTest with tests for log entries.

Documentation:

README.md updated

Outstanding items:

We can enrich metrics with Baggage attributes the same way we enrich spans and logs because there is no equivalent for metrics to the Span Processor API and the Log Record PRocessor API in OTel SDK specifications.

@cyrille-leclerc cyrille-leclerc changed the title Add BaggageLogRecordProcessor [baggage-processor] Add BaggageLogRecordProcessor Nov 28, 2024
@cyrille-leclerc cyrille-leclerc marked this pull request as ready for review November 28, 2024 16:38
@cyrille-leclerc cyrille-leclerc requested review from a team and zeitlinger November 28, 2024 16:38
}

static BaggageSpanProcessor createBaggageSpanProcessor(List<String> keys) {
if (keys.size() == 1 && keys.get(0).equals("*")) {
Copy link
Member

Choose a reason for hiding this comment

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

nit: extract isWildcard method to be reused for logger

Co-authored-by: Gregor Zeitlinger <[email protected]>
@trask trask added this to the v1.42.0 milestone Nov 30, 2024
@trask trask merged commit 9ad072c into open-telemetry:main Dec 12, 2024
14 checks passed
@cyrille-leclerc cyrille-leclerc deleted the add-baggage-log-record-processor branch May 16, 2025 07:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants