Documentation
¶
Index ¶
- func LogsToOtlp(l LogsWrapper) *otlpcollectorlog.ExportLogsServiceRequest
- func MetricsToOtlp(mw MetricsWrapper) *otlpcollectormetrics.ExportMetricsServiceRequest
- func TracesCompatibilityChanges(req *otlpcollectortrace.ExportTraceServiceRequest)
- func TracesToOtlp(mw TracesWrapper) *otlpcollectortrace.ExportTraceServiceRequest
- type LogsWrapper
- type MetricsWrapper
- type TracesWrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogsToOtlp ¶
func LogsToOtlp(l LogsWrapper) *otlpcollectorlog.ExportLogsServiceRequest
LogsToOtlp internal helper to convert LogsWrapper to protobuf representation.
func MetricsToOtlp ¶
func MetricsToOtlp(mw MetricsWrapper) *otlpcollectormetrics.ExportMetricsServiceRequest
MetricsToOtlp internal helper to convert MetricsWrapper to protobuf representation.
func TracesCompatibilityChanges ¶
func TracesCompatibilityChanges(req *otlpcollectortrace.ExportTraceServiceRequest)
TracesCompatibilityChanges performs backward compatibility conversion of Span Status code according to OTLP specification as we are a new receiver and sender (we are pushing data to the pipelines): See https://github.com/open-telemetry/opentelemetry-proto/blob/59c488bfb8fb6d0458ad6425758b70259ff4a2bd/opentelemetry/proto/trace/v1/trace.proto#L239 See https://github.com/open-telemetry/opentelemetry-proto/blob/59c488bfb8fb6d0458ad6425758b70259ff4a2bd/opentelemetry/proto/trace/v1/trace.proto#L253
func TracesToOtlp ¶
func TracesToOtlp(mw TracesWrapper) *otlpcollectortrace.ExportTraceServiceRequest
TracesToOtlp internal helper to convert TracesWrapper to protobuf representation.
Types ¶
type LogsWrapper ¶
type LogsWrapper struct {
// contains filtered or unexported fields
}
LogsWrapper is an intermediary struct that is declared in an internal package as a way to prevent certain functions of pdata.Logs data type to be callable by any code outside of this module.
func LogsFromOtlp ¶
func LogsFromOtlp(req *otlpcollectorlog.ExportLogsServiceRequest) LogsWrapper
LogsFromOtlp internal helper to convert protobuf representation to LogsWrapper.
type MetricsWrapper ¶
type MetricsWrapper struct {
// contains filtered or unexported fields
}
MetricsWrapper is an intermediary struct that is declared in an internal package as a way to prevent certain functions of pdata.Metrics data type to be callable by any code outside of this module.
func MetricsFromOtlp ¶
func MetricsFromOtlp(req *otlpcollectormetrics.ExportMetricsServiceRequest) MetricsWrapper
MetricsFromOtlp internal helper to convert protobuf representation to MetricsWrapper.
type TracesWrapper ¶
type TracesWrapper struct {
// contains filtered or unexported fields
}
TracesWrapper is an intermediary struct that is declared in an internal package as a way to prevent certain functions of pdata.Traces data type to be callable by any code outside of this module.
func TracesFromOtlp ¶
func TracesFromOtlp(req *otlpcollectortrace.ExportTraceServiceRequest) TracesWrapper
TracesFromOtlp internal helper to convert protobuf representation to TracesWrapper.