Class PeerSpanDecorator

  • All Implemented Interfaces:
    io.opentracing.contrib.spring.web.webfilter.WebFluxSpanDecorator

    @API(status=EXPERIMENTAL)
    public final class PeerSpanDecorator
    extends Object
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface io.opentracing.contrib.spring.web.webfilter.WebFluxSpanDecorator

        io.opentracing.contrib.spring.web.webfilter.WebFluxSpanDecorator.StandardTags, io.opentracing.contrib.spring.web.webfilter.WebFluxSpanDecorator.WebFluxTags
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static io.opentracing.tag.Tag<String> PEER_ADDRESS
      Remote "address", suitable for use in a networking client library.
    • Field Detail

      • PEER_ADDRESS

        @API(status=EXPERIMENTAL)
        public static final io.opentracing.tag.Tag<String> PEER_ADDRESS
        Remote "address", suitable for use in a networking client library. This may be a "ip:port", a bare "hostname", a FQDN, or even a JDBC substring like "mysql://prod-db:3306". Be aware that this will be removed as soon as Tags contains it.
        See Also:
        opentracing/opentracing-java#358
    • Constructor Detail

      • PeerSpanDecorator

        public PeerSpanDecorator()
    • Method Detail

      • onRequest

        public void onRequest​(org.springframework.web.server.ServerWebExchange exchange,
                              io.opentracing.Span span)
        Specified by:
        onRequest in interface io.opentracing.contrib.spring.web.webfilter.WebFluxSpanDecorator
      • onResponse

        public default void onResponse​(org.springframework.web.server.ServerWebExchange exchange,
                                       io.opentracing.Span span)
        Specified by:
        onResponse in interface io.opentracing.contrib.spring.web.webfilter.WebFluxSpanDecorator
      • onError

        public default void onError​(org.springframework.web.server.ServerWebExchange exchange,
                                    Throwable error,
                                    io.opentracing.Span span)
        Specified by:
        onError in interface io.opentracing.contrib.spring.web.webfilter.WebFluxSpanDecorator