getsentry / getsentry/sentry-java

Multi DSN per Java Application support

Offen
#2,736 12 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Improvement Java
Vorherrschende Sprache
Kotlin
Sterne
1.4k
Forks
478
Ø Merge
2 T. 23 Std.
Gemergte PRs (30 T.)
67

Beschreibung

### Problem Statement

I have a use case where I'd like to separate Projects by team with multiple DSNs in a single JVM application. I tried local testing of a workaround solution (https://github.com/getsentry/sentry-java/compare/feat/multi-dsn-playground) with custom ITransportFactory and EventProcessor which seemed to work. The only issue was that `RequestDetailsResolver` was package-private in the SDK, so my application didn't have access and I had to rewrite my own RequestDetailsResolver, DSN classes. `+ SentryClient.SENTRY_PROTOCOL_VERSION` within the RequestDetailsResolver was also unaccessible, so I have to hardcode the protocol version.

### Solution Brainstorm

Is it possible to make this class public?
https://github.com/getsentry/sentry-java/blob/main/sentry/src/main/java/io/sentry/RequestDetailsResolver.java#L10

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.