{"id":21424829,"url":"https://github.com/opentelemetry-php/otel-sdk-bundle-example-sf5","last_synced_at":"2025-07-14T08:31:59.866Z","repository":{"id":44173428,"uuid":"420624677","full_name":"opentelemetry-php/otel-sdk-bundle-example-sf5","owner":"opentelemetry-php","description":"Symfony demo application for the OpenTelemetry SdkBundle.","archived":false,"fork":false,"pushed_at":"2024-09-03T23:42:01.000Z","size":589,"stargazers_count":6,"open_issues_count":4,"forks_count":6,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-08T05:45:05.217Z","etag":null,"topics":["opentelemetry","php","symfony"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/opentelemetry-php.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-10-24T08:12:40.000Z","updated_at":"2025-02-12T19:17:43.000Z","dependencies_parsed_at":"2024-02-07T06:31:37.069Z","dependency_job_id":"06cd565f-076c-4803-930c-b745288d8499","html_url":"https://github.com/opentelemetry-php/otel-sdk-bundle-example-sf5","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"dunglas/symfony-docker","purl":"pkg:github/opentelemetry-php/otel-sdk-bundle-example-sf5","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opentelemetry-php%2Fotel-sdk-bundle-example-sf5","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opentelemetry-php%2Fotel-sdk-bundle-example-sf5/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opentelemetry-php%2Fotel-sdk-bundle-example-sf5/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opentelemetry-php%2Fotel-sdk-bundle-example-sf5/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/opentelemetry-php","download_url":"https://codeload.github.com/opentelemetry-php/otel-sdk-bundle-example-sf5/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opentelemetry-php%2Fotel-sdk-bundle-example-sf5/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265262625,"owners_count":23736433,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["opentelemetry","php","symfony"],"created_at":"2024-11-22T21:24:47.494Z","updated_at":"2025-07-14T08:31:57.842Z","avatar_url":"https://github.com/opentelemetry-php.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OTEL SDK-BUNDLE EXAMPLE\n\nThis is a Symfony demo application for the OpenTelemetry SdkBundle.\n\nThis project is based on dunglas' [Symfony Docker](https://github.com/dunglas/symfony-docker) template, so for a\ngeneral documentation, please take a look there.\n\nApart from the demo application code the installation of the PHP gRPC extension has been added to the definition\nof the [PHP image](/Dockerfile). Jaeger and Zipkin collector services have been added to the \n[docker-compose.yml](/docker-compose.yml).\n\n## Usage:\n\n- Clone (or fork and clone) this repository\n- in the root directory of the project run:\n```bash \ndocker-compose up\n```\n\n- The first time you start the services, the images will be build. Keep in mind, that compiling the gRPC extension can \ntake quite a while (10-15 mins), so please be patient (or go grab a coffee or do something else, while the \nimages are built). We will address this issue in the future by proving a base image which will already include\nthe gRPC extension.\n\n- Once the services are starting, wait until the PHP (fpm) service tells that it can accept requests.\n\n- Per default the Caddy front server will listen on the ports 8081 and 8443, but you can change this in the [.env](.env) file.\n\n- Open http://localhost:8443/hello (ignore the security warning and/or accept the local certificate Caddy issued), and you\nshould see the appropriate demo page.\n\n- Follow the links on the page to the Jaeger and Zipkin GUIs and search under \"OtelBundle Demo app\" for the tracing reports.\nYou should see 4 spans (3 child spans), with events and attributes added to the main span.\n- Go to the [config file](/config/packages/otel_sdk.yaml) for the bundle and change the sampler from `always_on` to \n`always_off`. Now if you reload the demo page, you will see that no tracing data has been sent to the collectors.\n\nFeel free to play around with the [configuration](/config/packages/otel_sdk.yaml) and the [Subscriber](/src/EventSubscriber/OtelKernelSubscriber.php) \nand [Controller](/src/Controller/HelloController.php) classes. You don't need to restart \nthe docker services to see your code changes taking effect.\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopentelemetry-php%2Fotel-sdk-bundle-example-sf5","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopentelemetry-php%2Fotel-sdk-bundle-example-sf5","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopentelemetry-php%2Fotel-sdk-bundle-example-sf5/lists"}