Documentation
¶
Index ¶
- type DBSpanNameExtractor
- type DbClientAttrsExtractor
- func (d *DbClientAttrsExtractor[REQUEST, RESPONSE, GETTER]) GetSpanKey() attribute.Key
- func (d *DbClientAttrsExtractor[REQUEST, RESPONSE, GETTER]) OnEnd(attrs []attribute.KeyValue, context context.Context, request REQUEST, ...) []attribute.KeyValue
- func (d *DbClientAttrsExtractor[REQUEST, RESPONSE, GETTER]) OnStart(attrs []attribute.KeyValue, parentContext context.Context, request REQUEST) []attribute.KeyValue
- type DbClientAttrsGetter
- type DbClientCommonAttrsExtractor
- func (d *DbClientCommonAttrsExtractor[REQUEST, RESPONSE, GETTER]) GetSpanKey() attribute.Key
- func (d *DbClientCommonAttrsExtractor[REQUEST, RESPONSE, GETTER]) OnEnd(attrs []attribute.KeyValue, context context.Context, request REQUEST, ...) []attribute.KeyValue
- func (d *DbClientCommonAttrsExtractor[REQUEST, RESPONSE, GETTER]) OnStart(attributes []attribute.KeyValue, parentContext context.Context, ...) []attribute.KeyValue
- type DbClientCommonAttrsGetter
- type SqlClientAttributesGetter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBSpanNameExtractor ¶
type DBSpanNameExtractor[REQUEST any] struct { Getter DbClientAttrsGetter[REQUEST] }
func (*DBSpanNameExtractor[REQUEST]) Extract ¶
func (d *DBSpanNameExtractor[REQUEST]) Extract(request REQUEST) string
type DbClientAttrsExtractor ¶
type DbClientAttrsExtractor[REQUEST any, RESPONSE any, GETTER DbClientAttrsGetter[REQUEST]] struct { Base DbClientCommonAttrsExtractor[REQUEST, RESPONSE, GETTER] }
func (*DbClientAttrsExtractor[REQUEST, RESPONSE, GETTER]) GetSpanKey ¶
func (d *DbClientAttrsExtractor[REQUEST, RESPONSE, GETTER]) GetSpanKey() attribute.Key
type DbClientAttrsGetter ¶
type DbClientAttrsGetter[REQUEST any] interface { DbClientCommonAttrsGetter[REQUEST] GetStatement(REQUEST) string GetOperation(REQUEST) string }
type DbClientCommonAttrsExtractor ¶
type DbClientCommonAttrsExtractor[REQUEST any, RESPONSE any, GETTER DbClientCommonAttrsGetter[REQUEST]] struct { Getter GETTER }
func (*DbClientCommonAttrsExtractor[REQUEST, RESPONSE, GETTER]) GetSpanKey ¶
func (d *DbClientCommonAttrsExtractor[REQUEST, RESPONSE, GETTER]) GetSpanKey() attribute.Key
type SqlClientAttributesGetter ¶
type SqlClientAttributesGetter[REQUEST any] interface { DbClientCommonAttrsGetter[REQUEST] GetRawStatement(REQUEST) string }
Click to show internal directories.
Click to hide internal directories.