1
0
Fork 0

Add missing resource attributes detectors

This commit is contained in:
Romain 2025-07-07 15:36:04 +02:00 committed by GitHub
parent 9862cd6780
commit 91331415ce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 12 additions and 4 deletions

View file

@ -209,7 +209,11 @@ func newOpenTelemetryMeterProvider(ctx context.Context, config *types.OTLP) (*sd
res, err := resource.New(ctx,
resource.WithAttributes(semconv.ServiceNameKey.String(config.ServiceName)),
resource.WithAttributes(semconv.ServiceVersionKey.String(version.Version)),
resource.WithContainer(),
resource.WithFromEnv(),
resource.WithHost(),
resource.WithOS(),
resource.WithProcess(),
resource.WithTelemetrySDK(),
)
if err != nil {