Skip to content

Commit

Permalink
chore: Use the same otel resource for LoggerProvider as for others
Browse files Browse the repository at this point in the history
  • Loading branch information
disq committed Dec 18, 2024
1 parent b12dc10 commit 4aacbbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion serve/opentelemetry.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ func setupOtel(ctx context.Context, logger zerolog.Logger, p *plugin.Plugin, ote

lp := log.NewLoggerProvider(
log.WithProcessor(logsProcessor),
log.WithResource(newResource(p)),
log.WithResource(pluginResource),
)

otel.SetErrorHandler(otel.ErrorHandlerFunc(func(err error) {
Expand Down

0 comments on commit 4aacbbf

Please sign in to comment.