-
Notifications
You must be signed in to change notification settings - Fork 4.5k
New issue
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
[BUG] Azure.Monitor.OpenTelemetry.AspNetCore v1.2.0-beta.4 not using service.version resource attribute #44502
Comments
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @cijothomas @rajkumar-rangaraj @reyang @TimothyMothra @vishweshbankwar. |
Hi @bgelens , can you share your full config? How are you setting My code sample works:
builder.Services.AddOpenTelemetry()
.ConfigureResource(x => x.AddAttributes(new List<KeyValuePair<string, object>> { new KeyValuePair<string, object>("service.version", "someValue") }))
.UseAzureMonitor(o => o.ConnectionString = connectionString); |
I fixed the exporter version to match up with expectations, was an oversight.
This pointer however got me tinkering and I replaced Thanks for your support! |
I confirmed that the value "unknown" is being filtered. This wasn't a known limitation. I'll follow up with the service team to get more information. |
Library name and version
Azure.Monitor.OpenTelemetry.AspNetCore v1.2.0-beta.4
Describe the bug
Azure.Monitor.OpenTelemetry.Exporter version 1.3.0 now supports providing the Application Version to Application Insights by making use of the service.version resource attribute #42174
Azure.Monitor.OpenTelemetry.AspNetCore v1.2.0-beta.4 has the correct dependency to make use of this however, no matter what I try to setup the service.version, it is in the end ignored when exported to application insights
Expected behavior
Application_Version to be populated for traces based on service.version resource attribute
Actual behavior
it is not
Reproduction Steps
add service.version to OTEL_RESOURCE_ATTRIBUTES environment variable or handle via a dictionary like:
hook up normally with something like
builder.Services.AddOpenTelemetry().UseAzureMonitor();
observe that application_version is never part of any traces.
Environment
.NET SDK:
Version: 8.0.301
Commit: 1a0e9c0300
Workload version: 8.0.300-manifests.011fccd5
MSBuild version: 17.10.4+10fbfbf2e
Runtime Environment:
OS Name: Mac OS X
OS Version: 14.5
OS Platform: Darwin
RID: osx-arm64
Base Path: /usr/local/share/dotnet/sdk/8.0.301/
.NET workloads installed:
There are no installed workloads to display.
Host:
Version: 8.0.6
Architecture: arm64
Commit: 3b8b000a0e
.NET SDKs installed:
6.0.422 [/usr/local/share/dotnet/sdk]
7.0.409 [/usr/local/share/dotnet/sdk]
8.0.205 [/usr/local/share/dotnet/sdk]
8.0.301 [/usr/local/share/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.30 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.19 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.5 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.6 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.30 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.19 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.5 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.6 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
The text was updated successfully, but these errors were encountered: