Skip to content

Commit 75f35b7

Browse files
author
Ignacio Bonafonte
authored
Merge pull request #242 from bryce-b/EnvVarResource-Fix
2 parents 94754c5 + a2cce5e commit 75f35b7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Sources/OpenTelemetrySdk/Resources/EnvVarResource.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ public struct EnvVarResource {
1414

1515
/// This resource information is loaded from the OC_RESOURCE_LABELS
1616
/// environment variable.
17-
public static let resource = Resource(attributes: parseResourceAttributes(rawEnvAttributes: ProcessInfo.processInfo.environment[otelResourceAttributesEnv])).merging(other: Resource())
18-
17+
public static let resource = Resource().merging(other: Resource(attributes: parseResourceAttributes(rawEnvAttributes: ProcessInfo.processInfo.environment[otelResourceAttributesEnv])))
1918
private init() {}
2019

2120
/// Creates a label map from the OC_RESOURCE_LABELS environment variable.

0 commit comments

Comments
 (0)