Skip to content
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

[baggage-processor] Add BaggageLogRecordProcessor #1576

Merged

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 a review from a team as a code owner November 28, 2024 16:38
baggage-processor/README.md Outdated Show resolved Hide resolved
}

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
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