Documentation
¶
Index ¶
- Variables
- func CreateMetricsCloningFanOutConnector(mcs []consumer.MetricsConsumerBase) consumer.MetricsConsumerBase
- func CreateMetricsFanOutConnector(mcs []consumer.MetricsConsumerBase) consumer.MetricsConsumerBase
- func CreateTraceCloningFanOutConnector(tcs []consumer.TraceConsumerBase) consumer.TraceConsumerBase
- func CreateTraceFanOutConnector(tcs []consumer.TraceConsumerBase) consumer.TraceConsumerBase
- func MetricTagKeys(level telemetry.Level) []tag.Key
- func MetricViews(level telemetry.Level) []*view.View
- func NewLogCloningFanOutConnector(lcs []consumer.LogsConsumer) consumer.LogsConsumer
- func NewLogFanOutConnector(lcs []consumer.LogsConsumer) consumer.LogsConsumer
- func NewMetricsFanOutConnector(mcs []consumer.MetricsConsumer) consumer.MetricsConsumer
- func NewMetricsFanOutConnectorOld(mcs []consumer.MetricsConsumerOld) consumer.MetricsConsumerOld
- func NewTraceFanOutConnector(tcs []consumer.TraceConsumer) consumer.TraceConsumer
- func NewTraceFanOutConnectorOld(tcs []consumer.TraceConsumerOld) consumer.TraceConsumerOld
- func RecordsSpanCountMetrics(ctx context.Context, scm *SpanCountStats, measure *stats.Int64Measure)
- func ServiceNameForNode(node *commonpb.Node) string
- func ServiceNameForResource(resource pdata.Resource) string
- type LogCloningFanOutConnector
- type LogFanOutConnector
- 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 CreateMetricsCloningFanOutConnector ¶
func CreateMetricsCloningFanOutConnector(mcs []consumer.MetricsConsumerBase) consumer.MetricsConsumerBase
CreateMetricsCloningFanOutConnector is a placeholder function for now. It supposed to create an old type connector or a new type connector based on type of provided metrics consumer.
func CreateMetricsFanOutConnector ¶
func CreateMetricsFanOutConnector(mcs []consumer.MetricsConsumerBase) consumer.MetricsConsumerBase
CreateMetricsFanOutConnector creates a connector based on provided type of trace consumer. If any of the wrapped metrics consumers are of the new type, use metricsFanOutConnector, otherwise use the old type connector.
func CreateTraceCloningFanOutConnector ¶
func CreateTraceCloningFanOutConnector(tcs []consumer.TraceConsumerBase) consumer.TraceConsumerBase
CreateTraceCloningFanOutConnector is a placeholder function for now. It supposed to create an old type connector or a new type connector based on type of provided trace consumer.
func CreateTraceFanOutConnector ¶
func CreateTraceFanOutConnector(tcs []consumer.TraceConsumerBase) consumer.TraceConsumerBase
CreateTraceFanOutConnector wraps multiple trace consumers in a single one. If any of the wrapped trace consumers are of the new type, use traceFanOutConnector, otherwise use the old type connector
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 NewLogCloningFanOutConnector ¶
func NewLogCloningFanOutConnector(lcs []consumer.LogsConsumer) consumer.LogsConsumer
NewLogCloningFanOutConnector wraps multiple trace consumers in a single one.
func NewLogFanOutConnector ¶
func NewLogFanOutConnector(lcs []consumer.LogsConsumer) consumer.LogsConsumer
NewLogFanOutConnector wraps multiple new type consumers in a single one.
func NewMetricsFanOutConnector ¶
func NewMetricsFanOutConnector(mcs []consumer.MetricsConsumer) consumer.MetricsConsumer
NewMetricsFanOutConnector wraps multiple new type metrics consumers in a single one.
func NewMetricsFanOutConnectorOld ¶
func NewMetricsFanOutConnectorOld(mcs []consumer.MetricsConsumerOld) consumer.MetricsConsumerOld
NewMetricsFanOutConnectorOld wraps multiple metrics consumers in a single one.
func NewTraceFanOutConnector ¶
func NewTraceFanOutConnector(tcs []consumer.TraceConsumer) consumer.TraceConsumer
NewTraceFanOutConnector wraps multiple new type trace consumers in a single one.
func NewTraceFanOutConnectorOld ¶
func NewTraceFanOutConnectorOld(tcs []consumer.TraceConsumerOld) consumer.TraceConsumerOld
NewTraceFanOutConnectorOld 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.
func ServiceNameForNode ¶
ServiceNameForNode gets the service name for a specified node.
func ServiceNameForResource ¶
ServiceNameForResource gets the service name for a specified Resource. TODO: Find a better package for this function.
Types ¶
type LogCloningFanOutConnector ¶
type LogCloningFanOutConnector []consumer.LogsConsumer
func (LogCloningFanOutConnector) ConsumeLogs ¶
ConsumeLogs exports the span data to all consumers wrapped by the current one.
type LogFanOutConnector ¶
type LogFanOutConnector []consumer.LogsConsumer
func (LogFanOutConnector) ConsumeLogs ¶
Consume exports the span data to all consumers wrapped by the current one.
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. |
memorylimiterprocessor
module
|
|
processorhelperprofiles
Module
|
|
xprocessorhelper
Module
|
|
processorprofiles
module
|
|
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
|
|
tailsamplingprocessor/idbatcher
Package idbatcher defines a pipeline of fixed size in which the elements are batches of ids.
|
Package idbatcher defines a pipeline of fixed size in which the elements are batches of ids. |
tailsamplingprocessor/sampling
Package sampling contains the interfaces and data types used to implement the various sampling policies.
|
Package sampling contains the interfaces and data types used to implement the various sampling policies. |
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. |
xprocessor
module
|