Class PeerAddressSpanDecorator
- java.lang.Object
-
- org.zalando.opentracing.jdbc.span.PeerAddressSpanDecorator
-
- All Implemented Interfaces:
SpanDecorator
@API(status=EXPERIMENTAL) public final class PeerAddressSpanDecorator extends Object implements SpanDecorator
Sets thepeer.addressspan tag.- See Also:
- Standard Span Tags
-
-
Field Summary
Fields Modifier and Type Field Description static io.opentracing.tag.Tag<String>PEER_ADDRESSRemote "address", suitable for use in a networking client library.
-
Constructor Summary
Constructors Constructor Description PeerAddressSpanDecorator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonQuery(io.opentracing.Span span, Statement statement, List<String> queries)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.zalando.opentracing.jdbc.span.SpanDecorator
onError
-
-
-
-
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 asTagscontains it.- See Also:
- opentracing/opentracing-java#358
-
-
Method Detail
-
onQuery
public void onQuery(io.opentracing.Span span, Statement statement, List<String> queries) throws SQLException- Specified by:
onQueryin interfaceSpanDecorator- Throws:
SQLException
-
-