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

feat: add LogProcessor to baggagecopy #6277

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Jesse0Michael
Copy link
Contributor

add a Log Record Processor to the baggagecopy package that copies members from baggage and adds them to the log record attributes.


mimics the baggagecopy Span Processor, that copies filtered baggage members from the parent span's context and adds them as span attributes, and instead filters baggage members from the log processor OnEmit context and adds them to the log record as attributes.

followed the prior art of the existing Span Processor closely to include baggage in logs.

add a Log Record Processor to the baggagecopy package that copies members from baggage and adds them to the log record attributes.
@Jesse0Michael Jesse0Michael requested a review from a team as a code owner October 26, 2024 01:22
Copy link

codecov bot commented Oct 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (main@6ed446f). Learn more about missing BASE report.

Additional details and impacted files

Impacted file tree graph

@@          Coverage Diff           @@
##             main   #6277   +/-   ##
======================================
  Coverage        ?   66.7%           
======================================
  Files           ?     193           
  Lines           ?   15551           
  Branches        ?       0           
======================================
  Hits            ?   10377           
  Misses          ?    4883           
  Partials        ?     291           
Files with missing lines Coverage Δ
processors/baggagecopy/log_processor.go 100.0% <100.0%> (ø)

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.

1 participant