Skip to content

Commit

Permalink
docs: fixes missing semicolon on readme sample (#177)
Browse files Browse the repository at this point in the history
  • Loading branch information
temuulens authored Sep 7, 2020
1 parent 0b4bb7f commit 26a217b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ When tracing local code, just run it inside a span

```php
$span = $tracer->newTrace();
$span->setName('encode')
$span->setName('encode');
$span->start();

try {
Expand Down Expand Up @@ -210,9 +210,9 @@ Here's what server-side propagation might look like
```php
// configure a function that extracts the trace context from a request
$extractor = $tracing->getPropagation()->getExtractor(new RequestHeaders);
$extracted = $extractor($request)
$extracted = $extractor($request);

$span = $tracer->newChild($extracted)
$span = $tracer->newChild($extracted);
$span->setKind(Kind\SERVER);
```

Expand All @@ -221,7 +221,7 @@ can extract the context from the $_SERVER variable

```php
$extractor = $tracing->getPropagation()->getExtractor(new ServerHeaders);
$extracted = $extractor($_SERVER)
$extracted = $extractor($_SERVER);
```

### Extracting a propagated context
Expand Down

0 comments on commit 26a217b

Please sign in to comment.