open-telemetry / opentelemetry-python

OpenTelemetry Python API and SDK
https://opentelemetry.io
Apache License 2.0
1.67k stars 570 forks source link

Add is_remote_parent span flags to OTLP exported Spans and SpanLinks #3876

Closed xrmx closed 1 month ago

xrmx commented 2 months ago

Is your feature request related to a problem?

After updating protobuf schema to 1.2.0 in 1164ab6c0193f658712b55469ecafbf031badc3b we can set the is_remote_parent flag when exporting spans and span links with OTLP.

Describe the solution you'd like

Update OTLP exporter to fill the relevant bits in SpanFlags.

Describe alternatives you've considered

none

Additional context

Proto schema PR: https://github.com/open-telemetry/opentelemetry-proto/pull/484 Go implementation: https://github.com/open-telemetry/opentelemetry-go/pull/5194/files