From ad2b97016dd2fb7e705362a31e0906bd48e67004 Mon Sep 17 00:00:00 2001 From: zim32 Date: Wed, 7 Aug 2024 18:27:48 +0200 Subject: [PATCH] Add recipe for zim32/symfony-tracing-core package (#1655) * Add recipe for zim32/symfony-tracing-core package * Fix yaml lint errors * Fix yaml indentation * Fix json indentation * Change default exporter * Fix yaml indentation * Small changes to trigger pipeline --- .../1.0/config/packages/tracing.yaml | 46 +++++++++++++++++++ zim32/symfony-tracing-core/1.0/manifest.json | 11 +++++ 2 files changed, 57 insertions(+) create mode 100644 zim32/symfony-tracing-core/1.0/config/packages/tracing.yaml create mode 100644 zim32/symfony-tracing-core/1.0/manifest.json diff --git a/zim32/symfony-tracing-core/1.0/config/packages/tracing.yaml b/zim32/symfony-tracing-core/1.0/config/packages/tracing.yaml new file mode 100644 index 00000000..0089638f --- /dev/null +++ b/zim32/symfony-tracing-core/1.0/config/packages/tracing.yaml @@ -0,0 +1,46 @@ +tracing: + tracers: + # For each tracer defined here this bundle will create two services: + # 1) One which can be injected as TracerInterface $keyTracer + # 2) One which can be injected as ScopedTracerInterface $keyTracer + # + # F.e. http tracer can be injected as: + # TracerInterface $httpTracer + # ScopedTracerInterface $httpTracer + # + # Default tracer can be injected with any name. F.e.: + # TracerInterface $anyNameHere + # + # Usually other tracing bundles will add needed tracers automatically. + default: null + + # You can pass additional "name" parameter which will be used when exporting spans for this tracer. + # By default, tracer name equals to tracer key. + +# someTracer: +# name: Some custom tracer name + + span_sampler: + # default sampling strategy + always_on: null + + # always_off: null + + # ratio: + # ratio: 0.5 + + # service: + # id: App\Service\TestSpanSampler + + # expression: + # expression: "request.query.get('v') == '30'" + + + exporter: + # dummy exporter which uses logger to export spans + log: + service_name: tracing + level: debug + +# otlp_http: +# endpoint: '%env(OTLP_EXPORTER_ENDPOINT)%' diff --git a/zim32/symfony-tracing-core/1.0/manifest.json b/zim32/symfony-tracing-core/1.0/manifest.json new file mode 100644 index 00000000..b7b943f9 --- /dev/null +++ b/zim32/symfony-tracing-core/1.0/manifest.json @@ -0,0 +1,11 @@ +{ + "bundles": { + "Zim\\SymfonyTracingCoreBundle\\SymfonyTracingCoreBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + }, + "env": { + "OTLP_EXPORTER_ENDPOINT": "http://some.domain.local:4318/v1/traces" + } +}