File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -148,6 +148,7 @@ private function convertSpan(SpanDataInterface $span): Span
148
148
$ pSpan = new Span ();
149
149
$ pSpan ->setTraceId ($ this ->serializer ->serializeTraceId ($ span ->getContext ()->getTraceIdBinary ()));
150
150
$ pSpan ->setSpanId ($ this ->serializer ->serializeSpanId ($ span ->getContext ()->getSpanIdBinary ()));
151
+ $ pSpan ->setFlags ($ span ->getContext ()->getTraceFlags ());
151
152
$ pSpan ->setTraceState ((string ) $ span ->getContext ()->getTraceState ());
152
153
if ($ span ->getParentContext ()->isValid ()) {
153
154
$ pSpan ->setParentSpanId ($ this ->serializer ->serializeSpanId ($ span ->getParentContext ()->getSpanIdBinary ()));
@@ -172,6 +173,7 @@ private function convertSpan(SpanDataInterface $span): Span
172
173
$ pSpan ->getLinks ()[] = $ pLink = new Link ();
173
174
$ pLink ->setTraceId ($ this ->serializer ->serializeTraceId ($ link ->getSpanContext ()->getTraceIdBinary ()));
174
175
$ pLink ->setSpanId ($ this ->serializer ->serializeSpanId ($ link ->getSpanContext ()->getSpanIdBinary ()));
176
+ $ pLink ->setFlags ($ span ->getContext ()->getTraceFlags ());
175
177
$ pLink ->setTraceState ((string ) $ link ->getSpanContext ()->getTraceState ());
176
178
$ this ->setAttributes ($ pLink , $ link ->getAttributes ());
177
179
}
You can’t perform that action at this time.
0 commit comments