Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,20 @@ import SmithyTelemetryAPI
@preconcurrency import protocol OpenTelemetrySdk.SpanExporter

/// Namespace for the SDK Telemetry implementation.
@available(*, deprecated, message: "Moved to smithy-swift-opentelemetry package. Removal after March 10, 2026.")
public enum OpenTelemetrySwift {
/// The SDK TelemetryProviderOTel Implementation.
///
/// - contextManager: no-op
/// - loggerProvider: provides SwiftLoggers
/// - meterProvider: no-op
/// - tracerProvider: provides OTelTracerProvider with InMemoryExporter
@available(*, deprecated, message: "Moved to smithy-swift-opentelemetry package. Removal after March 10, 2026.")
public static func provider(spanExporter: any SpanExporter) -> TelemetryProvider {
return OpenTelemetrySwiftProvider(spanExporter: spanExporter)
}

@available(*, deprecated, message: "Moved to smithy-swift-opentelemetry package. Removal after March 10, 2026.")
public final class OpenTelemetrySwiftProvider: TelemetryProvider {
public let contextManager: TelemetryContextManager
public let loggerProvider: LoggerProvider
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,17 @@
import struct Smithy.AttributeKey
import struct Smithy.Attributes

@available(*, deprecated, message: "Moved to smithy-swift-opentelemetry package. Removal after March 10, 2026.")
public typealias OpenTelemetryTracer = OpenTelemetryApi.Tracer
@available(*, deprecated, message: "Moved to smithy-swift-opentelemetry package. Removal after March 10, 2026.")
public typealias OpenTelemetrySpanKind = OpenTelemetryApi.SpanKind
@available(*, deprecated, message: "Moved to smithy-swift-opentelemetry package. Removal after March 10, 2026.")
public typealias OpenTelemetrySpan = OpenTelemetryApi.Span
@available(*, deprecated, message: "Moved to smithy-swift-opentelemetry package. Removal after March 10, 2026.")
public typealias OpenTelemetryStatus = OpenTelemetryApi.Status

// Trace
@available(*, deprecated, message: "Moved to smithy-swift-opentelemetry package. Removal after March 10, 2026.")
public final class OTelTracerProvider: TracerProvider {
private let sdkTracerProvider: TracerProviderSdk

Expand All @@ -46,6 +51,7 @@
}
}

@available(*, deprecated, message: "Moved to smithy-swift-opentelemetry package. Removal after March 10, 2026.")
public final class OTelTracerImpl: Tracer {
private let otelTracer: OpenTelemetryTracer

Expand Down Expand Up @@ -74,16 +80,16 @@

private final class OTelTraceSpanImpl: TraceSpan {
let name: String
private let otelSpan: OpenTelemetrySpan

Check warning on line 83 in Sources/ClientRuntime/Telemetry/Providers/OpenTelemetry/OTelTracing.swift

View workflow job for this annotation

GitHub Actions / apple-ci (macos-26, Xcode_26.0, platform=macOS)

'OpenTelemetrySpan' is deprecated: Moved to smithy-swift-opentelemetry package. Removal after March 10, 2026.

Check warning on line 83 in Sources/ClientRuntime/Telemetry/Providers/OpenTelemetry/OTelTracing.swift

View workflow job for this annotation

GitHub Actions / apple-ci (macos-26, Xcode_26.0, platform=macOS)

'OpenTelemetrySpan' is deprecated: Moved to smithy-swift-opentelemetry package. Removal after March 10, 2026.

Check warning on line 83 in Sources/ClientRuntime/Telemetry/Providers/OpenTelemetry/OTelTracing.swift

View workflow job for this annotation

GitHub Actions / apple-ci (macos-14, Xcode_15.2, platform=tvOS Simulator,OS=17.2,name=Apple TV 4K (3rd generation)...

'OpenTelemetrySpan' is deprecated: Moved to smithy-swift-opentelemetry package. Removal after March 10, 2026.

Check warning on line 83 in Sources/ClientRuntime/Telemetry/Providers/OpenTelemetry/OTelTracing.swift

View workflow job for this annotation

GitHub Actions / apple-ci (macos-14, Xcode_15.2, platform=tvOS Simulator,OS=17.2,name=Apple TV 4K (3rd generation)...

'OpenTelemetrySpan' is deprecated: Moved to smithy-swift-opentelemetry package. Removal after March 10, 2026.

Check warning on line 83 in Sources/ClientRuntime/Telemetry/Providers/OpenTelemetry/OTelTracing.swift

View workflow job for this annotation

GitHub Actions / apple-ci (macos-14, Xcode_15.2, platform=macOS)

'OpenTelemetrySpan' is deprecated: Moved to smithy-swift-opentelemetry package. Removal after March 10, 2026.

Check warning on line 83 in Sources/ClientRuntime/Telemetry/Providers/OpenTelemetry/OTelTracing.swift

View workflow job for this annotation

GitHub Actions / apple-ci (macos-14, Xcode_15.2, platform=macOS)

'OpenTelemetrySpan' is deprecated: Moved to smithy-swift-opentelemetry package. Removal after March 10, 2026.

Check warning on line 83 in Sources/ClientRuntime/Telemetry/Providers/OpenTelemetry/OTelTracing.swift

View workflow job for this annotation

GitHub Actions / apple-ci (macos-26, Xcode_26.0, platform=tvOS Simulator,OS=26.0,name=Apple TV 4K (3rd generation)...

'OpenTelemetrySpan' is deprecated: Moved to smithy-swift-opentelemetry package. Removal after March 10, 2026.

Check warning on line 83 in Sources/ClientRuntime/Telemetry/Providers/OpenTelemetry/OTelTracing.swift

View workflow job for this annotation

GitHub Actions / apple-ci (macos-26, Xcode_26.0, platform=tvOS Simulator,OS=26.0,name=Apple TV 4K (3rd generation)...

'OpenTelemetrySpan' is deprecated: Moved to smithy-swift-opentelemetry package. Removal after March 10, 2026.

Check warning on line 83 in Sources/ClientRuntime/Telemetry/Providers/OpenTelemetry/OTelTracing.swift

View workflow job for this annotation

GitHub Actions / apple-ci (macos-26, Xcode_26.0, platform=iOS Simulator,OS=26.0.1,name=iPhone 17)

'OpenTelemetrySpan' is deprecated: Moved to smithy-swift-opentelemetry package. Removal after March 10, 2026.

Check warning on line 83 in Sources/ClientRuntime/Telemetry/Providers/OpenTelemetry/OTelTracing.swift

View workflow job for this annotation

GitHub Actions / apple-ci (macos-26, Xcode_26.0, platform=iOS Simulator,OS=26.0.1,name=iPhone 17)

'OpenTelemetrySpan' is deprecated: Moved to smithy-swift-opentelemetry package. Removal after March 10, 2026.

Check warning on line 83 in Sources/ClientRuntime/Telemetry/Providers/OpenTelemetry/OTelTracing.swift

View workflow job for this annotation

GitHub Actions / apple-ci (macos-14, Xcode_15.2, platform=iOS Simulator,OS=17.2,name=iPhone 15)

'OpenTelemetrySpan' is deprecated: Moved to smithy-swift-opentelemetry package. Removal after March 10, 2026.

Check warning on line 83 in Sources/ClientRuntime/Telemetry/Providers/OpenTelemetry/OTelTracing.swift

View workflow job for this annotation

GitHub Actions / apple-ci (macos-14, Xcode_15.2, platform=iOS Simulator,OS=17.2,name=iPhone 15)

'OpenTelemetrySpan' is deprecated: Moved to smithy-swift-opentelemetry package. Removal after March 10, 2026.

public init(name: String, otelSpan: OpenTelemetrySpan) {

Check warning on line 85 in Sources/ClientRuntime/Telemetry/Providers/OpenTelemetry/OTelTracing.swift

View workflow job for this annotation

GitHub Actions / apple-ci (macos-26, Xcode_26.0, platform=macOS)

'OpenTelemetrySpan' is deprecated: Moved to smithy-swift-opentelemetry package. Removal after March 10, 2026.

Check warning on line 85 in Sources/ClientRuntime/Telemetry/Providers/OpenTelemetry/OTelTracing.swift

View workflow job for this annotation

GitHub Actions / apple-ci (macos-26, Xcode_26.0, platform=macOS)

'OpenTelemetrySpan' is deprecated: Moved to smithy-swift-opentelemetry package. Removal after March 10, 2026.

Check warning on line 85 in Sources/ClientRuntime/Telemetry/Providers/OpenTelemetry/OTelTracing.swift

View workflow job for this annotation

GitHub Actions / apple-ci (macos-14, Xcode_15.2, platform=tvOS Simulator,OS=17.2,name=Apple TV 4K (3rd generation)...

'OpenTelemetrySpan' is deprecated: Moved to smithy-swift-opentelemetry package. Removal after March 10, 2026.

Check warning on line 85 in Sources/ClientRuntime/Telemetry/Providers/OpenTelemetry/OTelTracing.swift

View workflow job for this annotation

GitHub Actions / apple-ci (macos-14, Xcode_15.2, platform=tvOS Simulator,OS=17.2,name=Apple TV 4K (3rd generation)...

'OpenTelemetrySpan' is deprecated: Moved to smithy-swift-opentelemetry package. Removal after March 10, 2026.

Check warning on line 85 in Sources/ClientRuntime/Telemetry/Providers/OpenTelemetry/OTelTracing.swift

View workflow job for this annotation

GitHub Actions / apple-ci (macos-14, Xcode_15.2, platform=macOS)

'OpenTelemetrySpan' is deprecated: Moved to smithy-swift-opentelemetry package. Removal after March 10, 2026.

Check warning on line 85 in Sources/ClientRuntime/Telemetry/Providers/OpenTelemetry/OTelTracing.swift

View workflow job for this annotation

GitHub Actions / apple-ci (macos-14, Xcode_15.2, platform=macOS)

'OpenTelemetrySpan' is deprecated: Moved to smithy-swift-opentelemetry package. Removal after March 10, 2026.

Check warning on line 85 in Sources/ClientRuntime/Telemetry/Providers/OpenTelemetry/OTelTracing.swift

View workflow job for this annotation

GitHub Actions / apple-ci (macos-26, Xcode_26.0, platform=tvOS Simulator,OS=26.0,name=Apple TV 4K (3rd generation)...

'OpenTelemetrySpan' is deprecated: Moved to smithy-swift-opentelemetry package. Removal after March 10, 2026.

Check warning on line 85 in Sources/ClientRuntime/Telemetry/Providers/OpenTelemetry/OTelTracing.swift

View workflow job for this annotation

GitHub Actions / apple-ci (macos-26, Xcode_26.0, platform=tvOS Simulator,OS=26.0,name=Apple TV 4K (3rd generation)...

'OpenTelemetrySpan' is deprecated: Moved to smithy-swift-opentelemetry package. Removal after March 10, 2026.

Check warning on line 85 in Sources/ClientRuntime/Telemetry/Providers/OpenTelemetry/OTelTracing.swift

View workflow job for this annotation

GitHub Actions / apple-ci (macos-26, Xcode_26.0, platform=iOS Simulator,OS=26.0.1,name=iPhone 17)

'OpenTelemetrySpan' is deprecated: Moved to smithy-swift-opentelemetry package. Removal after March 10, 2026.

Check warning on line 85 in Sources/ClientRuntime/Telemetry/Providers/OpenTelemetry/OTelTracing.swift

View workflow job for this annotation

GitHub Actions / apple-ci (macos-26, Xcode_26.0, platform=iOS Simulator,OS=26.0.1,name=iPhone 17)

'OpenTelemetrySpan' is deprecated: Moved to smithy-swift-opentelemetry package. Removal after March 10, 2026.

Check warning on line 85 in Sources/ClientRuntime/Telemetry/Providers/OpenTelemetry/OTelTracing.swift

View workflow job for this annotation

GitHub Actions / apple-ci (macos-14, Xcode_15.2, platform=iOS Simulator,OS=17.2,name=iPhone 15)

'OpenTelemetrySpan' is deprecated: Moved to smithy-swift-opentelemetry package. Removal after March 10, 2026.

Check warning on line 85 in Sources/ClientRuntime/Telemetry/Providers/OpenTelemetry/OTelTracing.swift

View workflow job for this annotation

GitHub Actions / apple-ci (macos-14, Xcode_15.2, platform=iOS Simulator,OS=17.2,name=iPhone 15)

'OpenTelemetrySpan' is deprecated: Moved to smithy-swift-opentelemetry package. Removal after March 10, 2026.
self.name = name
self.otelSpan = otelSpan
}

func emitEvent(name: String, attributes: Attributes?) {
if let attributes = attributes, !(attributes.size == 0) {
self.otelSpan.addEvent(name: name, attributes: attributes.toOtelAttributes())

Check warning on line 92 in Sources/ClientRuntime/Telemetry/Providers/OpenTelemetry/OTelTracing.swift

View workflow job for this annotation

GitHub Actions / apple-ci (macos-26, Xcode_26.0, platform=macOS)

'toOtelAttributes()' is deprecated: Moved to smithy-swift-opentelemetry package. Removal after March 10, 2026.

Check warning on line 92 in Sources/ClientRuntime/Telemetry/Providers/OpenTelemetry/OTelTracing.swift

View workflow job for this annotation

GitHub Actions / apple-ci (macos-14, Xcode_15.2, platform=tvOS Simulator,OS=17.2,name=Apple TV 4K (3rd generation)...

'toOtelAttributes()' is deprecated: Moved to smithy-swift-opentelemetry package. Removal after March 10, 2026.

Check warning on line 92 in Sources/ClientRuntime/Telemetry/Providers/OpenTelemetry/OTelTracing.swift

View workflow job for this annotation

GitHub Actions / apple-ci (macos-14, Xcode_15.2, platform=macOS)

'toOtelAttributes()' is deprecated: Moved to smithy-swift-opentelemetry package. Removal after March 10, 2026.

Check warning on line 92 in Sources/ClientRuntime/Telemetry/Providers/OpenTelemetry/OTelTracing.swift

View workflow job for this annotation

GitHub Actions / apple-ci (macos-26, Xcode_26.0, platform=tvOS Simulator,OS=26.0,name=Apple TV 4K (3rd generation)...

'toOtelAttributes()' is deprecated: Moved to smithy-swift-opentelemetry package. Removal after March 10, 2026.

Check warning on line 92 in Sources/ClientRuntime/Telemetry/Providers/OpenTelemetry/OTelTracing.swift

View workflow job for this annotation

GitHub Actions / apple-ci (macos-26, Xcode_26.0, platform=iOS Simulator,OS=26.0.1,name=iPhone 17)

'toOtelAttributes()' is deprecated: Moved to smithy-swift-opentelemetry package. Removal after March 10, 2026.

Check warning on line 92 in Sources/ClientRuntime/Telemetry/Providers/OpenTelemetry/OTelTracing.swift

View workflow job for this annotation

GitHub Actions / apple-ci (macos-14, Xcode_15.2, platform=iOS Simulator,OS=17.2,name=iPhone 15)

'toOtelAttributes()' is deprecated: Moved to smithy-swift-opentelemetry package. Removal after March 10, 2026.
} else {
self.otelSpan.addEvent(name: name)
}
Expand All @@ -103,7 +109,7 @@
}

extension SpanKind {
func toOTelSpanKind() -> OpenTelemetrySpanKind {

Check warning on line 112 in Sources/ClientRuntime/Telemetry/Providers/OpenTelemetry/OTelTracing.swift

View workflow job for this annotation

GitHub Actions / apple-ci (macos-26, Xcode_26.0, platform=macOS)

'OpenTelemetrySpanKind' is deprecated: Moved to smithy-swift-opentelemetry package. Removal after March 10, 2026.

Check warning on line 112 in Sources/ClientRuntime/Telemetry/Providers/OpenTelemetry/OTelTracing.swift

View workflow job for this annotation

GitHub Actions / apple-ci (macos-26, Xcode_26.0, platform=macOS)

'OpenTelemetrySpanKind' is deprecated: Moved to smithy-swift-opentelemetry package. Removal after March 10, 2026.

Check warning on line 112 in Sources/ClientRuntime/Telemetry/Providers/OpenTelemetry/OTelTracing.swift

View workflow job for this annotation

GitHub Actions / apple-ci (macos-14, Xcode_15.2, platform=tvOS Simulator,OS=17.2,name=Apple TV 4K (3rd generation)...

'OpenTelemetrySpanKind' is deprecated: Moved to smithy-swift-opentelemetry package. Removal after March 10, 2026.

Check warning on line 112 in Sources/ClientRuntime/Telemetry/Providers/OpenTelemetry/OTelTracing.swift

View workflow job for this annotation

GitHub Actions / apple-ci (macos-14, Xcode_15.2, platform=tvOS Simulator,OS=17.2,name=Apple TV 4K (3rd generation)...

'OpenTelemetrySpanKind' is deprecated: Moved to smithy-swift-opentelemetry package. Removal after March 10, 2026.

Check warning on line 112 in Sources/ClientRuntime/Telemetry/Providers/OpenTelemetry/OTelTracing.swift

View workflow job for this annotation

GitHub Actions / apple-ci (macos-14, Xcode_15.2, platform=macOS)

'OpenTelemetrySpanKind' is deprecated: Moved to smithy-swift-opentelemetry package. Removal after March 10, 2026.

Check warning on line 112 in Sources/ClientRuntime/Telemetry/Providers/OpenTelemetry/OTelTracing.swift

View workflow job for this annotation

GitHub Actions / apple-ci (macos-14, Xcode_15.2, platform=macOS)

'OpenTelemetrySpanKind' is deprecated: Moved to smithy-swift-opentelemetry package. Removal after March 10, 2026.

Check warning on line 112 in Sources/ClientRuntime/Telemetry/Providers/OpenTelemetry/OTelTracing.swift

View workflow job for this annotation

GitHub Actions / apple-ci (macos-26, Xcode_26.0, platform=tvOS Simulator,OS=26.0,name=Apple TV 4K (3rd generation)...

'OpenTelemetrySpanKind' is deprecated: Moved to smithy-swift-opentelemetry package. Removal after March 10, 2026.

Check warning on line 112 in Sources/ClientRuntime/Telemetry/Providers/OpenTelemetry/OTelTracing.swift

View workflow job for this annotation

GitHub Actions / apple-ci (macos-26, Xcode_26.0, platform=tvOS Simulator,OS=26.0,name=Apple TV 4K (3rd generation)...

'OpenTelemetrySpanKind' is deprecated: Moved to smithy-swift-opentelemetry package. Removal after March 10, 2026.

Check warning on line 112 in Sources/ClientRuntime/Telemetry/Providers/OpenTelemetry/OTelTracing.swift

View workflow job for this annotation

GitHub Actions / apple-ci (macos-26, Xcode_26.0, platform=iOS Simulator,OS=26.0.1,name=iPhone 17)

'OpenTelemetrySpanKind' is deprecated: Moved to smithy-swift-opentelemetry package. Removal after March 10, 2026.

Check warning on line 112 in Sources/ClientRuntime/Telemetry/Providers/OpenTelemetry/OTelTracing.swift

View workflow job for this annotation

GitHub Actions / apple-ci (macos-26, Xcode_26.0, platform=iOS Simulator,OS=26.0.1,name=iPhone 17)

'OpenTelemetrySpanKind' is deprecated: Moved to smithy-swift-opentelemetry package. Removal after March 10, 2026.

Check warning on line 112 in Sources/ClientRuntime/Telemetry/Providers/OpenTelemetry/OTelTracing.swift

View workflow job for this annotation

GitHub Actions / apple-ci (macos-14, Xcode_15.2, platform=iOS Simulator,OS=17.2,name=iPhone 15)

'OpenTelemetrySpanKind' is deprecated: Moved to smithy-swift-opentelemetry package. Removal after March 10, 2026.

Check warning on line 112 in Sources/ClientRuntime/Telemetry/Providers/OpenTelemetry/OTelTracing.swift

View workflow job for this annotation

GitHub Actions / apple-ci (macos-14, Xcode_15.2, platform=iOS Simulator,OS=17.2,name=iPhone 15)

'OpenTelemetrySpanKind' is deprecated: Moved to smithy-swift-opentelemetry package. Removal after March 10, 2026.
switch self {
case .client:
return .client
Expand All @@ -120,7 +126,7 @@
}

extension TraceSpanStatus {
func toOTelStatus() -> OpenTelemetryStatus {

Check warning on line 129 in Sources/ClientRuntime/Telemetry/Providers/OpenTelemetry/OTelTracing.swift

View workflow job for this annotation

GitHub Actions / apple-ci (macos-26, Xcode_26.0, platform=macOS)

'OpenTelemetryStatus' is deprecated: Moved to smithy-swift-opentelemetry package. Removal after March 10, 2026.

Check warning on line 129 in Sources/ClientRuntime/Telemetry/Providers/OpenTelemetry/OTelTracing.swift

View workflow job for this annotation

GitHub Actions / apple-ci (macos-26, Xcode_26.0, platform=macOS)

'OpenTelemetryStatus' is deprecated: Moved to smithy-swift-opentelemetry package. Removal after March 10, 2026.

Check warning on line 129 in Sources/ClientRuntime/Telemetry/Providers/OpenTelemetry/OTelTracing.swift

View workflow job for this annotation

GitHub Actions / apple-ci (macos-14, Xcode_15.2, platform=tvOS Simulator,OS=17.2,name=Apple TV 4K (3rd generation)...

'OpenTelemetryStatus' is deprecated: Moved to smithy-swift-opentelemetry package. Removal after March 10, 2026.

Check warning on line 129 in Sources/ClientRuntime/Telemetry/Providers/OpenTelemetry/OTelTracing.swift

View workflow job for this annotation

GitHub Actions / apple-ci (macos-14, Xcode_15.2, platform=tvOS Simulator,OS=17.2,name=Apple TV 4K (3rd generation)...

'OpenTelemetryStatus' is deprecated: Moved to smithy-swift-opentelemetry package. Removal after March 10, 2026.

Check warning on line 129 in Sources/ClientRuntime/Telemetry/Providers/OpenTelemetry/OTelTracing.swift

View workflow job for this annotation

GitHub Actions / apple-ci (macos-14, Xcode_15.2, platform=macOS)

'OpenTelemetryStatus' is deprecated: Moved to smithy-swift-opentelemetry package. Removal after March 10, 2026.

Check warning on line 129 in Sources/ClientRuntime/Telemetry/Providers/OpenTelemetry/OTelTracing.swift

View workflow job for this annotation

GitHub Actions / apple-ci (macos-14, Xcode_15.2, platform=macOS)

'OpenTelemetryStatus' is deprecated: Moved to smithy-swift-opentelemetry package. Removal after March 10, 2026.

Check warning on line 129 in Sources/ClientRuntime/Telemetry/Providers/OpenTelemetry/OTelTracing.swift

View workflow job for this annotation

GitHub Actions / apple-ci (macos-26, Xcode_26.0, platform=tvOS Simulator,OS=26.0,name=Apple TV 4K (3rd generation)...

'OpenTelemetryStatus' is deprecated: Moved to smithy-swift-opentelemetry package. Removal after March 10, 2026.

Check warning on line 129 in Sources/ClientRuntime/Telemetry/Providers/OpenTelemetry/OTelTracing.swift

View workflow job for this annotation

GitHub Actions / apple-ci (macos-26, Xcode_26.0, platform=tvOS Simulator,OS=26.0,name=Apple TV 4K (3rd generation)...

'OpenTelemetryStatus' is deprecated: Moved to smithy-swift-opentelemetry package. Removal after March 10, 2026.

Check warning on line 129 in Sources/ClientRuntime/Telemetry/Providers/OpenTelemetry/OTelTracing.swift

View workflow job for this annotation

GitHub Actions / apple-ci (macos-26, Xcode_26.0, platform=iOS Simulator,OS=26.0.1,name=iPhone 17)

'OpenTelemetryStatus' is deprecated: Moved to smithy-swift-opentelemetry package. Removal after March 10, 2026.

Check warning on line 129 in Sources/ClientRuntime/Telemetry/Providers/OpenTelemetry/OTelTracing.swift

View workflow job for this annotation

GitHub Actions / apple-ci (macos-26, Xcode_26.0, platform=iOS Simulator,OS=26.0.1,name=iPhone 17)

'OpenTelemetryStatus' is deprecated: Moved to smithy-swift-opentelemetry package. Removal after March 10, 2026.

Check warning on line 129 in Sources/ClientRuntime/Telemetry/Providers/OpenTelemetry/OTelTracing.swift

View workflow job for this annotation

GitHub Actions / apple-ci (macos-14, Xcode_15.2, platform=iOS Simulator,OS=17.2,name=iPhone 15)

'OpenTelemetryStatus' is deprecated: Moved to smithy-swift-opentelemetry package. Removal after March 10, 2026.

Check warning on line 129 in Sources/ClientRuntime/Telemetry/Providers/OpenTelemetry/OTelTracing.swift

View workflow job for this annotation

GitHub Actions / apple-ci (macos-14, Xcode_15.2, platform=iOS Simulator,OS=17.2,name=iPhone 15)

'OpenTelemetryStatus' is deprecated: Moved to smithy-swift-opentelemetry package. Removal after March 10, 2026.
switch self {
case .error:
return .error(description: "An error occured!") // status doesn't have error description
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import struct Smithy.AttributeKey
import struct Smithy.Attributes

extension Attributes {
@available(*, deprecated, message: "Moved to smithy-swift-opentelemetry package. Removal after March 10, 2026.")
public func toOtelAttributes() -> [String: AttributeValue] {
let keys: [String] = self.getKeys()
var otelKeys: [String: AttributeValue] = [:]
Expand Down
Loading