opentelemetry.io
opentelemetry.io copied to clipboard
Baggage
Couple suggestions:
- The contents are too trace related. Baggage can be used for all signals, not just as span attributes. Metrics can have attributes populated from baggage. Same with logs
- I'd recommend to use a diff. example as
Activity.Current?.SetTag("AccountId", accountId)is .NET specific, which can confuse users as .NET calls its spans "Activity". Users will find it confusing. If we keep the same example, mention in code comment that Activity is .NET's representation of Span.