类 TraceRestTemplateSpanDecorator

java.lang.Object
tech.mhuang.pacebox.springboot.autoconfiguration.trace.rest.TraceRestTemplateSpanDecorator
所有已实现的接口:
io.opentracing.contrib.spring.web.client.RestTemplateSpanDecorator

public class TraceRestTemplateSpanDecorator extends Object implements io.opentracing.contrib.spring.web.client.RestTemplateSpanDecorator
restTemplate span埋点
从以下版本开始:
1.0.0
作者:
mhuang
  • 嵌套类概要

    从接口继承的嵌套类/接口 io.opentracing.contrib.spring.web.client.RestTemplateSpanDecorator

    io.opentracing.contrib.spring.web.client.RestTemplateSpanDecorator.StandardTags
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    static final String
     
  • 构造器概要

    构造器
    构造器
    说明
     
  • 方法概要

    修饰符和类型
    方法
    说明
    void
    onError(org.springframework.http.HttpRequest httpRequest, Throwable ex, io.opentracing.Span span)
     
    void
    onRequest(org.springframework.http.HttpRequest request, io.opentracing.Span span)
     
    void
    onResponse(org.springframework.http.HttpRequest httpRequest, org.springframework.http.client.ClientHttpResponse response, io.opentracing.Span span)
     

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 字段详细资料

  • 构造器详细资料

    • TraceRestTemplateSpanDecorator

      public TraceRestTemplateSpanDecorator()
  • 方法详细资料

    • onRequest

      public void onRequest(org.springframework.http.HttpRequest request, io.opentracing.Span span)
      指定者:
      onRequest 在接口中 io.opentracing.contrib.spring.web.client.RestTemplateSpanDecorator
    • onResponse

      public void onResponse(org.springframework.http.HttpRequest httpRequest, org.springframework.http.client.ClientHttpResponse response, io.opentracing.Span span)
      指定者:
      onResponse 在接口中 io.opentracing.contrib.spring.web.client.RestTemplateSpanDecorator
    • onError

      public void onError(org.springframework.http.HttpRequest httpRequest, Throwable ex, io.opentracing.Span span)
      指定者:
      onError 在接口中 io.opentracing.contrib.spring.web.client.RestTemplateSpanDecorator