Skip to content

Commit

Permalink
Polish
Browse files Browse the repository at this point in the history
  • Loading branch information
marcingrzejszczak committed Jul 18, 2022
1 parent 0478643 commit 01a5249
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
* @author Marcin Grzejszczak
* @since 1.0.0
*/
public class PropagatingReceiverTracingObservationHandler<T extends ReceiverContext<T>> implements TracingObservationHandler<T> {
@SuppressWarnings({"rawtypes", "unchecked"})
public class PropagatingReceiverTracingObservationHandler<T extends ReceiverContext> implements TracingObservationHandler<T> {

private final Tracer tracer;

Expand Down Expand Up @@ -56,6 +57,7 @@ public void onStart(T context) {

/**
* Customizes the extracted span (e.g. you can set the {@link Span.Kind} via {@link Span.Builder#kind(Span.Kind)}).
*
* @param builder span builder
* @return span builder
*/
Expand All @@ -78,8 +80,9 @@ public void onStop(T context) {

/**
* Allows to customize the receiver span before reporting it.
*
* @param context context
* @param span span to customize
* @param span span to customize
*/
public void customizeReceiverSpan(T context, Span span) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
* @author Marcin Grzejszczak
* @since 1.0.0
*/
public class PropagatingSenderTracingObservationHandler<T extends SenderContext<T>> implements TracingObservationHandler<T> {
@SuppressWarnings({"rawtypes", "unchecked"})
public class PropagatingSenderTracingObservationHandler<T extends SenderContext> implements TracingObservationHandler<T> {
private final Tracer tracer;

private final Propagator propagator;
Expand Down

0 comments on commit 01a5249

Please sign in to comment.