Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[versions]
opentelemetry-instrumentation-alpha = "2.26.1-alpha"
opentelemetry-instrumentation-alpha = "2.27.0-alpha"
#opentelemetry-instrumentation = "2.9.0" // alpha bom includes non-alpha bom
opentelemetry-semconv = "1.40.0"
opentelemetry-semconv-alpha = "1.40.0-alpha"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ object OkHttpSingletons {
Interceptor { chain: Interceptor.Chain ->
chain.proceed(chain.request())
}
private val ATTRIBUTES_GETTER = OkHttpAttributesGetter()

@JvmField
var connectionErrorInterceptor: Interceptor = NOOP_INTERCEPTOR
Expand All @@ -51,13 +52,13 @@ object OkHttpSingletons {
UnaryOperator {
HttpSpanNameExtractor
.builder(
OkHttpAttributesGetter.INSTANCE,
ATTRIBUTES_GETTER,
).setKnownMethods(instrumentation.knownMethods)
.build()
},
).addAttributesExtractor(
HttpClientServicePeerAttributesExtractor.create(
OkHttpAttributesGetter.INSTANCE,
ATTRIBUTES_GETTER,
openTelemetry,
),
).setEmitExperimentalHttpClientTelemetry(
Expand Down
Loading