Skip to content

Different sentry options in UseSentry() and Init() + where are the docs? #2340

Discussion options

You must be logged in to vote

Our packages are layered. Initialization and options follows suit.

  • Package: Sentry is the base package.
    • If used alone, initialize via SentrySdk.Init.
    • The options class is SentryOptions.
  • Package Sentry.Extensions.Logging depends on Sentry.
    • If used alone, initialize via ILoggingBuilder.AddSentry. It will initialize Sentry internally.
    • The options class is SentryLoggingOptions, which extends SentryOptions.
  • Package Sentry.AspNetCore depends on Sentry.Extensions.Logging.
    • Initialized via IWebHostBuilder.UseSentry. It will initialize Sentry.Extensions.Logging and Sentry internally.
    • The options class is SentryAspNetCoreOptions, which extends SentryLoggingOptions.

There's a similar hiera…

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@mattjohnsonpint
Comment options

@mattjohnsonpint
Comment options

@mattjohnsonpint
Comment options

@mattjohnsonpint
Comment options

@Patrick-Glatt-Vitra
Comment options

Answer selected by mattjohnsonpint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants