Closed stevenbrix closed 2 years ago
Label prediction was below confidence level 0.6
for Model:ServiceLabels
: 'Service Bus:0.24495983,Storage:0.21526647,Monitor - ApplicationInsights:0.04194767'
Thank you for your feedback. This has been routed to the support team for assistance.
@stevenbrix Looks like the latest code in the MessageData class should resolve this error. @rajkumar-rangaraj Could you confirm?
You're correct. This is fixed in latest code.
@rajkumar-rangaraj Thanks for the confirmation! Could you share any insight on when the next release is scheduled for?
@stevenbrix Closing this issue since it has been fixed for the upcoming release.
Library name and version
Azure.Monitor.OpenTelemetry.Exporter
Describe the bug
I downloaded the source code to use this functionality because I need logs to be uploaded to Application Insights. After debugging why my logs weren't uploading, there is an exception in the constructor of
MessageData
because thelogRecord.State
object isnull
:to fix this:
Although after that, I'm still getting this exception:
OpenTelemetry-AzureMonitor-Exporter - EventId: [2], EventName: [WriteError], Message: [FailedToExport - System.ObjectDisposedException: Cannot access a closed Stream. at System.IO.MemoryStream.Write(ReadOnlySpan
1 buffer) at System.Text.Json.Utf8JsonWriter.Flush() at System.Text.Json.Utf8JsonWriter.Dispose() at Azure.Monitor.OpenTelemetry.Exporter.NDJsonWriter.Dispose() in /home/stevenki/code/avs/src/conveyor/avs3/Azure.Monitor.OpenTelemetry.Exporter/src/NDJsonWriter.cs:line 46 at Azure.Monitor.OpenTelemetry.Exporter.ApplicationInsightsRestClient.CreateTrackRequest(IEnumerable
1 body) in /home/stevenki/code/avs/src/conveyor/avs3/Azure.Monitor.OpenTelemetry.Exporter/src/ApplicationInsightsRestClient.cs:line 97 at Azure.Monitor.OpenTelemetry.Exporter.ApplicationInsightsRestClient.InternalTrackAsync(IEnumerable`1 body, IPersistentStorage storage, CancellationToken cancellationToken) in /home/stevenki/code/avs/src/conveyor/avs3/Azure.Monitor.OpenTelemetry.Exporter/src/ApplicatExpected behavior
logs are uploaded to Application Insights
Actual behavior
logs aren't uploaded to application insights
Reproduction Steps
This is what my builder looks like. I know it's in F#, but should translate to C# pretty easily :)
Environment
No response