Add `OTEL_SERVICE_NAME` environment variable (#1677)

* Add OTEL_SERVICE_NAME environment variable

Closes #709
This commit is contained in:
Nikita Salnikov-Tarnovski 2021-05-24 16:54:33 +03:00 committed by GitHub
parent 4f77db44df
commit 56e0491893
1 changed files with 12 additions and 1 deletions

View File

@ -36,9 +36,20 @@ Attributes are grouped logically by the type of the concept that they described.
Certain attribute groups in this document have a **Required** column. For these groups if any attribute from the particular group is present in the Resource then all attributes that are marked as Required MUST be also present in the Resource. However it is also valid if the entire attribute group is omitted (i.e. none of the attributes from the particular group are present even though some of them are marked as Required in this document).
## Attributes with Special Handling
Given their significance some resource attributes are treated specifically as described below.
### Semantic Attributes with Dedicated Environment Variable
These are the attributes which MAY be configurable via a dedicated environment variable
as specified in [OpenTelemetry Environment Variable Specification](../../sdk-environment-variables.md):
- [`service.name`](#service)
## Semantic Attributes with SDK-provided Default Value
These are the the attributes which MUST be provided by the SDK
These are the attributes which MUST be provided by the SDK
as specified in the [Resource SDK specification](../sdk.md#sdk-provided-resource-attributes):
- [`service.name`](#service)