Skip to content
This repository was archived by the owner on Jul 1, 2022. It is now read-only.
This repository was archived by the owner on Jul 1, 2022. It is now read-only.

Overwriting error stacktrace #17

Description

@sitegui

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 with newrelic_get_stack_trace_as_json() and appears like so:

image

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.

Best regards,

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions