Skip to content

Commit

Permalink
Add required $contentType arguments (#1225)
Browse files Browse the repository at this point in the history
  • Loading branch information
overtrue authored Jan 27, 2024
1 parent f2ab3c5 commit 84cf0a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Contrib/Otlp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ See https://github.com/open-telemetry/opentelemetry-php/blob/main/examples/trace
## Http transport

```php
$transport = (new \OpenTelemetry\Contrib\Otlp\OtlpHttpTransportFactory())->create('http://collector:4318');
$transport = (new \OpenTelemetry\Contrib\Otlp\OtlpHttpTransportFactory())->create('http://collector:4318', 'application/json');
$exporter = new \OpenTelemetry\Contrib\Otlp\SpanExporter($transport);
```

Expand Down

0 comments on commit 84cf0a5

Please sign in to comment.