open-telemetry / open-telemetry/opentelemetry-php
[opentelemetry-php-contrib] Symfony OtelSdkBundle integration error
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 912
- Forks
- 232
- Avg merge
- 7d 16h
- Merged PRs (30d)
- 4
Description
I did setup based on this documention:
https://github.com/open-telemetry/opentelemetry-php-contrib/blob/main/src/Symfony/src/OtelSdkBundle/README.md
and got an error:
App\EventListener\TracingKernelSubscriber::__construct(): Argument #1 ($provider) must be of type OpenTelemetry\SDK\Trace\TracerProvider, OpenTelemetry\Contrib\Symfony\OtelSdkBundle\Debug\TraceableTracerProvider given
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Symfony OtelSdkBundle README linked in the issue and trace the setup that produces the constructor type error. Compare the expected TracerProvider type with the provided TraceableTracerProvider, then verify the integration no longer fails with the reported error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, symfony
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100