Skip to content

Commit

Permalink
added deprecation messages to exporters as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
bryce-b committed Oct 25, 2024
1 parent 543421b commit 82453d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import OpenTelemetryApi
import OpenTelemetryProtocolExporterCommon
import OpenTelemetrySdk

@available(*, deprecated, renamed: "StableOtlpMetricExporter")
public class OtlpMetricExporter: MetricExporter {
let channel: GRPCChannel
var metricClient: Opentelemetry_Proto_Collector_Metrics_V1_MetricsServiceNIOClient
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ public func defaultOltpHTTPMetricsEndpoint() -> URL {
URL(string: "http://localhost:4318/v1/metrics")!
}

@available(*, deprecated, renamed: "StableOtlpHTTPMetricExporter")
public class OtlpHttpMetricExporter: OtlpHttpExporterBase, MetricExporter {
var pendingMetrics: [Metric] = []
private let exporterLock = Lock()
Expand Down

0 comments on commit 82453d7

Please sign in to comment.