Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: open-telemetry/opentelemetry-java-instrumentation
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 001cb25581216a3f7ffc4ff2a607a2ba1779e04b
Choose a base ref
..
head repository: open-telemetry/opentelemetry-java-instrumentation
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: d9a79caac37584e0a0d33202baecfeeb9b003caa
Choose a head ref
Showing with 14 additions and 0 deletions.
  1. +14 −0 ....0/library/src/main/java/io/opentelemetry/instrumentation/okhttp/v3_0/OkHttpTelemetryBuilder.java
Original file line number Diff line number Diff line change
@@ -33,14 +33,28 @@ public final class OkHttpTelemetryBuilder {
/**
* Adds an additional {@link AttributesExtractor} to invoke to set attributes to instrumented
* items.
*
* @deprecated Use {@link #addAttributesExtractor(AttributesExtractor)} instead.
*/
@Deprecated
@CanIgnoreReturnValue
public OkHttpTelemetryBuilder addAttributeExtractor(
AttributesExtractor<? super Interceptor.Chain, ? super Response> attributesExtractor) {
builder.addAttributesExtractor(attributesExtractor);
return this;
}

/**
* Adds an additional {@link AttributesExtractor} to invoke to set attributes to instrumented
* items.
*/
@CanIgnoreReturnValue
public OkHttpTelemetryBuilder addAttributesExtractor(
AttributesExtractor<? super Interceptor.Chain, ? super Response> attributesExtractor) {
builder.addAttributesExtractor(attributesExtractor);
return this;
}

/**
* Configures the HTTP request headers that will be captured as span attributes.
*