Class DbClientSpanNameExtractor<REQUEST>
java.lang.Object
io.opentelemetry.instrumentation.api.instrumenter.db.DbClientSpanNameExtractor<REQUEST>
- All Implemented Interfaces:
io.opentelemetry.instrumentation.api.instrumenter.SpanNameExtractor<REQUEST>
public abstract class DbClientSpanNameExtractor<REQUEST>
extends Object
implements io.opentelemetry.instrumentation.api.instrumenter.SpanNameExtractor<REQUEST>
-
Method Summary
Modifier and TypeMethodDescriptionprotected StringcomputeSpanName(String dbName, String operation, String table) static <REQUEST> io.opentelemetry.instrumentation.api.instrumenter.SpanNameExtractor<REQUEST>create(DbClientAttributesGetter<REQUEST> getter) Returns aSpanNameExtractorthat constructs the span name according to DB semantic conventions:<db.operation> <db.name>.static <REQUEST> io.opentelemetry.instrumentation.api.instrumenter.SpanNameExtractor<REQUEST>create(SqlClientAttributesGetter<REQUEST> getter) Returns aSpanNameExtractorthat constructs the span name according to DB semantic conventions:<db.operation> <db.name>.<table>.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.opentelemetry.instrumentation.api.instrumenter.SpanNameExtractor
extract
-
Method Details
-
create
public static <REQUEST> io.opentelemetry.instrumentation.api.instrumenter.SpanNameExtractor<REQUEST> create(DbClientAttributesGetter<REQUEST> getter) Returns aSpanNameExtractorthat constructs the span name according to DB semantic conventions:<db.operation> <db.name>. -
create
public static <REQUEST> io.opentelemetry.instrumentation.api.instrumenter.SpanNameExtractor<REQUEST> create(SqlClientAttributesGetter<REQUEST> getter) Returns aSpanNameExtractorthat constructs the span name according to DB semantic conventions:<db.operation> <db.name>.<table>. -
computeSpanName
-