Skip to content

Commit 79ac0e4

Browse files
authored
Merge branch 'main' into library-evolution-support
2 parents b4b00fe + 7bef81a commit 79ac0e4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Sources/Exporters/OpenTelemetryProtocolCommon/trace/SpanAdapter.swift

+4-4
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public struct SpanAdapter {
6767
return protoSpan
6868
}
6969

70-
static func toProtoSpanKind(kind: SpanKind) -> Opentelemetry_Proto_Trace_V1_Span.SpanKind {
70+
public static func toProtoSpanKind(kind: SpanKind) -> Opentelemetry_Proto_Trace_V1_Span.SpanKind {
7171
switch kind {
7272
case .internal:
7373
return Opentelemetry_Proto_Trace_V1_Span.SpanKind.internal
@@ -82,7 +82,7 @@ public struct SpanAdapter {
8282
}
8383
}
8484

85-
static func toProtoSpanEvent(event: SpanData.Event) -> Opentelemetry_Proto_Trace_V1_Span.Event {
85+
public static func toProtoSpanEvent(event: SpanData.Event) -> Opentelemetry_Proto_Trace_V1_Span.Event {
8686
var protoEvent = Opentelemetry_Proto_Trace_V1_Span.Event()
8787
protoEvent.name = event.name
8888
protoEvent.timeUnixNano = event.timestamp.timeIntervalSince1970.toNanoseconds
@@ -92,7 +92,7 @@ public struct SpanAdapter {
9292
return protoEvent
9393
}
9494

95-
static func toProtoSpanLink(link: SpanData.Link) -> Opentelemetry_Proto_Trace_V1_Span.Link {
95+
public static func toProtoSpanLink(link: SpanData.Link) -> Opentelemetry_Proto_Trace_V1_Span.Link {
9696
var protoLink = Opentelemetry_Proto_Trace_V1_Span.Link()
9797
protoLink.traceID = TraceProtoUtils.toProtoTraceId(traceId: link.context.traceId)
9898
protoLink.spanID = TraceProtoUtils.toProtoSpanId(spanId: link.context.spanId)
@@ -102,7 +102,7 @@ public struct SpanAdapter {
102102
return protoLink
103103
}
104104

105-
static func toStatusProto(status: Status) -> Opentelemetry_Proto_Trace_V1_Status {
105+
public static func toStatusProto(status: Status) -> Opentelemetry_Proto_Trace_V1_Status {
106106
var statusProto = Opentelemetry_Proto_Trace_V1_Status()
107107
switch status {
108108
case .ok:

Sources/Exporters/OpenTelemetryProtocolGrpc/trace/OtlpTraceJsonExporter.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public class OtlpTraceJsonExporter: SpanExporter {
1515
private var isRunning: Bool = true
1616

1717
// MARK: - Json Exporter helper methods
18-
func getExportedSpans() -> [OtlpSpan] {
18+
public func getExportedSpans() -> [OtlpSpan] {
1919
exportedSpans
2020
}
2121

0 commit comments

Comments
 (0)