We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 94754c5 + a2cce5e commit 75f35b7Copy full SHA for 75f35b7
Sources/OpenTelemetrySdk/Resources/EnvVarResource.swift
@@ -14,8 +14,7 @@ public struct EnvVarResource {
14
15
/// This resource information is loaded from the OC_RESOURCE_LABELS
16
/// environment variable.
17
- public static let resource = Resource(attributes: parseResourceAttributes(rawEnvAttributes: ProcessInfo.processInfo.environment[otelResourceAttributesEnv])).merging(other: Resource())
18
-
+ public static let resource = Resource().merging(other: Resource(attributes: parseResourceAttributes(rawEnvAttributes: ProcessInfo.processInfo.environment[otelResourceAttributesEnv])))
19
private init() {}
20
21
/// Creates a label map from the OC_RESOURCE_LABELS environment variable.
0 commit comments