Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add recipe for zim32/symfony-tracing-core package #1655

Merged
merged 7 commits into from
Aug 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions zim32/symfony-tracing-core/1.0/config/packages/tracing.yaml
Original file line number Diff line number Diff line change
@@ -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)%'
11 changes: 11 additions & 0 deletions zim32/symfony-tracing-core/1.0/manifest.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
Loading