You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For some context, we are in the process of evaluating New Relic for our new Rust projects. For that, we're using this C SDK along with the crate newrelic.
When using the function newrelic_notice_error(), a stack trace is internally generated with newrelic_get_stack_trace_as_json() and appears like so:
Naturally, all the Rust symbols are mangled and there is no mapping to source location (filename and line). We'd like to use the backtrace crate to capture the stacktrace from Rust, proving our developers a more familiar and readable feedback.
It is possible to overwrite the stacktrace today? I did a quick search of source code, but I could not find a way to do it.
If that is not possible, would it be a valid feature to add? Maybe other languages without a dedicated agent could also profit from this pattern of capturing native stack traces and passing it to the C SDK.
Hello,
For some context, we are in the process of evaluating New Relic for our new Rust projects. For that, we're using this C SDK along with the crate
newrelic.When using the function
newrelic_notice_error(), a stack trace is internally generated withnewrelic_get_stack_trace_as_json()and appears like so:Naturally, all the Rust symbols are mangled and there is no mapping to source location (filename and line). We'd like to use the
backtracecrate to capture the stacktrace from Rust, proving our developers a more familiar and readable feedback.It is possible to overwrite the stacktrace today? I did a quick search of source code, but I could not find a way to do it.
If that is not possible, would it be a valid feature to add? Maybe other languages without a dedicated agent could also profit from this pattern of capturing native stack traces and passing it to the C SDK.
Best regards,