Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

CaptureFeedback, missing environment #4808

Copy link
Copy link

Description

@lucas-zimerman
Issue body actions

Package

Sentry

.NET Flavor

.NET

.NET Version

9.0

OS

Android

OS Version

15

Development Environment

Visual Studio v18.x

SDK Version

6.0.0

Self-Hosted Sentry Version

No response

Workload Versions

Workload version: 10.0.101

Installed Workload Id Manifest Version Installation Source

android 36.1.2/10.0.100 SDK 10.0.100, VS 18.1.11304.174, VS 17.14.36804.6
ios 26.1.10502/10.0.100 SDK 10.0.100, VS 18.1.11304.174, VS 17.14.36804.6
maccatalyst 26.1.10502/10.0.100 SDK 10.0.100, VS 18.1.11304.174, VS 17.14.36804.6
maui-android 10.0.1/10.0.100 SDK 10.0.100
maui-windows 10.0.1/10.0.100 SDK 10.0.100, VS 18.1.11304.174, VS 17.14.36804.6

UseSentry or SentrySdk.Init call

        var builder = MauiApp.CreateBuilder();
        builder
            .SetupSentry()
            .UseMauiApp<App>()

...

        builder.UseSentry((option) =>
        {
            option.Native.ExperimentalOptions.SessionReplay.OnErrorSampleRate = 0.1;
            option.Native.ExperimentalOptions.SessionReplay.SessionSampleRate = 0.1;
            option.Native.ExperimentalOptions.SessionReplay.MaskAllText = false;
            option.Native.ExperimentalOptions.SessionReplay.MaskAllImages = false;
            option.ReportAssembliesMode = ReportAssembliesMode.None;
            option.Dsn = EnvironmentConfig.SentryDsn;
...

Steps to Reproduce

initialize sentry, set "Prod" in environments.
capture any error, you will see it has Prod as environment in sentry.io
call
SentrySdk.CaptureFeedback(new SentryFeedback("test", "test@test.com", "test", associatedEventId: SentrySdk.LastEventId));

Expected Result

Sentry.io with Prod on environment

Actual Result

Image
Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    .NETPull requests that update .net codePull requests that update .net codeBugSomething isn't workingSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.