opentelemetry_sdk/resource/
attributes.rs

1/// Logical name of the service.
2///
3/// MUST be the same for all instances of horizontally scaled services. If the value was not specified, SDKs MUST fallback to `unknown_service:` concatenated with [`process.executable.name`](process.md#process), e.g. `unknown_service:bash`. If `process.executable.name` is not available, the value MUST be set to `unknown_service`.
4///
5/// # Examples
6///
7/// - `shoppingcart`
8pub(crate) const SERVICE_NAME: &str = "service.name";
9
10/// The language of the telemetry SDK.
11pub(crate) const TELEMETRY_SDK_LANGUAGE: &str = "telemetry.sdk.language";
12
13/// The name of the telemetry SDK as defined above.
14///
15/// The OpenTelemetry SDK MUST set the `telemetry.sdk.name` attribute to `opentelemetry`.
16/// If another SDK, like a fork or a vendor-provided implementation, is used, this SDK MUST set the
17/// `telemetry.sdk.name` attribute to the fully-qualified class or module name of this SDK's main entry point
18/// or another suitable identifier depending on the language.
19/// The identifier `opentelemetry` is reserved and MUST NOT be used in this case.
20/// All custom identifiers SHOULD be stable across different versions of an implementation.
21///
22/// # Examples
23///
24/// - `opentelemetry`
25pub(crate) const TELEMETRY_SDK_NAME: &str = "telemetry.sdk.name";
26
27/// The version string of the telemetry SDK.
28///
29/// # Examples
30///
31/// - `1.2.3`
32pub(crate) const TELEMETRY_SDK_VERSION: &str = "telemetry.sdk.version";