Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Accept ¶ added in v0.6.0
func Accept(traces ptrace.Traces, v TraceVisitor)
Accept method is called to start the iteration process
func NewFactory ¶ added in v0.8.0
NewFactory returns a factory for Azure Monitor exporter.
Types ¶
type Config ¶
type Config struct { Endpoint string `mapstructure:"endpoint"` InstrumentationKey configopaque.String `mapstructure:"instrumentation_key"` MaxBatchSize int `mapstructure:"maxbatchsize"` MaxBatchInterval time.Duration `mapstructure:"maxbatchinterval"` SpanEventsEnabled bool `mapstructure:"spaneventsenabled"` }
Config defines configuration for Azure Monitor
type DatabaseAttributes ¶ added in v0.6.0
type DatabaseAttributes struct { DBSystem string DBConnectionString string DBUser string DBName string DBStatement string DBOperation string DBMSSQLInstanceName string DBJDBCDriverClassName string DBCassandraKeyspace string DBHBaseNamespace string DBRedisDatabaseIndex string DBMongoDBCollection string NetworkAttributes NetworkAttributes }
DatabaseAttributes is the set of known attributes for Database Spans
func (*DatabaseAttributes) MapAttribute ¶ added in v0.6.0
func (attrs *DatabaseAttributes) MapAttribute(k string, v pcommon.Value) bool
MapAttribute attempts to map a Span attribute to one of the known types
type ExceptionAttributes ¶ added in v0.65.0
type ExceptionAttributes struct { ExceptionEscaped string ExceptionMessage string ExceptionStackTrace string ExceptionType string }
ExceptionAttributes is the set of known attributes for Exception events
func (*ExceptionAttributes) MapAttribute ¶ added in v0.65.0
func (attrs *ExceptionAttributes) MapAttribute(k string, v pcommon.Value) bool
MapAttribute attempts to map a SpanEvent attribute to one of the known types
type HTTPAttributes ¶ added in v0.6.0
type HTTPAttributes struct { // common attributes // https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/semantic_conventions/http.md#common-attributes HTTPMethod string HTTPURL string HTTPTarget string HTTPHost string HTTPScheme string HTTPStatusCode int64 HTTPStatusText string HTTPFlavor string HTTPUserAgent string HTTPRequestContentLength int64 HTTPRequestContentLengthUncompressed int64 HTTPResponseContentLength int64 HTTPResponseContentLengthUncompressed int64 // Server Span specific // https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/semantic_conventions/http.md#http-server-semantic-conventions HTTPRoute string HTTPServerName string HTTPClientIP string // any net.* NetworkAttributes NetworkAttributes }
HTTPAttributes is the set of known attributes for HTTP Spans
func (*HTTPAttributes) MapAttribute ¶ added in v0.6.0
func (attrs *HTTPAttributes) MapAttribute(k string, v pcommon.Value) bool
MapAttribute attempts to map a Span attribute to one of the known types
type MessagingAttributes ¶ added in v0.6.0
type MessagingAttributes struct { MessagingSystem string MessagingDestination string MessagingDestinationKind string MessagingTempDestination string MessagingProtocol string MessagingProtocolVersion string MessagingURL string MessagingMessageID string MessagingConversationID string MessagingMessagePayloadSize int64 MessagingMessagePayloadCompressedSize int64 MessagingOperation string NetworkAttributes NetworkAttributes }
MessagingAttributes is the set of known attributes for Messaging Spans
func (*MessagingAttributes) MapAttribute ¶ added in v0.6.0
func (attrs *MessagingAttributes) MapAttribute(k string, v pcommon.Value) bool
MapAttribute attempts to map a Span attribute to one of the known types
type NetworkAttributes ¶ added in v0.6.0
type NetworkAttributes struct { // see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/semantic_conventions/span-general.md#general-network-connection-attributes NetTransport string NetPeerIP string NetPeerPort int64 NetPeerName string NetHostIP string NetHostPort int64 NetHostName string }
NetworkAttributes is the set of known network attributes
func (*NetworkAttributes) MapAttribute ¶ added in v0.6.0
func (attrs *NetworkAttributes) MapAttribute(k string, v pcommon.Value) bool
MapAttribute attempts to map a Span attribute to one of the known types
type RPCAttributes ¶ added in v0.6.0
type RPCAttributes struct { RPCSystem string RPCService string RPCMethod string RPCGRPCStatusCode int64 NetworkAttributes NetworkAttributes }
RPCAttributes is the set of known attributes for RPC Spans
func (*RPCAttributes) MapAttribute ¶ added in v0.6.0
func (attrs *RPCAttributes) MapAttribute(k string, v pcommon.Value) bool
MapAttribute attempts to map a Span attribute to one of the known types
type TraceVisitor ¶ added in v0.6.0
type TraceVisitor interface {
// contains filtered or unexported methods
}
TraceVisitor interface defines a iteration callback when walking through traces