Documentation ¶
Index ¶
- Constants
- Variables
- func GetContextFromRemote(ctx context.Context, tracer trace.Tracer, name, spanID, traceID string) (context.Context, trace.Span)
- func InitOTLPExporter(serviceName, serviceVersion string) func()
- func NewEventWriter(ctx context.Context, name string) io.Writer
- func ReportCriticalError(ctx context.Context, err error, attrs ...attribute.KeyValue)
- func ReportError(ctx context.Context, err error, attrs ...attribute.KeyValue)
- func ReportEvent(ctx context.Context, name string, attrs ...attribute.KeyValue)
- func SetAttributes(ctx context.Context, attrs ...attribute.KeyValue)
- type EventWriter
Constants ¶
View Source
const DebugID = "debug_id"
Variables ¶
View Source
var OTELTracingPrint = os.Getenv("OTEL_TRACING_PRINT") != "false"
Functions ¶
func GetContextFromRemote ¶
func InitOTLPExporter ¶
func InitOTLPExporter(serviceName, serviceVersion string) func()
InitOTLPExporter initializes an OTLP exporter, and configures the corresponding trace providers.
func ReportCriticalError ¶
Types ¶
type EventWriter ¶
type EventWriter struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.