Open pellared opened 1 year ago
We should also probably call out that using trace.WithSampler
overrides the env vars.
is this only a go thing?
IMO not only Go. I think that the default value is wrongly defined in other languages. And also I think the clarification is needed for all languages.
Ok. I removed the "Go" from the title :)
@pellared turning this into a meta issue since it is relevant for all languages
Hi @svrnm, I would like to start working on this. Will start from Java first. Do we have any ideal format that we need to follow for this ? Any example from existing one's ?
Hi @svrnm, I would like to start working on this. Will start from Java first. Do we have any ideal format that we need to follow for this ? Any example from existing one's ?
Apologies for the late reply, I was out of office. We currently have https://github.com/open-telemetry/opentelemetry.io/pull/4199 open, so it might need that to be closed before we can add some words about variables. You can review that PR if you like and create a follow up when merged.
I think we should also document setting the environment variable in a top-level section in this guide. That can be especially helpful for development since you can just use the default, but then have production do something different.
Originally posted by @cartermp in https://github.com/open-telemetry/opentelemetry.io/pull/3318#pullrequestreview-1647152522
Also https://github.com/open-telemetry/opentelemetry.io/pull/3318#discussion_r1338917095
(edit by @svrnm)
Tracking: