package
0.0.0-20241031195213-73dd35e0a5ad
Repository: https://github.com/elastic/apm-tools.git
Documentation: pkg.go.dev
# Functions
No description provided by the author
NewRandomTraceID returns randomly generated apm.TraceID which is also compatible with otel's trace.TraceID.
SendDistributedTrace sends events generated by both APM Go Agent and OTEL library and link them with the same traceID so that they are linked and can be shown in the same trace view.
SendIntakeV2Trace generate a trace including a transaction, a span and an error.
SendOTLPTrace sends spans, error and logs to the configured APM Server If distributed tracing is needed, you might want to set up the propagator using SetOTLPTracePropagator function before calling this function.
No description provided by the author
WithAPIKey sets auth apiKey to communicate with APM Server.
WithAPMServerURL set APM Server URL (env value ELASTIC_APM_SERVER_URL).
WithElasticAPMServiceName specifies the service name that the Elastic APM agent will use.
WithInsecureConn skip the server's TLS certificate verification.
WithOTLPProtocol specifies OTLP transport protocol to one of: grpc (default), http/protobuf.
WithOTLPServiceName specifies the service name that the OpenTelemetry SDK will use.
WithSampleRate specifies the sample rate for the APM GO Agent.
WithTraceID specifies the user defined traceID.
# Type aliases
No description provided by the author