docs: clarify unit for OTEL_EXPORTER_OTLP_TIMEOUT default#4860
docs: clarify unit for OTEL_EXPORTER_OTLP_TIMEOUT default#4860ta-ke-inf wants to merge 3 commits intoopen-telemetry:mainfrom
Conversation
opentelemetry-sdk/src/opentelemetry/sdk/environment_variables/__init__.py
Show resolved
Hide resolved
emdneto
left a comment
There was a problem hiding this comment.
This reminded me that we need to update matrix compliance #4044 (comment)
I think it is worth having a quick note on this env var stating it is not compliant and referring to #4044.
…__init__.py Co-authored-by: Emídio Neto <9735060+emdneto@users.noreply.github.com>
Spec says it should be in milliseconds, but the current implementation is handling it in seconds, so that's why the Python SDK is not compliant. If you use the example as |
emdneto
left a comment
There was a problem hiding this comment.
I suggest we keep it in seconds as the implementation
Description
Clarify the unit for the documented default value of
OTEL_EXPORTER_OTLP_TIMEOUTin the SDK environment variables docs.The current docs show
Default: 10without stating the unit, which can lead to operators misinterpreting the value (e.g., 10ms vs 10s). This PR updates only the default line to make the unit explicit while keeping the surrounding wording consistent with existing env var docs.Fixes #4858
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Repro steps:
python -m pip install -r docs-requirements.txtcd docs && python -m sphinx -b html -D master_doc=sdk/environment_variables . _build/html_envvarsDoes This PR Require a Contrib Repo Change?
Checklist: