Skip to content

Commit

Permalink
[#49] Removes SpanContextNotFound exception.
Browse files Browse the repository at this point in the history
  • Loading branch information
jcchavezs committed Mar 11, 2018
1 parent 79cea6c commit 9cba9e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 25 deletions.
20 changes: 0 additions & 20 deletions src/OpenTracing/Exceptions/SpanContextNotFound.php

This file was deleted.

8 changes: 3 additions & 5 deletions src/OpenTracing/Tracer.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use OpenTracing\Exceptions\InvalidReferencesSet;
use OpenTracing\Exceptions\InvalidSpanOption;
use OpenTracing\Exceptions\SpanContextNotFound;
use OpenTracing\Exceptions\UnsupportedFormat;

interface Tracer
Expand Down Expand Up @@ -69,7 +68,7 @@ public function startSpan($operationName, $options = []);
/**
* @param SpanContext $spanContext
* @param string $format
* @param $carrier
* @param mixed $carrier
*
* @see Formats
*
Expand All @@ -80,12 +79,11 @@ public function inject(SpanContext $spanContext, $format, &$carrier);

/**
* @param string $format
* @param $carrier
* @return SpanContext
* @param mixed $carrier
* @return SpanContext|null
*
* @see Formats
*
* @throws SpanContextNotFound when a context could not be extracted from carrier
* @throws UnsupportedFormat when the format is not recognized by the tracer
* implementation
*/
Expand Down

0 comments on commit 9cba9e1

Please sign in to comment.