Attempt to migrate App Insights TrackEvent logic to OpenTelemetry isn't sending data #47580
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.
needs-team-attention
Workflow: This issue needs attention from Azure service team or SDK team
OpenTelemetry
OpenTelemetry instrumentation (not Monitor-specific)
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Service Attention
Workflow: This issue is responsible by Azure service team.
Library name and version
Azure.Monitor.OpenTelemetry.Exporter 1.3.0
Query/Question
I am attempting to migrate a .NET console app that is using the Application Insights SDK to TrackEvent some data (which shows up in my App Insights instance as a customEvent) to OpenTelemetry. IIUC the closest thing to TrackEvent in OpenTelemetry is the Trace signal.
This is what I did before:
Here's what I'm trying now:
But when I run the code nothing appears to be sent. I've checked both customEvents and traces and neither has new data.
The
Instrumentation
key inTelemetryEvent
is correct for my App Insights resource and works fine with the old code. I've also tried replacing thatInstrumentationKey={e.InstrumentationKey}
string with the Connection String value that you get from the App Insights portal--no luck with that either.What am I doing wrong?
Environment
The text was updated successfully, but these errors were encountered: