[go: nahoru, domu]

Skip to content

Commit

Permalink
Fix proto 1.1.0 trace flags (#1216)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nevay committed Jan 17, 2024
1 parent 102f5dc commit 1af8334
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Contrib/Otlp/SpanConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ private function convertSpan(SpanDataInterface $span): Span
$pSpan->getLinks()[] = $pLink = new Link();
$pLink->setTraceId($this->serializer->serializeTraceId($link->getSpanContext()->getTraceIdBinary()));
$pLink->setSpanId($this->serializer->serializeSpanId($link->getSpanContext()->getSpanIdBinary()));
$pLink->setFlags($span->getContext()->getTraceFlags());
$pLink->setFlags($link->getSpanContext()->getTraceFlags());
$pLink->setTraceState((string) $link->getSpanContext()->getTraceState());
$this->setAttributes($pLink, $link->getAttributes());
}
Expand Down
2 changes: 1 addition & 1 deletion src/Contrib/Otlp/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"require": {
"php": "^7.4 || ^8.0",
"php-http/discovery": "^1.14",
"open-telemetry/gen-otlp-protobuf": "^1.0",
"open-telemetry/gen-otlp-protobuf": "^1.1",
"open-telemetry/api": "^1.0",
"open-telemetry/sdk": "^1.0"
},
Expand Down
2 changes: 1 addition & 1 deletion src/Contrib/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"ext-json": "*",
"open-telemetry/api": "^1.0",
"open-telemetry/context": "^1.0",
"open-telemetry/gen-otlp-protobuf": "^1.0",
"open-telemetry/gen-otlp-protobuf": "^1.1",
"open-telemetry/sdk": "^1.0",
"open-telemetry/sem-conv": "^1.0",
"php-http/async-client-implementation": "^1.0",
Expand Down

0 comments on commit 1af8334

Please sign in to comment.