Add Opentelemetry config and variables - #540
Open
ninetteadhikari wants to merge 1 commit into
Open
Conversation
ninetteadhikari
force-pushed
the
opentelemetry
branch
from
June 22, 2026 10:19
8d7f63c to
5b4baa2
Compare
nikola-maric-aula
self-requested a review
June 22, 2026 13:45
|
|
||
| # OpenTelemetry | ||
| OTEL_SERVICE_NAME=aula-backend | ||
| OTEL_TRACES_EXPORTER=otlp |
Contributor
There was a problem hiding this comment.
Suggested change
| OTEL_TRACES_EXPORTER=otlp | |
| OTEL_TRACES_EXPORTER=otlp | |
| OTEL_METRICS_EXPORTER=null | |
| OTEL_LOGS_EXPORTER=null |
| * This should be the key of one of the exporters defined in the exporters section | ||
| * Supported drivers: "otlp", "console", "memory", "null" | ||
| */ | ||
| 'exporter' => env(Variables::OTEL_METRICS_EXPORTER, 'otlp'), |
Contributor
There was a problem hiding this comment.
Suggested change
| 'exporter' => env(Variables::OTEL_METRICS_EXPORTER, 'otlp'), | |
| 'exporter' => env(Variables::OTEL_METRICS_EXPORTER, 'null'), |
| * This should be the key of one of the exporters defined in the exporters section | ||
| * Supported drivers: "otlp", "console", "memory", "null" | ||
| */ | ||
| 'exporter' => env(Variables::OTEL_LOGS_EXPORTER, 'otlp'), |
Contributor
There was a problem hiding this comment.
Suggested change
| 'exporter' => env(Variables::OTEL_LOGS_EXPORTER, 'otlp'), | |
| 'exporter' => env(Variables::OTEL_LOGS_EXPORTER, 'null'), |
Contributor
There was a problem hiding this comment.
we should either not use logs and metrics exporters in the PHP service or we should configure otel to accept them too (https://github.com/aula-app/infra/pull/44/changes#r3459359235)
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context
This PR adds opentelemetry laravel to setup config file and variables. The backend is instrumented using the
keepsuit/laravel-opentelemetrypackage together with the OpenTelemetry PHP extension. This automatically captured data for incoming HTTP requests, database queries, queue jobs, cache operations, and other framework activities.This is required to provide data for Victoria Traces and is added to the infra repo. The traces data can be viewed on VictoraTraces here.
Checklist