Skip to content

Conversation

@himanshu808
Copy link
Collaborator

Adding traceid to logs so that all the logs (info/debug..) specific to a request can be bundled together.

Here traceid will be the adp request id based on the env and the env variables or will be some random uuid string generated by xdatly.

The key used in the logs is reqTraceId.

image

@himanshu808 himanshu808 self-assigned this Dec 10, 2025
@adranwit
Copy link
Contributor

can we have reqTraceId configurable

@himanshu808
Copy link
Collaborator Author

can we have reqTraceId configurable

Sorry but I don't follow you here. Can you please explain what do you mean when you say this?

Currently, it'll either be -

https://github.com/viant/xdatly/blob/main/handler/exec/context.go#L86 -- value of XDATLY_TRACING_HEADER env var header value (eg. adp-request-id for datly platform - https://github.vianttech.com/viant/platform/blob/main/helm/datly-platform/environment/values.ash3.production.yaml#L17)

OR

https://github.com/viant/xdatly/blob/main/handler/tracing/trace.go#L49 -- random uuid per request

@adranwit adranwit merged commit a544ab9 into master Dec 10, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants