{"id":15017940,"url":"https://github.com/worldia/instrumentation-bundle","last_synced_at":"2025-04-05T22:09:58.074Z","repository":{"id":39634739,"uuid":"471396473","full_name":"worldia/instrumentation-bundle","owner":"worldia","description":"Instrumentation for Symfony","archived":false,"fork":false,"pushed_at":"2025-03-04T08:43:57.000Z","size":2474,"stargazers_count":26,"open_issues_count":1,"forks_count":10,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-29T21:08:51.449Z","etag":null,"topics":["instrumentation","metrics","open-telemetry","prometheus","tracing"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/worldia.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2022-03-18T14:19:08.000Z","updated_at":"2025-03-04T08:42:34.000Z","dependencies_parsed_at":"2023-10-03T17:11:06.038Z","dependency_job_id":"d093e8b1-ee63-4104-8fe0-3b6d68aea578","html_url":"https://github.com/worldia/instrumentation-bundle","commit_stats":{"total_commits":183,"total_committers":11,"mean_commits":"16.636363636363637","dds":0.3114754098360656,"last_synced_commit":"5bb3cb44e9c9da74f2b644614ace6ef09666bc26"},"previous_names":[],"tags_count":78,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/worldia%2Finstrumentation-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/worldia%2Finstrumentation-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/worldia%2Finstrumentation-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/worldia%2Finstrumentation-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/worldia","download_url":"https://codeload.github.com/worldia/instrumentation-bundle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247406111,"owners_count":20933806,"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":["instrumentation","metrics","open-telemetry","prometheus","tracing"],"created_at":"2024-09-24T19:51:13.712Z","updated_at":"2025-04-05T22:09:58.052Z","avatar_url":"https://github.com/worldia.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Instrumentation for Symfony\n\nUsing the official [OpenTelemetry SDK](https://github.com/open-telemetry/opentelemetry-php).\n\n### Features\n\n- Minimal auto-instrumentation for **requests**, console **commands**, **consumers** and **doctrine**\n- Trace context propagation from incoming **requests** to **consumers** and **outgoing http calls**\n- Minimal metrics for **requests**, **consumers** and **messages**\n- Trace context propagation for **database** requests (using [`sqlcommenter`](https://google.github.io/sqlcommenter/))\n\n### Full working example\n\nFor a fully working example including Jaeger, Grafana, Tempo, Loki and Prometheus, check the [example directory](./example/).\n\n### Installation and configuration\n\nInstall along your [exporter implementation](https://packagist.org/packages/open-telemetry/exporter-otlp?query=open-telemetry%2Fexporter-), eg. `open-telemetry/exporter-otlp`.\n\n```sh\ncomposer require worldia/instrumentation-bundle open-telemetry/exporter-otlp\n```\nAdd to `bundles.php`.\n```php\nreturn [\n    // Other bundles\n    Instrumentation\\InstrumentationBundle::class =\u003e ['all' =\u003e true],\n];\n```\nConfigure OTEL env vars. Replace `\u003cyour-telemetry-collector\u003e` by yours, eg. `jaeger`, `tempo`, `otel-collector`, ...\n```yaml\nOTEL_SERVICE_NAME=test-app\nOTEL_PHP_DETECTORS=none\nOTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE=Delta\nOTEL_EXPORTER_OTLP_PROTOCOL=http/json\nOTEL_EXPORTER_OTLP_ENDPOINT=http://\u003cyour-telemetry-collector\u003e:4318\n```\nEnable the extension. See the complete [configuration reference here](./docs/config-reference.md) or run ```bin/console config:dump-reference instrumentation```.\n```yaml\ninstrumentation: ~\n\nmonolog:\n  handlers:\n    otel:\n      type: service\n      id: Instrumentation\\Logging\\OtelHandler\n```\n\n### Usage\n\n- [Simple tracing example](./docs/tracing/simple-trace.md)\n- [Add Urls to your traces in error messages](./docs/tracing/add-urls-to-your-traces.md)\n- [Customize operation (span) name for a message](./docs/tracing/custom-operation-name-for-message.md)\n- [Link strategy for a message](./docs/tracing/link-strategy-for-message.md)    \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fworldia%2Finstrumentation-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fworldia%2Finstrumentation-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fworldia%2Finstrumentation-bundle/lists"}