Documentation ¶
Index ¶
- func ClientAddr(val string) attribute.KeyValue
- func ClientMetric(val string) attribute.KeyValue
- func ClientNamespaceMetric(val string) attribute.KeyValue
- func ConnectionTypeMetric(val string) attribute.KeyValue
- func HTTPRequestBodySize(val int) attribute.KeyValue
- func HTTPRequestMethod(val string) attribute.KeyValue
- func HTTPResponseStatusCode(val int) attribute.KeyValue
- func HTTPUrlFull(val string) attribute.KeyValue
- func HTTPUrlPath(val string) attribute.KeyValue
- func ServerAddr(val string) attribute.KeyValue
- func ServerMetric(val string) attribute.KeyValue
- func ServerNamespaceMetric(val string) attribute.KeyValue
- func ServerPort(val int) attribute.KeyValue
- func ServiceMetric(val string) attribute.KeyValue
- func SourceMetric(val string) attribute.KeyValue
- func SpanHost(span *Span) string
- func SpanKindMetric(val string) attribute.KeyValue
- func SpanNameMetric(val string) attribute.KeyValue
- func SpanOTELGetters(name attr.Name) (attributes.Getter[*Span, attribute.KeyValue], bool)
- func SpanPeer(span *Span) string
- func SpanPromGetters(attrName attr.Name) (attributes.Getter[*Span, string], bool)
- func StatusCodeMetric(val int) attribute.KeyValue
- type EventType
- type IgnoreMode
- type PidInfo
- type Span
- type Timings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientAddr ¶ added in v1.6.0
func ClientMetric ¶ added in v1.6.0
func ClientNamespaceMetric ¶ added in v1.6.0
func ConnectionTypeMetric ¶ added in v1.6.0
func HTTPRequestBodySize ¶ added in v1.6.0
func HTTPRequestMethod ¶ added in v1.6.0
func HTTPResponseStatusCode ¶ added in v1.6.0
func HTTPUrlFull ¶ added in v1.6.0
func HTTPUrlPath ¶ added in v1.6.0
func ServerAddr ¶ added in v1.6.0
func ServerMetric ¶ added in v1.6.0
func ServerNamespaceMetric ¶ added in v1.6.0
func ServerPort ¶ added in v1.6.0
func ServiceMetric ¶ added in v1.6.0
func SourceMetric ¶ added in v1.6.0
func SpanKindMetric ¶ added in v1.6.0
func SpanNameMetric ¶ added in v1.6.0
func SpanOTELGetters ¶ added in v1.6.0
SpanOTELGetters returns the attributes.Getter function that returns the OTEL attribute.KeyValue of a given attribute name. nolint:cyclop
func SpanPromGetters ¶ added in v1.6.0
SpanPromGetters returns the attributes.Getter function that returns the Prometheus string value of a given attribute name. nolint:cyclop
func StatusCodeMetric ¶ added in v1.6.0
Types ¶
type IgnoreMode ¶ added in v0.3.2
type IgnoreMode uint8
const ( IgnoreMetrics IgnoreMode = iota + 1 IgnoreTraces )
type PidInfo ¶ added in v0.3.2
type PidInfo struct { // HostPID is the PID as seen by the host (root cgroup) HostPID uint32 // UserID is the PID as seen by the user space. // Might differ from HostPID if the process is in a different namespace/cgroup/container/etc. UserPID uint32 // Namespace for the PIDs Namespace uint32 }
PidInfo stores different views of the PID of the process that generated the span
type Span ¶
type Span struct { Type EventType IgnoreSpan IgnoreMode ID uint64 Method string Path string Route string Peer string Host string HostPort int Status int ContentLength int64 RequestStart int64 Start int64 End int64 ServiceID svc.ID // TODO: rename to Service or ResourceAttrs TraceID trace2.TraceID SpanID trace2.SpanID ParentSpanID trace2.SpanID Flags uint8 Pid PidInfo PeerName string HostName string OtherNamespace string Statement string }
Span contains the information being submitted by the following nodes in the graph. It enables comfortable handling of data from Go. REMINDER: any attribute here must be also added to the functions SpanOTELGetters, SpanPromGetters and getDefinitions in pkg/internal/export/metric/definitions.go
func (*Span) IsClientSpan ¶ added in v1.5.0
Click to show internal directories.
Click to hide internal directories.