-
-
Notifications
You must be signed in to change notification settings - Fork 444
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feat/otel-span-strongref' into feat/close-backpressure-…
…monitor
- Loading branch information
Showing
9 changed files
with
51 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,9 +13,7 @@ | |
import io.sentry.Sentry; | ||
import io.sentry.SentryEvent; | ||
import io.sentry.SentryLevel; | ||
import io.sentry.SentryOpenTelemetryMode; | ||
import io.sentry.SpanStatus; | ||
import io.sentry.opentelemetry.OpenTelemetryUtil; | ||
import io.sentry.protocol.Message; | ||
import io.sentry.protocol.User; | ||
import java.util.Collections; | ||
|
@@ -30,8 +28,6 @@ public static void main(String[] args) throws InterruptedException { | |
options.setDsn( | ||
"https://[email protected]/5428563"); | ||
|
||
OpenTelemetryUtil.applyOpenTelemetryOptions(options, SentryOpenTelemetryMode.AGENTLESS); | ||
|
||
// All events get assigned to the release. See more at | ||
// https://docs.sentry.io/workflow/releases/ | ||
options.setRelease("[email protected]+1"); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ import io.sentry.ISentryClient | |
import io.sentry.ISentryExecutorService | ||
import io.sentry.Scope | ||
import io.sentry.Scopes | ||
import io.sentry.Sentry | ||
import io.sentry.SentryOptions | ||
import io.sentry.backpressure.IBackpressureMonitor | ||
import org.mockito.kotlin.any | ||
|
@@ -83,6 +84,7 @@ fun createSentryClientMock(enabled: Boolean = true) = mock<ISentryClient>().also | |
|
||
fun createTestScopes(options: SentryOptions? = null, enabled: Boolean = true, scope: IScope? = null, isolationScope: IScope? = null, globalScope: IScope? = null): Scopes { | ||
val optionsToUse = options ?: SentryOptions().also { it.dsn = "https://[email protected]/proj" } | ||
Sentry.init(optionsToUse) | ||
val scopeToUse = scope ?: Scope(optionsToUse) | ||
val isolationScopeToUse = isolationScope ?: Scope(optionsToUse) | ||
val globalScopeToUse = globalScope ?: Scope(optionsToUse) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters