apm-agent-go: github.com/elastic/apm-agent-go/module/apmgocql Index | Files

package apmgocql

import "github.com/elastic/apm-agent-go/module/apmgocql"

Package apmgocql provides an observer for tracing gocql (Cassandra) query spans.


Package Files

doc.go observer.go signature.go

type Observer Uses

type Observer struct {
    // contains filtered or unexported fields

Observer is a gocql.QueryObserver and gocql.BatchObserver, tracing operations and spans within a transaction.

func NewObserver Uses

func NewObserver(o ...Option) *Observer

NewObserver returns a new Observer which creates spans for observed gocql queries.

func (*Observer) ObserveBatch Uses

func (o *Observer) ObserveBatch(ctx context.Context, batch gocql.ObservedBatch)

ObserveBatch observes batch executions, and creates spans for the batch, and sub-spans for each statement therein.

func (*Observer) ObserveQuery Uses

func (o *Observer) ObserveQuery(ctx context.Context, query gocql.ObservedQuery)

ObserveQuery observes query results, and creates spans for them.

type Option Uses

type Option func(*options)

Option sets options for observers.

Package apmgocql imports 6 packages (graph). Updated 2020-08-07. Refresh now. Tools for package owners.