Skip to content

Add Baggage Support #718

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

Open
cicoyle opened this issue Apr 9, 2025 · 1 comment
Open

Add Baggage Support #718

cicoyle opened this issue Apr 9, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@cicoyle
Copy link
Contributor

cicoyle commented Apr 9, 2025

The Dapr runtime has recently added support for baggage propagation. Here is the docs PR for reference as well. Baggage is a mechanism to propagate key-value pairs across service boundaries, which is useful for passing contextual information through distributed traces.

We should add a new function that users can use to add baggage propagation support, working for both gRPC and HTTP. This would enable users to provide baggage without having to import OpenTelemetry themselves.

consumer code example:

ctx = client.WithBaggage(ctx, map[string]string{
    "user-id": "12345",
    "tenant": "acme",
})

client.InvokeMethod(ctx, ...)

We should have tests for both gRPC + HTTP for this functionality.

@PrinsonF77
Copy link

Hey @cicoyle . I would like to take this up if it's still open and looking for contributions!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants