Get support for opentelemetry-php/otel-sdk-bundle-example-sf5
If you're new to LTH, please see our FAQ for more information on what it is we do.
Support Options
Unfortunately, there are currently no active helpers for this repository on the platform. Until they become available, we reccomend the following actions:
View Open IssuesTake a look to see if anyone else has experienced the same issue as you and if they managed to solve it.
Open an IssueMake sure to read any relevant guidelines for opening issues on this repo before posting a new issue.
Sponsor directlyCheck out the page and see if there are any options to sponsor this project or it's developers directly.
opentelemetry-php/otel-sdk-bundle-example-sf5
OTEL SDK-BUNDLE EXAMPLE
This is a Symfony demo application for the OpenTelemetry SdkBundle.
This project is based on dunglas' Symfony Docker template, so for a general documentation, please take a look there.
Apart from the demo application code the installation of the PHP gRPC extension has been added to the definition of the PHP image. Jaeger and Zipkin collector services have been added to the docker-compose.yml.
Usage:
- Clone (or fork and clone) this repository
- in the root directory of the project run:
docker-compose up
-
The first time you start the services, the images will be build. Keep in mind, that compiling the gRPC extension can take quite a while (10-15 mins), so please be patient (or go grab a coffee or do something else, while the images are built). We will address this issue in the future by proving a base image which will already include the gRPC extension.
-
Once the services are starting, wait until the PHP (fpm) service tells that it can accept requests.
-
Per default the Caddy front server will listen on the ports 8081 and 8443, but you can change this in the .env file.
-
Open http://localhost:8443/hello (ignore the security warning and/or accept the local certificate Caddy issued), and you should see the appropriate demo page.
-
Follow the links on the page to the Jaeger and Zipkin GUIs and search under "OtelBundle Demo app" for the tracing reports. You should see 4 spans (3 child spans), with events and attributes added to the main span.
-
Go to the config file for the bundle and change the sampler from
always_on
toalways_off
. Now if you reload the demo page, you will see that no tracing data has been sent to the collectors.
Feel free to play around with the configuration and the Subscriber and Controller classes. You don't need to restart the docker services to see your code changes taking effect.
Our Mission
We want to make open source more sustainable. The entire platform was born from this and everything we do is in aid of this.
From the Blog
Interesting Articles
-
Generating income from open source
Jun 23 • 8 min read
-
2023 State of OSS
Apr 23 • 45 min read ★
-
A funding experiment...
Aug 19 • 10 min read
-
But You Said I could
Aug 19 • 2 min read
Thank you for checking out LiveTechHelper |
2025 © lth-dev incorporated
p-e622a1a2