apmgocql

package
v0.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Observer

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

func NewObserver(o ...Option) *Observer

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

func (*Observer) ObserveBatch

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

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

ObserveQuery observes query results, and creates spans for them.

type Option

type Option func(*options)

Option sets options for observers.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL