Skip to content

Commit

Permalink
update proto to 1.1.0 (#1215)
Browse files Browse the repository at this point in the history
updates generated protobuf files to 1.1.0, and adds trace flags to OTLP-encoded spans and span links
  • Loading branch information
brettmc authored Jan 16, 2024
1 parent 3f7494f commit a827f25
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Trace/SpanExporter/FriendlySpanConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class FriendlySpanConverter implements SpanConverterInterface
private const TRACE_ID_ATTR = 'trace_id';
private const SPAN_ID_ATTR = 'span_id';
private const TRACE_STATE_ATTR = 'trace_state';
private const TRACE_FLAGS_ATTR = 'trace_flags';
private const RESOURCE_ATTR = 'resource';
private const PARENT_SPAN_ATTR = 'parent_span_id';
private const KIND_ATTR = 'kind';
Expand Down Expand Up @@ -78,6 +79,7 @@ private function convertContext(SpanContextInterface $context): array
self::TRACE_ID_ATTR => $context->getTraceId(),
self::SPAN_ID_ATTR => $context->getSpanId(),
self::TRACE_STATE_ATTR => (string) $context->getTraceState(),
self::TRACE_FLAGS_ATTR => $context->getTraceFlags(),
];
}

Expand Down

0 comments on commit a827f25

Please sign in to comment.