Skip to content

Commit

Permalink
style:修改拼写错误
Browse files Browse the repository at this point in the history
  • Loading branch information
titrxw committed Jun 4, 2021
1 parent 6c6f71e commit c0e84da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TracerSpanTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ protected function getSpan(string $spanName = 'server', string $kind = 'server',
}

protected function finishSpan(Span $span) {
$contextKey = 'opentracing.tracer.span.' . $span->getOperationName() . '.' . $span->getContext()->getBaggageItem('x-span-kink');
$contextKey = 'opentracing.tracer.span.' . $span->getOperationName() . '.' . $span->getContext()->getBaggageItem('x-span-kind');
$this->getContext()->setContextDataByKey($contextKey, null);
$span->finish();
}
Expand All @@ -82,7 +82,7 @@ protected function makeSpan($traceName, $spanName, $kind) {
$traceHeaders = [];
$tracer->inject($traceSpan->getContext(), TEXT_MAP, $traceHeaders);
$traceSpan->setTag(SPAN_KIND, $kind);
$traceSpan->addBaggageItem('x-span-kink', $kind);
$traceSpan->addBaggageItem('x-span-kind', $kind);
if ($request) {
$this->getContext()->setContextDataByKey($headerContextKey, $traceHeaders);
foreach ($traceHeaders as $name => $header) {
Expand Down

0 comments on commit c0e84da

Please sign in to comment.