-
Notifications
You must be signed in to change notification settings - Fork 16
[FEATURE]: Support origin discovery via entity-id or container-id #193
Copy link
Copy link
Closed
Description
Describe the goal of the feature
Looking at dd-trace-python, I see that library performs container discovery by examining the /proc/ filesystem, and populates the Datadog-Entity-Id and Datadog-Container-Id headers accordingly.
Perhaps discovering these is out of scope of a C implementation, but would not at least looking for environment variables, DD_CONTAINER_ID and/or DD_ENTITY_ID be helpful?
(Getting container id is not guaranteed to work in cgroups2, depending on namespace, but the cgroup inode number apparently does...)
I also see the python lib populate the Datadog-External-Env with the DD_EXTERNAL_ENV environment variable, although I don't know what that is supposed to do...
Is your feature request related to a problem?
No response
Describe alternatives you've considered
No response
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels