Documentation
¶
Index ¶
- func InstrumentationScopeToTags(instrumentationScope pcommon.InstrumentationScope, tags map[string]string) map[string]string
- func ResourceToTags(resource pcommon.Resource, tags map[string]string) map[string]string
- type InfluxWriter
- type InfluxWriterBatch
- type NoopInfluxWriter
- type OtelLogsToLineProtocol
- type OtelLogsToLineProtocolConfig
- type OtelMetricsToLineProtocol
- type OtelMetricsToLineProtocolConfig
- type OtelTracesToLineProtocol
- type OtelTracesToLineProtocolConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InstrumentationScopeToTags ¶ added in v0.3.0
Types ¶
type InfluxWriter ¶
type InfluxWriter interface {
NewBatch() InfluxWriterBatch
}
type InfluxWriterBatch ¶ added in v0.3.0
type NoopInfluxWriter ¶ added in v0.5.0
type NoopInfluxWriter struct{}
func (*NoopInfluxWriter) EnqueuePoint ¶ added in v0.5.0
func (*NoopInfluxWriter) NewBatch ¶ added in v0.5.0
func (w *NoopInfluxWriter) NewBatch() InfluxWriterBatch
func (*NoopInfluxWriter) WriteBatch ¶ added in v0.5.0
func (w *NoopInfluxWriter) WriteBatch(ctx context.Context) error
type OtelLogsToLineProtocol ¶
type OtelLogsToLineProtocol struct {
// contains filtered or unexported fields
}
func NewOtelLogsToLineProtocol ¶
func NewOtelLogsToLineProtocol(config *OtelLogsToLineProtocolConfig) (*OtelLogsToLineProtocol, error)
type OtelLogsToLineProtocolConfig ¶ added in v0.5.0
type OtelLogsToLineProtocolConfig struct { Logger common.Logger Writer InfluxWriter // LogRecordDimensions are log record attributes to be used as line protocol tags. // These are always included as tags, if available: // - trace ID // - span ID // The default values: // - service.name // Other common attributes can be found here: // - https://github.com/open-telemetry/opentelemetry-collector/tree/main/semconv // When using InfluxDB for both logs and traces, be certain that LogRecordDimensions // matches the tracing SpanDimensions value. LogRecordDimensions []string }
func DefaultOtelLogsToLineProtocolConfig ¶ added in v0.5.0
func DefaultOtelLogsToLineProtocolConfig() *OtelLogsToLineProtocolConfig
type OtelMetricsToLineProtocol ¶
type OtelMetricsToLineProtocol struct {
// contains filtered or unexported fields
}
func NewOtelMetricsToLineProtocol ¶
func NewOtelMetricsToLineProtocol(config *OtelMetricsToLineProtocolConfig) (*OtelMetricsToLineProtocol, error)
func (*OtelMetricsToLineProtocol) WriteMetrics ¶
type OtelMetricsToLineProtocolConfig ¶ added in v0.5.0
type OtelMetricsToLineProtocolConfig struct { Logger common.Logger Writer InfluxWriter Schema common.MetricsSchema }
func DefaultOtelMetricsToLineProtocolConfig ¶ added in v0.5.0
func DefaultOtelMetricsToLineProtocolConfig() *OtelMetricsToLineProtocolConfig
type OtelTracesToLineProtocol ¶
type OtelTracesToLineProtocol struct {
// contains filtered or unexported fields
}
func NewOtelTracesToLineProtocol ¶
func NewOtelTracesToLineProtocol(config *OtelTracesToLineProtocolConfig) (*OtelTracesToLineProtocol, error)
func (*OtelTracesToLineProtocol) WriteTraces ¶
type OtelTracesToLineProtocolConfig ¶ added in v0.5.0
type OtelTracesToLineProtocolConfig struct { Logger common.Logger Writer InfluxWriter // SpanDimensions are span attributes to be used as line protocol tags. // These are always included as tags: // - trace ID // - span ID // The default values are strongly recommended for use with Jaeger: // - service.name // - span.name // Other common attributes can be found here: // - https://github.com/open-telemetry/opentelemetry-collector/tree/main/semconv SpanDimensions []string }
func DefaultOtelTracesToLineProtocolConfig ¶ added in v0.5.0
func DefaultOtelTracesToLineProtocolConfig() *OtelTracesToLineProtocolConfig
Click to show internal directories.
Click to hide internal directories.