[BUG] - Error from Ingestion: 100: Field 'ai.internal.sdkVersion' on type 'ContextTagKeys' is too long. #37775
Labels
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Monitor - Exporter
Monitor OpenTelemetry Exporter
needs-team-attention
Workflow: This issue needs attention from Azure service team or SDK team
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Library name and version
Azure.Monitor.OpenTelemetry.Exporter
Describe the bug
Hello, I am receiving this error message in telemetry:
OpenTelemetry-AzureMonitor-Exporter - EventId: [8], EventName: [TransmissionFailed], Message: [Transmission failed. StatusCode: 400. Error from Ingestion: 100: Field 'ai.internal.sdkVersion' on type 'ContextTagKeys' is too long. Expected: 64 characters. Action: Telemetry is dropped. Origin: AzureMonitorLogExporter. Instrumentation Key: 022071e5-8639-4cb1-94fd-7097c92eea95. Configured Endpoint: https://westeurope-5.in.applicationinsights.azure.com/. Current Endpoint: westeurope-5.in.applicationinsights.azure.com]
The traces that are trying to send to Azure Monitor is this:
{"name":"Metric","time":"2023-07-21T11:51:45.2308956Z","iKey":"022071e5-8639-4cb1-94fd-7097c92eea95","tags":{"ai.cloud.role":"unknown_service:dotnet","ai.cloud.roleInstance ":"ES-PF38955J","ai.internal.sdkVersion":"dotnet4.6.30411.01 @BuiltBy: AzDevOps-vs2017b17000759 @Branch: release/2.1-MSRC @srccode: https://github.com/dotnet/coreclr/tree/f6b4d10f1b98 94c9336c514c7ee6cff5c82535fe:otel1.5.1:ext1.0.0-beta.13"},"data":{"baseType":"MetricData","baseData":{"metrics":[{"name":"process.runtime.dotnet.gc.collections.count","value":0}],"pro perties":{"generation":"gen2"},"ver":2}}}
as can be seen, the value of ai.internal.sdkVersion is too long.
I am integrating it into a netcore 2.1 project and the list of added packages are the following:
OpenTelemetry" Version="1.5.1"
OpenTelemetry.Extensions.Hosting" Version="1.5.1"
OpenTelemetry.Instrumentation.AspNetCore" Version="1.5.0-beta.1"
OpenTelemetry.Instrumentation.Http" Version="1.5.0-beta.1"
OpenTelemetry.Instrumentation.Runtime" Version="1.5.0"
Azure.Monitor.OpenTelemetry.AspNetCore" Version="1.0.0-beta.5"
The configuration is the following:
Expected behavior
Telemetry is successfully sent to Azure Application Insight
Actual behavior
traces, metrics and logs are not being sent to Azure Application Insight
Reproduction Steps
Create api project with NetCore 2.1
Add the packages mentioned in the description
Add configuration on Startup.cd class mentioned in the description.
Run application.
Environment
Runtime Environment:
OS Name: Windows
OS Version: 10.0.19045
OS Platform: Windows
RID: win10-x64
NET CORE 2.1
Visual Studio 2022 V17.5.4
The text was updated successfully, but these errors were encountered: