Last active
November 29, 2025 10:57
-
-
Save up1/11d396b0fd0ebb85c86e7fdde2646a4b to your computer and use it in GitHub Desktop.
OpenTelemetry in Spring Boot 4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| spring.application.name=otel | |
| # For demo only | |
| management.tracing.sampling.probability=1.0 | |
| management.otlp.metrics.export.step=10s | |
| management.observations.annotations.enabled=true | |
| management.opentelemetry.tracing.export.otlp.transport=http | |
| management.otlp.metrics.export.url=http://localhost:4318/v1/metrics | |
| management.opentelemetry.tracing.export.otlp.endpoint=http://localhost:4318/v1/traces | |
| management.opentelemetry.logging.export.otlp.endpoint=http://localhost:4318/v1/logs | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| services: | |
| grafana-lgtm: | |
| image: 'grafana/otel-lgtm:latest' | |
| ports: | |
| - '3000:3000' | |
| - '4317:4317' | |
| - '4318:4318' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment