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 configuration tutorial #12

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add configuration tutorial #12

wants to merge 1 commit into from

Conversation

h1k3r
Copy link
Contributor

@h1k3r h1k3r commented Aug 28, 2024

No description provided.

@@ -0,0 +1,140 @@
# Shopware OpenTelemetry configuration
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines +38 to +40
main:
type: service
id: monolog.handler.open_telemetry
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be documented to be used as a separate handler? rather than main?

Comment on lines +29 to +33
# traces
shopware:
profiler:
integrations:
- OpenTelemetry
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be worth mentioning that this setting is only relevant for using the Profiler, not the auto tracing in general.

Auto tracing would be working directly after requiring the dependency via composer, without any configuration updates (besides the env vars).

OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE="delta"

# Attributes detectors
OTEL_PHP_DETECTORS="env"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would be worth saying, that this is the minimal set to make things work. (not setting it at all should also work).

or set a link to the full configuration set

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants