Documentation ¶
Index ¶
- Variables
- func MetricTagKeys() []tag.Key
- func MetricViews() []*view.View
- func NewLogsCloningFanOutConnector(lcs []consumer.LogsConsumer) consumer.LogsConsumer
- func NewLogsFanOutConnector(lcs []consumer.LogsConsumer) consumer.LogsConsumer
- func NewMetricsCloningFanOutConnector(mcs []consumer.MetricsConsumer) consumer.MetricsConsumer
- func NewMetricsFanOutConnector(mcs []consumer.MetricsConsumer) consumer.MetricsConsumer
- func NewTracesCloningFanOutConnector(tcs []consumer.TracesConsumer) consumer.TracesConsumer
- func NewTracesFanOutConnector(tcs []consumer.TracesConsumer) consumer.TracesConsumer
- func RecordsSpanCountMetrics(ctx context.Context, scm *SpanCountStats, measure *stats.Int64Measure)
- type SpanCountStats
Constants ¶
This section is empty.
Variables ¶
var (
TagServiceNameKey, _ = tag.NewKey("service")
TagProcessorNameKey, _ = tag.NewKey(obsreport.ProcessorKey)
StatReceivedSpanCount = stats.Int64(
"spans_received",
"counts the number of spans received",
stats.UnitDimensionless)
StatDroppedSpanCount = stats.Int64(
"spans_dropped",
"counts the number of spans dropped",
stats.UnitDimensionless)
StatTraceBatchesDroppedCount = stats.Int64(
"trace_batches_dropped",
"counts the number of trace batches dropped",
stats.UnitDimensionless)
)
Keys and stats for telemetry.
Functions ¶
func MetricTagKeys ¶
MetricTagKeys returns the metric tag keys according to the given telemetry level.
func MetricViews ¶
MetricViews return the metrics views according to given telemetry level.
func NewLogsCloningFanOutConnector ¶
func NewLogsCloningFanOutConnector(lcs []consumer.LogsConsumer) consumer.LogsConsumer
NewLogsCloningFanOutConnector wraps multiple trace consumers in a single one.
func NewLogsFanOutConnector ¶
func NewLogsFanOutConnector(lcs []consumer.LogsConsumer) consumer.LogsConsumer
NewLogsFanOutConnector wraps multiple log consumers in a single one.
func NewMetricsCloningFanOutConnector ¶
func NewMetricsCloningFanOutConnector(mcs []consumer.MetricsConsumer) consumer.MetricsConsumer
NewMetricsCloningFanOutConnector wraps multiple metrics consumers in a single one and clones the data before fanning out.
func NewMetricsFanOutConnector ¶
func NewMetricsFanOutConnector(mcs []consumer.MetricsConsumer) consumer.MetricsConsumer
NewMetricsFanOutConnector wraps multiple metrics consumers in a single one.
func NewTracesCloningFanOutConnector ¶
func NewTracesCloningFanOutConnector(tcs []consumer.TracesConsumer) consumer.TracesConsumer
NewTracesCloningFanOutConnector wraps multiple traces consumers in a single one and clones the data before fanning out.
func NewTracesFanOutConnector ¶
func NewTracesFanOutConnector(tcs []consumer.TracesConsumer) consumer.TracesConsumer
NewTracesFanOutConnector wraps multiple trace consumers in a single one.
func RecordsSpanCountMetrics ¶
func RecordsSpanCountMetrics(ctx context.Context, scm *SpanCountStats, measure *stats.Int64Measure)
RecordsSpanCountMetrics reports span count metrics for specified measure.
Types ¶
type SpanCountStats ¶
type SpanCountStats struct {
// contains filtered or unexported fields
}
SpanCountStats represents span count stats grouped by service if DETAILED telemetry level is set, otherwise only overall span count is stored in serviceSpansCounts.
func NewSpanCountStats ¶
func NewSpanCountStats(td pdata.Traces) *SpanCountStats
func (*SpanCountStats) GetAllSpansCount ¶
func (scm *SpanCountStats) GetAllSpansCount() int
Directories ¶
Path | Synopsis |
---|---|
Package attributesprocessor contains the logic to modify attributes of a span.
|
Package attributesprocessor contains the logic to modify attributes of a span. |
Package filterprocessor implements a processor for filtering (dropping) metrics and/or spans by various properties.
|
Package filterprocessor implements a processor for filtering (dropping) metrics and/or spans by various properties. |
Package memorylimiter provides a processor for OpenTelemetry Service pipeline that drops data on the pipeline according to the current state of memory usage.
|
Package memorylimiter provides a processor for OpenTelemetry Service pipeline that drops data on the pipeline according to the current state of memory usage. |
internal/cgroups
Package cgroups provides utilities to access Linux control group (CGroups) parameters (total memory, for example) for a given process.
|
Package cgroups provides utilities to access Linux control group (CGroups) parameters (total memory, for example) for a given process. |
Package resourceprocessor implements a processor for specifying resource labels to be added to OpenCensus trace data and metrics data.
|
Package resourceprocessor implements a processor for specifying resource labels to be added to OpenCensus trace data and metrics data. |
samplingprocessor
|
|
Package spanprocessor contains logic to modify top level settings of a span, such as its name.
|
Package spanprocessor contains logic to modify top level settings of a span, such as its name. |