Documentation ¶
Index ¶
Constants ¶
View Source
const ( // gRPC Instrumentation Name GRPCInstrumentation = "go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc" // http Instrumentation Name HTTPInstrumentation = "go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp" )
Variables ¶
View Source
var ( // GRPCUnacceptableKeyValues is a list of high cardinality grpc attributes that should be filtered out. GRPCUnacceptableKeyValues = []attribute.KeyValue{ attribute.String(semconv.AttributeNetSockPeerAddr, ""), attribute.String(semconv.AttributeNetSockPeerPort, ""), attribute.String(semconv.AttributeNetSockPeerName, ""), } // HTTPUnacceptableKeyValues is a list of high cardinality http attributes that should be filtered out. HTTPUnacceptableKeyValues = []attribute.KeyValue{ attribute.String(semconv.AttributeNetHostName, ""), attribute.String(semconv.AttributeNetHostPort, ""), } )
Functions ¶
func InitOpenTelemetry ¶
func RegisterProcessMetrics ¶
func RegisterProcessMetrics(ocRegistry *metric.Registry, mp otelmetric.MeterProvider, useOtel bool, ballastSizeBytes uint64) error
RegisterProcessMetrics creates a new set of processMetrics (mem, cpu) that can be used to measure basic information about this process.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.