Open emperorente opened 1 month ago
Pinging code owners:
exporter/azuremonitor: @pcwiese
See Adding Labels via Comments if you do not have permissions to add labels yourself.
We saw the same issue, azuremonitor exporter is not able to send multiple application insights if you use connection_string but somehow it does work if you use the legacy instrumentation_key instead
Component(s)
exporter/azuremonitor
Describe the issue you're reporting
Hi team,
We're trying to send the data to different Application insights, use the demo under opentelemetry-collector-contrib/examples/demo/,
and also add
semconv.ServiceNamespaceKey.String("GROUPB")|semconv.ServiceNamespaceKey.String("GROUPA")
for client and serverHere is the config of collector:
docker-compose.yml:
when I start it, Collector shows error as :
"2024-07-22T06:07:36.637Z debug azuremonitorexporter@v0.96.0/factory.go:139 #78 - 400 Invalid instrumentation key {"kind": "exporter", "data_type": "traces", "name": "azuremonitor/groupb"} 2024-07-22T06:07:36.637Z debug azuremonitorexporter@v0.96.0/factory.go:139 Telemetry item: {"ver":1,"name":"Microsoft.ApplicationInsights.Metric","time":"2024-07-22T06:07:34.864590456Z","sampleRate":100,"seq":"","iKey":"","tags":{"ai.cloud.role":"demo-client","ai.internal.sdkVersion":"otelc-v0.96.0-lin-arm64"},"data":{"baseType":"MetricData","baseData":{"ver":2,"metrics":[{"name":"demo_client/line_counts","kind":0,"value":18527,"count":1,"min":0,"max":0,"stdDev":0}],"properties":{"client":"cli","host.name":"4a824b92f1b5","instrumentationlibrary.name":"demo-client-meter","method":"repl","process.command_args":"","process.executable.name":"main","process.executable.path":"/app/main","process.owner":"root","process.pid":"","process.runtime.description":"go version go1.22.5 linux/arm64","process.runtime.name":"go","process.runtime.version":"go1.22.5","service.name":"demo-client","service.namespace":"GROUPB","telemetry.sdk.language":"go","telemetry.sdk.name":"opentelemetry","telemetry.sdk.version":"1.28.0"}}}}"
Could you please take a look at it?