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
…2013)

Noticed when looking at #2012
  • Loading branch information
disq authored Dec 19, 2024
1 parent b616279 commit 595ff7b
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 @@ -153,7 +153,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 595ff7b

Please sign in to comment.