Skip to content

Support customized Activity trace id generation #15216

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
lupengamzn opened this issue Jan 7, 2021 · 2 comments
Closed

Support customized Activity trace id generation #15216

lupengamzn opened this issue Jan 7, 2021 · 2 comments

Comments

@lupengamzn
Copy link

Hey,

So the .NET runtime provides APIs to generate Activity, which can be adopted and processed as trace context and eventually emitted to multiple backend vendors by OpenTelemetry .NET SDK for the purpose of tracing. Currently .NET runtime only allows an activity's trace id to be randomly generated and there is no public API available to override it. While for some backend vendors, trace context with a non-random customized trace id is more preferred. For instance, AWS X-Ray backend will only process trace context with a trace id containing a timestamp. In this case, is it possible for the runtime to support customized activity trace id, like adding API similar as Activity.SetTraceId()?

Previous discussion: open-telemetry/opentelemetry-specification#896

Many thanks

@cijothomas
Copy link

Please open this in the https://github.com/dotnet/runtime/issues repo.

@lupengamzn
Copy link
Author

Thanks @cijothomas , closing this and reopened in dotnet/runtime#46704

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants