File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
sentry-ktor/src/main/java/io/sentry/ktor
sentry-samples/sentry-samples-ktor/src/main/java/io/sentry/samples/ktor Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ internal const val TRACE_ORIGIN = "auto.http.ktor"
68
68
69
69
/* *
70
70
* Sentry plugin for Ktor HTTP client that provides automatic instrumentation for HTTP requests,
71
- * including distributed tracing, breadcrumbs, and error capturing .
71
+ * including error capturing, request/response breadcrumbs, and distributed tracing .
72
72
*/
73
73
public val SentryKtorClientPlugin : ClientPlugin <SentryKtorClientPluginConfig > =
74
74
createClientPlugin(SENTRY_KTOR_CLIENT_PLUGIN_KEY , ::SentryKtorClientPluginConfig ) {
Original file line number Diff line number Diff line change @@ -21,9 +21,11 @@ fun main() {
21
21
val client =
22
22
HttpClient (Java ) { install(SentryKtorClientPlugin ) { failedRequestTargets = listOf (" .*" ) } }
23
23
24
+ val tx = Sentry .startTransaction(" My Transaction" , " test" )
24
25
runBlocking { makeRequests(client) }
25
26
26
27
Sentry .captureMessage(" Ktor client sample done" )
28
+ tx.finish()
27
29
}
28
30
29
31
suspend fun makeRequests (client : HttpClient ) {
You can’t perform that action at this time.
0 commit comments