Custom Trace Id Generation #3192
Unanswered
perhapsmaple
asked this question in
Q&A
Replies: 1 comment
-
If you are looking to plugin your own random generator for traceid and spanid, it can be added through TracerProvider constructor - As an example, ETW exporter uses it's custom random-id generator - Note - please note the MD5 hash mayn't be ideal random id generator - the recommendation is to have one with true uniqueness and high entropy, with uniformly distributed over the entire 128-bit space. This is to ensure that sampling algorithms work properly over them. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm working on a distributed system where my application is split into several disconnected processes. Because these processes are not directly connected, I have no way to propagate my trace context and have to dynamically generate a trace id based on the file being processed. I am considering using MD5 to generating my trace id by hashing the name of the file being processed.
Is there an existing way that I can plug in this functionality into the SDK so that I can allow my trace id to be dynamically generated based on external parameters instead of using the default RandomGenerator? Is this the right approach for tackling this situation with completely disconnected processes?
Any help or improvements will be appreciated
Thanks
Beta Was this translation helpful? Give feedback.
All reactions