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

package apmmongo

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

Package apmmongo provides a CommandMonitor implementation for tracing Mongo commands.

Index

Package Files

doc.go monitor.go

func CommandMonitor Uses

func CommandMonitor(opts ...Option) *event.CommandMonitor

CommandMonitor returns a new event.CommandMonitor which will report a span for each command executed within a context containing a sampled transaction.

type Option Uses

type Option func(*commandMonitor)

Option sets options for tracing MongoDB commands.

Package apmmongo imports 10 packages (graph). Updated 2020-07-29. Refresh now. Tools for package owners.