Skip to content

Ability to overwrite start/end times for transactions and spans #2683

@vhn

Description

@vhn

Problem Statement

We have some systems that are not able to run a sentry SDK directly due to limitations on 3rd party binaries.
For these we are planning to manually log a simple span tree and forward the data to a proxy. The proxy would then use a Sentry SDK to upload it all to Sentry.

In order for this to work we'd need to be able to manually set start/end times via the Sentry SDK as they won't be matching the times on the proxy, but rather those manually recorded on the instrumented servers.

Solution Brainstorm

We've noticed that the Javascript SDK has the ability to change these fields, see here:
https://github.com/getsentry/sentry-javascript/blob/5c2546f6ee2b56321614ba6f78811163fe783db4/packages/core/src/tracing/span.ts
https://github.com/getsentry/sentry-javascript/blob/5c2546f6ee2b56321614ba6f78811163fe783db4/packages/core/src/tracing/transaction.ts

whereas those same members are private in the .NET equivalent:
https://github.com/getsentry/sentry-dotnet/blob/d59d08cbc54669a0e98684516d2ce54839b6b55a/src/Sentry/Transaction.cs

Is this something you would be open to adding so our proxy does not have to use javascript?
Or, if the use case is better handled some other way that we've missed, please let us know.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureNew feature or request

    Projects

    Status

    No status

    Status

    No status

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions