We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
exporter/azuremonitor
func initMonitor() (*sdktrace.TracerProvider, error) { key := os.Getenv("INSTRUMENTATION_KEY") exporterConfig := azuremonitorexporter.Config{ InstrumentationKey: configopaque.String(key), } factory := azuremonitorexporter.NewFactory() azExporter, err := factory.CreateTracesExporter(context.Background(), exporter.CreateSettings{}, exporterConfig) if err != nil { panic(err) } tp := sdktrace.NewTracerProvider( sdktrace.WithSampler(sdktrace.AlwaysSample()), sdktrace.WithBatcher(azExporter), ) otel.SetTracerProvider(tp) otel.SetTextMapPropagator(propagation.NewCompositeTextMapPropagator(propagation.TraceContext{}, propagation.Baggage{})) return tp, nil }
TraceProvider created
The exporter is not able to be used WithBatcher because it does not implement ExportSpans
v0.111.0
OS: (e.g., "Ubuntu 20.04") Compiler(if manually compiled): (e.g., "go 14.2")
No response
The text was updated successfully, but these errors were encountered:
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself.
Sorry, something went wrong.
No branches or pull requests
Component(s)
exporter/azuremonitor
What happened?
Description
Steps to Reproduce
Expected Result
TraceProvider created
Actual Result
The exporter is not able to be used WithBatcher because it does not implement ExportSpans
Collector version
v0.111.0
Environment information
Environment
OS: (e.g., "Ubuntu 20.04")
Compiler(if manually compiled): (e.g., "go 14.2")
OpenTelemetry Collector configuration
No response
Log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: