Skip to content

Commit f9704c1

Browse files
authored
Merge pull request open-telemetry#485 from vvydier/main
fixed the hard coding of sdk version
2 parents a7426e4 + 604c4a7 commit f9704c1

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

Sources/OpenTelemetrySdk/Resources/Resource.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public struct Resource: Equatable, Hashable, Codable {
2020
self.init(attributes: [ResourceAttributes.serviceName.rawValue: AttributeValue.string("unknown_service:\(executableName)"),
2121
ResourceAttributes.telemetrySdkName.rawValue: AttributeValue.string("opentelemetry"),
2222
ResourceAttributes.telemetrySdkLanguage.rawValue: AttributeValue.string("swift"),
23-
ResourceAttributes.telemetrySdkVersion.rawValue: AttributeValue.string("1.0.0")]
23+
ResourceAttributes.telemetrySdkVersion.rawValue: AttributeValue.string(Resource.OTEL_SWIFT_SDK_VERSION)]
2424
)
2525
}
2626

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
//
2+
// Copyright The OpenTelemetry Authors
3+
// SPDX-License-Identifier: Apache-2.0
4+
//
5+
6+
import Foundation
7+
8+
extension Resource {
9+
public static let OTEL_SWIFT_SDK_VERSION : String = "1.8.0"
10+
}

0 commit comments

Comments
 (0)