Skip to content

PushScope examples for .NET #5460

@rodolfoBee

Description

@rodolfoBee

Core or SDK?

Platform/SDK

Which part? Which one?

.NET SDK

Description

The page https://docs.sentry.io/platforms/dotnet/guides/aspnetcore/enriching-events/scopes/ mentions:

We also support pushing and configuring a scope within a single call. This is typically called with-scope, push-scope or implemented as a function parameter on the capture methods, depending on the SDK. It's very helpful if you only want to send data for one specific event.

Without giving any example of how to implement with/push scope functions.

Suggested Solution

Give an example of push/with scope implementation

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for issues without a type.

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions