Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Commit f91ffdb

Browse files
bpotchingor13
authored andcommitted
Fix grpc integration (#110)
1 parent 573d5fd commit f91ffdb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Trace/Integrations/Grpc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public static function load()
113113
*/
114114
public static function updateMetadata($metadata, $jwtAuthUri)
115115
{
116-
if ($context = Tracer::context()) {
116+
if ($context = Tracer::spanContext()) {
117117
$propagator = new GrpcMetadataPropagator();
118118
$metadata += [
119119
$propagator->key() => $propagator->formatter()->serialize($context)

src/Trace/SpanContext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
* ```
2929
* use OpenCensus\Trace\Tracer;
3030
*
31-
* $context = Tracer::context();
31+
* $context = Tracer::spanContext();
3232
* echo $context; // output the header format for using the current context in a remote call
3333
* ```
3434
*/

0 commit comments

Comments
 (0)