Skip to content

Comments

Adds Sentry Serilog sink#50

Merged
carlsixsmith-moj merged 1 commit intodevelopfrom
feature/add-sentry
Dec 2, 2025
Merged

Adds Sentry Serilog sink#50
carlsixsmith-moj merged 1 commit intodevelopfrom
feature/add-sentry

Conversation

@samgibsonmoj
Copy link
Contributor

@samgibsonmoj samgibsonmoj commented Dec 2, 2025

This pull request adds Sentry integration to the DMS logging setup, allowing for enhanced error tracking alongside Serilog. The changes ensure that Sentry is initialized if a DSN is provided in configuration, and that Serilog logs are forwarded to Sentry.

Error tracking integration:

  • Added Sentry initialization in UseDmsSerilog to enable error tracking when a Sentry DSN is present in configuration, including environment and tracing options. (src/Libraries/EnvironmentSetup/DmsServiceExtensions.cs)
  • Updated Serilog configuration to include a Sentry sink, ensuring logs are sent to Sentry in addition to file logging. (src/Libraries/EnvironmentSetup/DmsServiceExtensions.cs)
  • Imported the Sentry namespace to support the new integration. (src/Libraries/EnvironmentSetup/DmsServiceExtensions.cs)

@samgibsonmoj samgibsonmoj requested review from a team as code owners December 2, 2025 09:15
@carlsixsmith-moj carlsixsmith-moj merged commit 8f8f7de into develop Dec 2, 2025
2 checks passed
@carlsixsmith-moj carlsixsmith-moj deleted the feature/add-sentry branch December 2, 2025 09:31
@carlsixsmith-moj carlsixsmith-moj added enhancement New feature or request dependencies Pull requests that update a dependency file labels Dec 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants