Skip to content

Commit 751049f

Browse files
fix(deps): update opentelemetry.instrumentation.alpha to v2.27.0-alpha (#1694)
* fix(deps): update opentelemetry.instrumentation.alpha to v2.27.0-alpha * account for changes in open-telemetry/opentelemetry-java-instrumentation#16889 --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Jason Plumb <jplumb@splunk.com>
1 parent 1a5bded commit 751049f

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[versions]
2-
opentelemetry-instrumentation-alpha = "2.26.1-alpha"
2+
opentelemetry-instrumentation-alpha = "2.27.0-alpha"
33
#opentelemetry-instrumentation = "2.9.0" // alpha bom includes non-alpha bom
44
opentelemetry-semconv = "1.40.0"
55
opentelemetry-semconv-alpha = "1.40.0-alpha"

instrumentation/okhttp3/library/src/main/java/io/opentelemetry/instrumentation/library/okhttp/internal/OkHttpSingletons.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ object OkHttpSingletons {
2727
Interceptor { chain: Interceptor.Chain ->
2828
chain.proceed(chain.request())
2929
}
30+
private val ATTRIBUTES_GETTER = OkHttpAttributesGetter()
3031

3132
@JvmField
3233
var connectionErrorInterceptor: Interceptor = NOOP_INTERCEPTOR
@@ -51,13 +52,13 @@ object OkHttpSingletons {
5152
UnaryOperator {
5253
HttpSpanNameExtractor
5354
.builder(
54-
OkHttpAttributesGetter.INSTANCE,
55+
ATTRIBUTES_GETTER,
5556
).setKnownMethods(instrumentation.knownMethods)
5657
.build()
5758
},
5859
).addAttributesExtractor(
5960
HttpClientServicePeerAttributesExtractor.create(
60-
OkHttpAttributesGetter.INSTANCE,
61+
ATTRIBUTES_GETTER,
6162
openTelemetry,
6263
),
6364
).setEmitExperimentalHttpClientTelemetry(

0 commit comments

Comments
 (0)