You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I saw the 19-digit decimal string is actually the lower half of trace ID in decimal format. I wonder why it returns decimal string by default instead of the 32 hex chars traceId like we see in datadog dashboard and why is the get128bitId is false by default. Is there any reason behind this? Thanks!
The text was updated successfully, but these errors were encountered:
francircle
changed the title
Hexadecimal/Decimal Trace ID format conversion
Decimal Trace ID format in logs
Jul 17, 2024
I found that this can be altered by setting the environment variable DD_TRACE_128_BIT_TRACEID_LOGGING_ENABLED=true but it looks like it may contain some bugs. I just sent the following message in the Datadog slack apm chanel: https://datadoghq.slack.com/archives/C3SH3KCQG/p1722447251471329
Hi team,
According to Datadog docs, the trace ID has 128 bits by default, which is equivalent to 32 hex characters like
66884212000000004443333311122222
.I am able to see traceId like this in datadog, but for my
winston
logger, which instrumented by using dd-trace plugin like thisI see the trace id in
dd
object is in another format, it's a 19-digit decimal string like5295287788888597036
.After I dug in the source code in
dd-trace-js
, I found this piece of logicI saw the 19-digit decimal string is actually the lower half of trace ID in decimal format. I wonder why it returns decimal string by default instead of the 32 hex chars traceId like we see in datadog dashboard and why is the
get128bitId
isfalse
by default. Is there any reason behind this? Thanks!The text was updated successfully, but these errors were encountered: