From e5a301927dc9271bfb4998e72d4afd37b321357f Mon Sep 17 00:00:00 2001 From: "github-action[bot]" <> Date: Mon, 1 Jun 2026 06:51:51 +0000 Subject: [PATCH] Create Flex endpoint --- index.json | 20 ++++++++ traceway.opentelemetry-symfony.2.1.json | 66 +++++++++++++++++++++++++ 2 files changed, 86 insertions(+) create mode 100644 index.json create mode 100644 traceway.opentelemetry-symfony.2.1.json diff --git a/index.json b/index.json new file mode 100644 index 00000000..c7698078 --- /dev/null +++ b/index.json @@ -0,0 +1,20 @@ +{ + "aliases": [], + "recipes": { + "traceway/opentelemetry-symfony": [ + "2.1" + ] + }, + "recipe-conflicts": [], + "versions": [], + "branch": "main", + "is_contrib": true, + "_links": { + "repository": "github.com/symfony/recipes-contrib", + "origin_template": "{package}:{version}@github.com/symfony/recipes-contrib:main", + "recipe_template": "https://raw.githubusercontent.com/symfony/recipes-contrib/flex/pull-1991/{package_dotted}.{version}.json", + "recipe_template_relative": "{package_dotted}.{version}.json", + "archived_recipes_template": "https://raw.githubusercontent.com/symfony/recipes-contrib/flex/pull-1991/archived/{package_dotted}/{ref}.json", + "archived_recipes_template_relative": "archived/{package_dotted}/{ref}.json" + } +} diff --git a/traceway.opentelemetry-symfony.2.1.json b/traceway.opentelemetry-symfony.2.1.json new file mode 100644 index 00000000..cc97497f --- /dev/null +++ b/traceway.opentelemetry-symfony.2.1.json @@ -0,0 +1,66 @@ +{ + "manifests": { + "traceway/opentelemetry-symfony": { + "manifest": { + "bundles": { + "Traceway\\OpenTelemetryBundle\\OpenTelemetryBundle": [ + "all" + ] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + }, + "env": { + "#1": "OpenTelemetry SDK auto-initialization", + "OTEL_PHP_AUTOLOAD_ENABLED": "true", + "#2": "Service identity (shown in your backend)", + "OTEL_SERVICE_NAME": "%project_name%", + "#3": "Traces exporter: otlp | zipkin | console | none", + "OTEL_TRACES_EXPORTER": "otlp", + "#4": "Collector or backend endpoint", + "OTEL_EXPORTER_OTLP_ENDPOINT": "http://localhost:4318", + "#5": "Protocol: http/json | http/protobuf | grpc \u2014 use http/json unless ext-protobuf is installed", + "OTEL_EXPORTER_OTLP_PROTOCOL": "http/json" + }, + "post-install-output": [ + "", + " * OpenTelemetry Symfony Bundle is wired and ready to trace your app.", + "", + " * Verify your wiring:", + "", + " $ bin/console traceway:doctor", + "", + " * Override OTEL_* environment variables in .env.local to point at your backend.", + "", + " * Documentation:", + "", + " https://github.com/tracewayapp/opentelemetry-symfony-bundle" + ] + }, + "files": { + "config/packages/open_telemetry.yaml": { + "contents": [ + "open_telemetry:", + " traces:", + " excluded_paths: ['/_profiler', '/_wdt', '/health']", + "", + "when@test:", + " open_telemetry:", + " traces:", + " enabled: false", + " metrics:", + " enabled: false", + " logs:", + " correlation:", + " enabled: false", + " export:", + " enabled: false", + "" + ], + "executable": false + } + }, + "ref": "6f6a343b626a4b2dbfcbc0c8e9ae9e467e3058c7" + } + } +}