@@ -79,7 +79,7 @@ public static <REQUEST, RESPONSE> InstrumenterBuilder<REQUEST, RESPONSE> builder
7979 private final ContextCustomizer <? super REQUEST >[] contextCustomizers ;
8080 private final OperationListener [] operationListeners ;
8181 private final AttributesExtractor <? super REQUEST , ? super RESPONSE >[]
82- operationAttributesExtractors ;
82+ operationListenerAttributesExtractors ;
8383 private final ErrorCauseExtractor errorCauseExtractor ;
8484 private final boolean propagateOperationListenersToOnEnd ;
8585 private final boolean enabled ;
@@ -96,8 +96,8 @@ public static <REQUEST, RESPONSE> InstrumenterBuilder<REQUEST, RESPONSE> builder
9696 this .attributesExtractors = builder .attributesExtractors .toArray (new AttributesExtractor [0 ]);
9797 this .contextCustomizers = builder .contextCustomizers .toArray (new ContextCustomizer [0 ]);
9898 this .operationListeners = builder .buildOperationListeners ().toArray (new OperationListener [0 ]);
99- this .operationAttributesExtractors =
100- builder .operationAttributesExtractors .toArray (new AttributesExtractor [0 ]);
99+ this .operationListenerAttributesExtractors =
100+ builder .operationListenerAttributesExtractors .toArray (new AttributesExtractor [0 ]);
101101 this .errorCauseExtractor = builder .errorCauseExtractor ;
102102 this .propagateOperationListenersToOnEnd = builder .propagateOperationListenersToOnEnd ;
103103 this .enabled = builder .enabled ;
@@ -211,11 +211,11 @@ private Context doStartImpl(Context parentContext, REQUEST request, @Nullable In
211211 context = context .with (span );
212212
213213 if (operationListeners .length != 0 ) {
214- if (operationAttributesExtractors .length != 0 ) {
214+ if (operationListenerAttributesExtractors .length != 0 ) {
215215 UnsafeAttributes operationAttributes = new UnsafeAttributes ();
216216 operationAttributes .putAll (attributes .asMap ());
217217 for (AttributesExtractor <? super REQUEST , ? super RESPONSE > extractor :
218- operationAttributesExtractors ) {
218+ operationListenerAttributesExtractors ) {
219219 extractor .onStart (operationAttributes , parentContext , request );
220220 }
221221 attributes = operationAttributes ;
@@ -272,11 +272,11 @@ private void doEnd(
272272 operationListeners = this .operationListeners ;
273273 }
274274 if (operationListeners .length != 0 ) {
275- if (operationAttributesExtractors .length != 0 ) {
275+ if (operationListenerAttributesExtractors .length != 0 ) {
276276 UnsafeAttributes operationAttributes = new UnsafeAttributes ();
277277 operationAttributes .putAll (attributes .asMap ());
278278 for (AttributesExtractor <? super REQUEST , ? super RESPONSE > extractor :
279- operationAttributesExtractors ) {
279+ operationListenerAttributesExtractors ) {
280280 extractor .onEnd (operationAttributes , context , request , response , error );
281281 }
282282 attributes = operationAttributes ;
0 commit comments