-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Description
Trying to consume the nettrace in PerfView results in an exception while converting to ETLX file.
Started: Opening trace.nettrace Creating ETLX file C:\Users\chris\AppData\Local\Temp\PerfView\trace_2e914def.etlx from C:\Users\chris\Documents\trace.nettrace Error: Exception EventPipe conversion: System.ArgumentOutOfRangeException: Valid values are between 0 and 999, inclusive. Parameter name: millisecond at System.DateTime..ctor(Int32 year, Int32 month, Int32 day, Int32 hour, Int32 minute, Int32 second, Int32 millisecond, DateTimeKind kind) at Microsoft.Diagnostics.Tracing.EventPipeEventSource.FromStream(Deserializer deserializer) at FastSerialization.Deserializer.ReadObjectDefinition(Tags tag, StreamLabel objectLabel) at FastSerialization.Deserializer.GetEntryObject() at Microsoft.Diagnostics.Tracing.EventPipeEventSource..ctor(PinnedStreamReader streamReader, String name) at Microsoft.Diagnostics.Tracing.Etlx.TraceLog.CreateFromEventPipeDataFile(String filePath, String etlxFilePath, TraceLogOptions options) at PerfView.EventPipePerfViewData.GetTraceLog(TextWriter log, Action3 onLostEvents)
[Error: exception while opening EventPipe data.]
Completed: Opening trace.nettrace (Elapsed Time: 0.122 sec)`
The application environment is a Linux container running on an Azure App Service. Steps taken to create and retrieve the trace are:
- SSH into already running app service executing a standard web api.
- export PATH="$PATH:/root/.dotnet/tools"
- dotnet-trace collect -p
- Do some tests via Postman
- End trace
- Ftp trace.nettrace to remote server for pickup
- Download trace.nettrace from remote server.
- Try to open file
trace.zip
Target Framework is netcoreapp3.1
Linux image is based on mcr.microsoft.com/dotnet/core/sdk:3.1
Added Note: This has been reproed in .NET 9 as well.