fix(deps): update golang.org/x/net to v0.60.0 and golang.org/x/tools to v0.51.0 (#203)
otelsetup / test (push) Successful in 14m49s
otelsetup / vulnerabilities (push) Successful in 12m17s
Unbound Release / Check Preconditions (push) Successful in 5m18s
Release / release (push) In progress
Unbound Release / Generate Changelog and Handle PR (push) Waiting to run
Unbound Release / Create Release (push) Waiting to run
Unbound Release / Create Tag (push) Skipped
pre-commit / pre-commit (push) Failing after 24m13s
otelsetup / test (push) Successful in 14m49s
otelsetup / vulnerabilities (push) Successful in 12m17s
Unbound Release / Check Preconditions (push) Successful in 5m18s
Release / release (push) In progress
Unbound Release / Generate Changelog and Handle PR (push) Waiting to run
Unbound Release / Create Release (push) Waiting to run
Unbound Release / Create Tag (push) Skipped
pre-commit / pre-commit (push) Failing after 24m13s
This commit was merged in pull request #203.
This commit is contained in:
1 parent
ffaf6a7f27
commit
63a04e8044
3 files changed
+5
-6
No files matched your search
@@ -13,7 +13,6 @@ import (
|
||||
"go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp"
|
||||
"go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp"
|
||||
"go.opentelemetry.io/otel/exporters/stdout/stdoutlog"
|
||||
"go.opentelemetry.io/otel/log/global"
|
||||
"go.opentelemetry.io/otel/propagation"
|
||||
"go.opentelemetry.io/otel/sdk/log"
|
||||
"go.opentelemetry.io/otel/sdk/metric"
|
||||
@@ -86,7 +85,7 @@ func SetupOTelSDK(ctx context.Context, enabled bool, serviceName, buildVersion,
|
||||
processor := log.NewSimpleProcessor(logExporter)
|
||||
logProvider := log.NewLoggerProvider(log.WithProcessor(processor))
|
||||
|
||||
global.SetLoggerProvider(logProvider)
|
||||
otel.SetLoggerProvider(logProvider)
|
||||
shutdownFuncs = append(shutdownFuncs, logProvider.Shutdown)
|
||||
|
||||
exp, err := otlpmetrichttp.New(ctx, otlpmetrichttp.WithHTTPClient(otlpHTTPClient()))
|
||||
|
||||
Reference in new issue
Block a user