Skip to content

Commit 4148369

Browse files
chore(telemetry): fix protocol in otel metrics [backport 3.16] (#15012)
Backport 5fa0681 from #15010 to 3.16. ## Description Protocol is currently set as "http/protobuf", it should be sent as "http". This PR fixes this. ## Testing This regression was found via system tests. We do not need additional testing. Co-authored-by: Munir Abdinur <[email protected]>
1 parent b81db28 commit 4148369

File tree

1 file changed

+1
-1
lines changed
  • ddtrace/internal/opentelemetry

1 file changed

+1
-1
lines changed

ddtrace/internal/opentelemetry/logs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def _import_exporter(protocol):
160160
)
161161
return None
162162

163-
return _dd_logs_exporter(OTLPLogExporter, protocol, "protobuf")
163+
return _dd_logs_exporter(OTLPLogExporter, protocol.split("/")[0], "protobuf")
164164

165165
except ImportError as e:
166166
log.warning(

0 commit comments

Comments
 (0)