Skip to content

Feature flag to error if multiple versions of sentry-core are found #661

Open
@Diggsey

Description

@Diggsey

I've used sentry quite a bit, and a very common issue is that you end up with two different versions of sentry-core in your application, which results in errors being silently dropped! This issue is really hard to debug because some errors come through just fine - it just depends which crate is reporting the error.

What I have done for our latest application is add a build.rs which reads the project-wide lockfile, and raises an error if multiple versions of sentry-core are found.

I think this functionality would be great to add directly to sentry-core's build script, enabled behind a feature flag, and for use of this feature flag to be recommended to application authors in the documentation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureRequest for a new featureRustSDK

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions