test_class.file: stagemonitor-tracing/src/test/java/org/stagemonitor/tracing/sampling/SamplePriorityDeterminingSpanEventListenerTest.java
test_class.identifier: SamplePriorityDeterminingSpanEventListenerTest
test_class.superclass: extends AbstractRequestMonitorTest
test_case.body: @Test
  	public void testSetSamplePrioInPreInterceptor() throws Exception {
  		when(tracingPlugin.isSampled(any())).thenReturn(true);
  		samplePriorityDeterminingSpanInterceptor.addPreInterceptor(new PreExecutionSpanInterceptor() {
  			@Override
  			public void interceptReport(PreExecutionInterceptorContext context) {
  				context.shouldNotReport(getClass());
  			}
  		});
  
  		requestMonitor.monitor(new MonitoredMethodRequest(configuration,
  				"testSetSamplePrioInPreInterceptor", () -> {
  		}));
  		assertThat(mockTracer.finishedSpans()).hasSize(1);
  		assertThat(mockTracer.finishedSpans().get(0).tags()).containsEntry(Tags.SAMPLING_PRIORITY.getKey(), 0);
  	}
test_case.class_method_signature: SamplePriorityDeterminingSpanEventListenerTest.testSetSamplePrioInPreInterceptor()
test_case.full_signature: @Test public void testSetSamplePrioInPreInterceptor()
test_case.identifier: testSetSamplePrioInPreInterceptor
test_case.invocations: thenReturn when isSampled any addPreInterceptor shouldNotReport getClass monitor hasSize assertThat finishedSpans containsEntry assertThat tags get finishedSpans getKey
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testSetSamplePrioInPreInterceptor()
focal_class.declarator: logger = LoggerFactory.getLogger(SamplePriorityDeterminingSpanEventListener.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger logger = LoggerFactory.getLogger(SamplePriorityDeterminingSpanEventListener.class);
focal_class.type: Logger
focal_class.var_name: logger
focal_class.declarator: preInterceptors =
  			new CopyOnWriteArrayList<PreExecutionSpanInterceptor>()
focal_class.modifier: private final
focal_class.original_string: private final Collection<PreExecutionSpanInterceptor> preInterceptors =
  			new CopyOnWriteArrayList<PreExecutionSpanInterceptor>();
focal_class.type: Collection<PreExecutionSpanInterceptor>
focal_class.var_name: preInterceptors
focal_class.declarator: postInterceptors =
  			new CopyOnWriteArrayList<PostExecutionSpanInterceptor>()
focal_class.modifier: private final
focal_class.original_string: private final Collection<PostExecutionSpanInterceptor> postInterceptors =
  			new CopyOnWriteArrayList<PostExecutionSpanInterceptor>();
focal_class.type: Collection<PostExecutionSpanInterceptor>
focal_class.var_name: postInterceptors
focal_class.declarator: configuration
focal_class.modifier: private final
focal_class.original_string: private final ConfigurationRegistry configuration;
focal_class.type: ConfigurationRegistry
focal_class.var_name: configuration
focal_class.declarator: tracingPlugin
focal_class.modifier: private final
focal_class.original_string: private final TracingPlugin tracingPlugin;
focal_class.type: TracingPlugin
focal_class.var_name: tracingPlugin
focal_class.file: stagemonitor-tracing/src/main/java/org/stagemonitor/tracing/sampling/SamplePriorityDeterminingSpanEventListener.java
focal_class.identifier: SamplePriorityDeterminingSpanEventListener
focal_class.class_method_signature: SamplePriorityDeterminingSpanEventListener.SamplePriorityDeterminingSpanEventListener(ConfigurationRegistry configuration)
focal_class.full_signature: public  SamplePriorityDeterminingSpanEventListener(ConfigurationRegistry configuration)
focal_class.identifier: SamplePriorityDeterminingSpanEventListener
focal_class.modifiers: public
focal_class.parameters: (ConfigurationRegistry configuration)
focal_class.signature:  SamplePriorityDeterminingSpanEventListener(ConfigurationRegistry configuration)
focal_class.class_method_signature: SamplePriorityDeterminingSpanEventListener.SamplePriorityDeterminingSpanEventListener(ConfigurationRegistry configuration, Iterable<PreExecutionSpanInterceptor> preExecutionSpanInterceptors, Iterable<PostExecutionSpanInterceptor> postExecutionSpanInterceptors)
focal_class.full_signature: public  SamplePriorityDeterminingSpanEventListener(ConfigurationRegistry configuration, Iterable<PreExecutionSpanInterceptor> preExecutionSpanInterceptors, Iterable<PostExecutionSpanInterceptor> postExecutionSpanInterceptors)
focal_class.identifier: SamplePriorityDeterminingSpanEventListener
focal_class.modifiers: public
focal_class.parameters: (ConfigurationRegistry configuration, Iterable<PreExecutionSpanInterceptor> preExecutionSpanInterceptors, Iterable<PostExecutionSpanInterceptor> postExecutionSpanInterceptors)
focal_class.signature:  SamplePriorityDeterminingSpanEventListener(ConfigurationRegistry configuration, Iterable<PreExecutionSpanInterceptor> preExecutionSpanInterceptors, Iterable<PostExecutionSpanInterceptor> postExecutionSpanInterceptors)
focal_class.class_method_signature: SamplePriorityDeterminingSpanEventListener.registerPreInterceptors(Iterable<PreExecutionSpanInterceptor> preExecutionSpanInterceptors)
focal_class.full_signature: private void registerPreInterceptors(Iterable<PreExecutionSpanInterceptor> preExecutionSpanInterceptors)
focal_class.identifier: registerPreInterceptors
focal_class.modifiers: private
focal_class.parameters: (Iterable<PreExecutionSpanInterceptor> preExecutionSpanInterceptors)
focal_class.return: void
focal_class.signature: void registerPreInterceptors(Iterable<PreExecutionSpanInterceptor> preExecutionSpanInterceptors)
focal_class.class_method_signature: SamplePriorityDeterminingSpanEventListener.registerPostInterceptors(Iterable<PostExecutionSpanInterceptor> postExecutionSpanInterceptors)
focal_class.full_signature: private void registerPostInterceptors(Iterable<PostExecutionSpanInterceptor> postExecutionSpanInterceptors)
focal_class.identifier: registerPostInterceptors
focal_class.modifiers: private
focal_class.parameters: (Iterable<PostExecutionSpanInterceptor> postExecutionSpanInterceptors)
focal_class.return: void
focal_class.signature: void registerPostInterceptors(Iterable<PostExecutionSpanInterceptor> postExecutionSpanInterceptors)
focal_class.class_method_signature: SamplePriorityDeterminingSpanEventListener.onStart(SpanWrapper spanWrapper)
focal_class.full_signature: @Override public void onStart(SpanWrapper spanWrapper)
focal_class.identifier: onStart
focal_class.modifiers: @Override public
focal_class.parameters: (SpanWrapper spanWrapper)
focal_class.return: void
focal_class.signature: void onStart(SpanWrapper spanWrapper)
focal_class.class_method_signature: SamplePriorityDeterminingSpanEventListener.onFinish(SpanWrapper spanWrapper, String operationName, long durationNanos)
focal_class.full_signature: @Override public void onFinish(SpanWrapper spanWrapper, String operationName, long durationNanos)
focal_class.identifier: onFinish
focal_class.modifiers: @Override public
focal_class.parameters: (SpanWrapper spanWrapper, String operationName, long durationNanos)
focal_class.return: void
focal_class.signature: void onFinish(SpanWrapper spanWrapper, String operationName, long durationNanos)
focal_class.class_method_signature: SamplePriorityDeterminingSpanEventListener.addPreInterceptor(PreExecutionSpanInterceptor interceptor)
focal_class.full_signature: public void addPreInterceptor(PreExecutionSpanInterceptor interceptor)
focal_class.identifier: addPreInterceptor
focal_class.modifiers: public
focal_class.parameters: (PreExecutionSpanInterceptor interceptor)
focal_class.return: void
focal_class.signature: void addPreInterceptor(PreExecutionSpanInterceptor interceptor)
focal_class.class_method_signature: SamplePriorityDeterminingSpanEventListener.addPostInterceptor(PostExecutionSpanInterceptor interceptor)
focal_class.full_signature: public void addPostInterceptor(PostExecutionSpanInterceptor interceptor)
focal_class.identifier: addPostInterceptor
focal_class.modifiers: public
focal_class.parameters: (PostExecutionSpanInterceptor interceptor)
focal_class.return: void
focal_class.signature: void addPostInterceptor(PostExecutionSpanInterceptor interceptor)
focal_class.superclass: extends StatelessSpanEventListener
focal_method.body: public void addPreInterceptor(PreExecutionSpanInterceptor interceptor) {
  		interceptor.init(configuration);
  		preInterceptors.add(interceptor);
  	}
focal_method.class_method_signature: SamplePriorityDeterminingSpanEventListener.addPreInterceptor(PreExecutionSpanInterceptor interceptor)
focal_method.full_signature: public void addPreInterceptor(PreExecutionSpanInterceptor interceptor)
focal_method.identifier: addPreInterceptor
focal_method.invocations: init add
focal_method.modifiers: public
focal_method.parameters: (PreExecutionSpanInterceptor interceptor)
focal_method.return: void
focal_method.signature: void addPreInterceptor(PreExecutionSpanInterceptor interceptor)