Open marcusjsford opened 3 years ago
I think this may need extension to add a .net stacktrace parser. https://github.com/elastic/apm-server/blob/1ae881bb4c2358065fe0e33d43a77e9108fcea12/processor/otel/exceptions.go#L85-L91
Thanks Marcus for your investigation, we will look at it with the team
I might be way off since I'm just starting to use APM server and OTLP in Elastic, but I could live without having the UI show me the stacktrace in that window, but it seems the entire stack trace is not ingested, as it does not appear in the metadata tab OR the document (found through Discover tab). Am I missing something?
@cdroulers it's by no means ideal, but the stacktrace should be visible when looking the document in JSON format under Discover. Here's an example of an error with a stacktrace captured using opentelemetry-go:
The server records the stacktrace as an exception attribute like this when it doesn't know how to parse it.
@axw I ended up finding a few hours later, thanks for the help. I'm encountering a lot of small annoyances like this and complexity in allowing longer fields than 1024 characters (including SQL statements!). Still reading the docs.
Thanks for the reply!
@axw I confirm that we can indeed consult the .NET stack trace from the Discover page.
While waiting for your team to find a solution, it would be perhaps relevant to indicate another message than "No stack trace available" in this context where a stack trace is however well transmitted.
Maybe indicate that only the stack trace in Java format is currently viewable.
This would avoid that other developers search unnecessarily the origin of the problem.
While waiting for your team to find a solution, it would be perhaps relevant to indicate another message than "No stack trace available" in this context where a stack trace is however well transmitted.
@a-vivona thanks, I agree that would be a good idea. I'll discuss this with the APM UI team to see what we can do. We may be able to display the original, unparsed, stack trace in this case.
APM Server version: apm-server:7.13.4 Elastic version: elasticsearch:7.13.4 Kibana version: kibana:7.13.4 Otel-Collector version: otelcontribcol v0.30.
When I send a span with a span event exception to apm-server via the OTLP protocol apm-server correctly translates the span into an error but the stacktrace does not show on the kibana UI. I can see the Spans coming through into Elastic and view them in the Kibana UI. I can see that the SpanEvent has been correctly translated into an error but the dotnet stacktrace is missing from the UI. In the apm-7.13.4-error-000001 index i can see the error created.
Steps to reproduce:
Otel-Collector Config
Output from Otel-Collector
Screenshots showing the expected error but missing the stacktrace