Skip to content

Commit f9538d5

Browse files
committed
improve
1 parent 93b4a83 commit f9538d5

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

sentry-ktor/src/main/java/io/sentry/ktor/SentryKtorClientPlugin.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ internal const val TRACE_ORIGIN = "auto.http.ktor"
6868

6969
/**
7070
* 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.
7272
*/
7373
public val SentryKtorClientPlugin: ClientPlugin<SentryKtorClientPluginConfig> =
7474
createClientPlugin(SENTRY_KTOR_CLIENT_PLUGIN_KEY, ::SentryKtorClientPluginConfig) {

sentry-samples/sentry-samples-ktor/src/main/java/io/sentry/samples/ktor/Main.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@ fun main() {
2121
val client =
2222
HttpClient(Java) { install(SentryKtorClientPlugin) { failedRequestTargets = listOf(".*") } }
2323

24+
val tx = Sentry.startTransaction("My Transaction", "test")
2425
runBlocking { makeRequests(client) }
2526

2627
Sentry.captureMessage("Ktor client sample done")
28+
tx.finish()
2729
}
2830

2931
suspend fun makeRequests(client: HttpClient) {

0 commit comments

Comments
 (0)