Skip to content

Add Baggage Support #1302

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 10, 2025 · 0 comments
Open

Add Baggage Support #1302

cicoyle opened this issue Apr 10, 2025 · 0 comments
Labels
kind/enhancement New feature or request

Comments

@cicoyle
Copy link
Contributor

cicoyle commented Apr 10, 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:

Map<String, String> baggage = new HashMap<>();
baggage.put("user-id", "12345");
baggage.put("tenant", "acme");

// Get context with baggage
DaprContext ctx = client.withBaggage(baggage);

client.InvokeMethod(ctx, ...)

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

@cicoyle cicoyle added the kind/enhancement New feature or request label Apr 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant