Skip to content

Commit

Permalink
Merge branch 'master' into 3.1
Browse files Browse the repository at this point in the history
# Conflicts:
#	.github/workflows/test-components.yml
#	.github/workflows/test.yml
  • Loading branch information
limingxinleo committed Nov 24, 2023
2 parents e8bc063 + c01f1de commit 6d34cbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TracerContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public static function setTracer(Tracer $tracer): Tracer

public static function getTracer(): Tracer
{
return Context::getOrSet(self::TRACER, make(Tracer::class));
return Context::getOrSet(self::TRACER, fn () => make(Tracer::class));
}

public static function setRoot(Span $root): Span
Expand Down

0 comments on commit 6d34cbe

Please sign in to comment.