Categorygo.elastic.co/apm/module/apmelasticsearch/v2
modulepackage
2.6.3
Repository: https://github.com/elastic/apm-agent-go.git
Documentation: pkg.go.dev

# Functions

DefaultClusterName returns the default ClusterNameFunc implementation used by WrapRoundTripper, if WithClusterName is not specified.
WithClusterName returns a ClientOption which sets f as the function to use to obtain the Elasticsearch cluster name for recording on spans.
WrapRoundTripper returns an http.RoundTripper wrapping r, reporting each request as a span to Elastic APM, if the request's context contains a sampled transaction.

# Type aliases

ClientOption sets options for tracing client requests.
ClusterNameFunc is a function for fetching the Elasticsearch cluster name for an HTTP request.