Versions in this module Expand all Collapse all v1 v1.41.0 Mar 3, 2026 Changes in this version + const ByteUnitName + const CPUStatPressureFullTotal + const CPUStatPressureSomeTotal + const CPUStatSystem + const CPUStatUsage + const CPUStatUser + const CachedAttr + const CanceledAttr + const CheckNameAttr + const CheckPassedAttr + const ContentTypeAttr + const DagCallAttr + const DagCallScopeAttr + const DagDigestAttr + const DagInputsAttr + const DagOutputAttr + const EffectIDAttr + const EffectIDsAttr + const EffectsCompletedAttr + const EngineIDAttr + const FilesyncWrittenBytes + const GeneratorNameAttr + const IOStatDiskReadBytes + const IOStatDiskWriteBytes + const IOStatPressureSomeTotal + const LLMInputTokens + const LLMInputTokensCacheReads + const LLMInputTokensCacheWrites + const LLMOutputTokens + const LLMRoleAssistant + const LLMRoleAttr + const LLMRoleUser + const LLMToolArgNamesAttr + const LLMToolArgValuesAttr + const LLMToolAttr + const LLMToolServerAttr + const LinkPurposeAttr + const LinkPurposeCause + const LinkPurposeErrorOrigin + const LogsGlobalAttr + const LogsVerboseAttr + const MemoryCurrentBytes + const MemoryPeakBytes + const MetricsSpanIDAttr + const MetricsTraceIDAttr + const MicrosecondUnitName + const ModuleCallerFunctionCallNameAttr + const ModuleCallerRefAttr + const ModuleCommitAttr + const ModuleFunctionCallNameAttr + const ModuleHTMLRepoURLAttr + const ModuleKindAttr + const ModuleRefAttr + const ModuleSubpathAttr + const ModuleVersionAttr + const NearlyImmediate + const NetstatRxBytes + const NetstatRxDropped + const NetstatRxPackets + const NetstatTxBytes + const NetstatTxDropped + const NetstatTxPackets + const ProgressCurrentAttr + const ProgressTotalAttr + const ProgressUnitsAttr + const StdioEOFAttr + const StdioStreamAttr + const UIActorEmojiAttr + const UIBoundaryAttr + const UIEncapsulateAttr + const UIEncapsulatedAttr + const UIInternalAttr + const UIMessageAttr + const UIMessageReceived + const UIMessageSent + const UIPassthroughAttr + const UIRevealAttr + const UIRollUpLogsAttr + const UIRollUpSpansAttr + var ErrorOriginRegex = regexp.MustCompile(`\s*\[traceparent:([0-9a-f]{32})-([0-9a-f]{16})\]`) + var LiveTracesEnabled = os.Getenv("OTEL_EXPORTER_OTLP_TRACES_LIVE") != "" + var LogProcessors = []sdklog.Processor + var MetricExporters = []sdkmetric.Exporter + var Propagator = propagation.NewCompositeTextMapPropagator(propagation.Baggage{}, propagation.TraceContext{}) + var Resource *resource.Resource + var SpanProcessors = []sdktrace.SpanProcessor + func ActorEmoji(emoji string) trace.SpanStartOption + func AttributesFromProto(attrs []*otlpcommonv1.KeyValue) []attribute.KeyValue + func Boundary() trace.SpanStartOption + func Close() + func ConfiguredLogExporter(ctx context.Context) (sdklog.Exporter, bool) + func ConfiguredMetricExporter(ctx context.Context) (sdkmetric.Exporter, bool) + func ConfiguredSpanExporter(ctx context.Context) (sdktrace.SpanExporter, bool) + func ContextWithGlobalLogsSpan(ctx context.Context) context.Context + func DataPointsToPB[N int64 | float64](dPts []metricdata.DataPoint[N]) []*otlpmetricsv1.NumberDataPoint + func Encapsulate() trace.SpanStartOption + func Encapsulated() trace.SpanStartOption + func End(span trace.Span, fn func() error) + func EndWithCause(span trace.Span, errPtr *error) + func ExemplarsToPB[N int64 | float64](exemplars []metricdata.Exemplar[N]) []*otlpmetricsv1.Exemplar + func ExponentialHistogramDataPointBucketsToPB(bucket metricdata.ExponentialBucket) *otlpmetricsv1.ExponentialHistogramDataPoint_Buckets + func ExponentialHistogramDataPointsToPB[N int64 | float64](dPts []metricdata.ExponentialHistogramDataPoint[N]) []*otlpmetricsv1.ExponentialHistogramDataPoint + func ExponentialHistogramToPB[N int64 | float64](h metricdata.ExponentialHistogram[N]) (*otlpmetricsv1.Metric_ExponentialHistogram, error) + func GaugeToPB[N int64 | float64](g metricdata.Gauge[N]) *otlpmetricsv1.Metric_Gauge + func GlobalLogsSpanContext(ctx context.Context) context.Context + func GlobalWriter(ctx context.Context, name string, attrs ...log.KeyValue) io.Writer + func HistogramDataPointsToPB[N int64 | float64](dPts []metricdata.HistogramDataPoint[N]) []*otlpmetricsv1.HistogramDataPoint + func HistogramToPB[N int64 | float64](h metricdata.Histogram[N]) (*otlpmetricsv1.Metric_Histogram, error) + func Init(ctx context.Context, cfg Config) context.Context + func InitEmbedded(ctx context.Context, res *resource.Resource) context.Context + func InstrumentationScopeFromPB(is *otlpcommonv1.InstrumentationScope) instrumentation.Scope + func InstrumentationScopeToPB(il instrumentation.Scope) *otlpcommonv1.InstrumentationScope + func Internal() trace.SpanStartOption + func KeyValues(attrs []attribute.KeyValue) []*otlpcommonv1.KeyValue + func LogKeyValuesFromPB(kvs []*otlpcommonv1.KeyValue) []log.KeyValue + func LogValueFromPB(v *otlpcommonv1.AnyValue) log.Value + func LogValueToPB(v log.Value) *otlpcommonv1.AnyValue + func Logger(ctx context.Context, name string) log.Logger + func LoggerProvider(ctx context.Context) *sdklog.LoggerProvider + func LogsToPB(sdl []sdklog.Record) []*otlplogsv1.ResourceLogs + func Meter(ctx context.Context, name string) metric.Meter + func MeterProvider(ctx context.Context) *sdkmetric.MeterProvider + func MetricsFromPB(pbMetrics []*otlpmetricsv1.Metric) ([]metricdata.Metrics, error) + func MetricsToPB(ms []metricdata.Metrics) ([]*otlpmetricsv1.Metric, error) + func NewWriter(ctx context.Context, name string, attrs ...log.KeyValue) io.Writer + func ParseErrorOrigins(errMsg string) []trace.SpanContext + func Passthrough() trace.SpanStartOption + func PropagationEnv(ctx context.Context) []string + func QuantileValuesToPB(quantiles []metricdata.QuantileValue) []*otlpmetricsv1.SummaryDataPoint_ValueAtQuantile + func ReexportLogsFromPB(ctx context.Context, exp sdklog.Exporter, ...) error + func ResourceFromPB(schemaURL string, pb *otlpresourcev1.Resource) *resource.Resource + func ResourceMetricsFromPB(pbResourceMetrics *otlpmetricsv1.ResourceMetrics) (*metricdata.ResourceMetrics, error) + func ResourceMetricsToPB(rm *metricdata.ResourceMetrics) (*otlpmetricsv1.ResourceMetrics, error) + func ResourcePtrToPB(r *resource.Resource) *otlpresourcev1.Resource + func ResourceToPB(r resource.Resource) *otlpresourcev1.Resource + func Resume(ctx context.Context) trace.SpanStartOption + func Reveal() trace.SpanStartOption + func ScopeMetricsFromPB(pbScopeMetrics []*otlpmetricsv1.ScopeMetrics) ([]metricdata.ScopeMetrics, error) + func ScopeMetricsToPB(sms []metricdata.ScopeMetrics) ([]*otlpmetricsv1.ScopeMetrics, error) + func SnapshotSpan(span sdktrace.ReadOnlySpan) sdktrace.ReadOnlySpan + func SpanEventsFromPB(es []*otlptracev1.Span_Event) []sdktrace.Event + func SpanEventsToPB(es []sdktrace.Event) []*otlptracev1.Span_Event + func SpanLinksFromPB(links []*otlptracev1.Span_Link) []sdktrace.Link + func SpanLinksToPB(links []sdktrace.Link) []*otlptracev1.Span_Link + func SpansFromPB(sdl []*otlptracev1.ResourceSpans) []sdktrace.ReadOnlySpan + func SpansToPB(sdl []sdktrace.ReadOnlySpan) []*otlptracev1.ResourceSpans + func StatusCodeFromPB(st *otlptracev1.Status) codes.Code + func SumToPB[N int64 | float64](s metricdata.Sum[N]) (*otlpmetricsv1.Metric_Sum, error) + func SummaryDataPointsToPB(dPts []metricdata.SummaryDataPoint) []*otlpmetricsv1.SummaryDataPoint + func SummaryToPB(s metricdata.Summary) *otlpmetricsv1.Metric_Summary + func TemporalityToPB(t metricdata.Temporality) (otlpmetricsv1.AggregationTemporality, error) + func Tracer(ctx context.Context, lib string) trace.Tracer + func WithLoggerProvider(ctx context.Context, provider *sdklog.LoggerProvider) context.Context + func WithMeterProvider(ctx context.Context, provider *sdkmetric.MeterProvider) context.Context + type AnyMapCarrier map[string]any + func (c AnyMapCarrier) Get(key string) string + func (c AnyMapCarrier) Keys() []string + func (c AnyMapCarrier) Set(key, value string) + type Config struct + BatchedTraceExporters []sdktrace.SpanExporter + Detect bool + LiveLogExporters []sdklog.Exporter + LiveMetricExporters []sdkmetric.Exporter + LiveTraceExporters []sdktrace.SpanExporter + Resource *resource.Resource + SpanProcessors []sdktrace.SpanProcessor + type EnvCarrier struct + Env []string + System bool + func NewEnvCarrier(system bool) *EnvCarrier + func (c *EnvCarrier) Get(key string) string + func (c *EnvCarrier) Keys() []string + func (c *EnvCarrier) Set(key, val string) + type ExtendedError interface + Extensions func() map[string]any + type FilterLiveSpansExporter struct + func (exp FilterLiveSpansExporter) ExportSpans(ctx context.Context, spans []sdktrace.ReadOnlySpan) error + type LiveSpanProcessor struct + func NewLiveSpanProcessor(exp sdktrace.SpanExporter) *LiveSpanProcessor + func (p *LiveSpanProcessor) OnStart(ctx context.Context, span sdktrace.ReadWriteSpan) + type LogForwarder struct + Processors []sdklog.Processor + func (m LogForwarder) Export(ctx context.Context, logs []sdklog.Record) error + func (m LogForwarder) ForceFlush(ctx context.Context) error + func (m LogForwarder) Shutdown(ctx context.Context) error + type OriginTrackedError struct + func TrackOrigin(err error, origin trace.SpanContext) OriginTrackedError + func (e OriginTrackedError) Error() string + func (e OriginTrackedError) Unwrap() error + type SpanForwarder struct + Processors []sdktrace.SpanProcessor + func (m SpanForwarder) ExportSpans(ctx context.Context, spans []sdktrace.ReadOnlySpan) error + func (m SpanForwarder) Shutdown(ctx context.Context) error + type SpanStreams struct + Stderr io.WriteCloser + Stdout io.WriteCloser + func SpanStdio(ctx context.Context, name string, attrs ...log.KeyValue) SpanStreams + func (sl SpanStreams) Close() error + type Writer struct + func (w *Writer) Emit(body log.Value, attrs ...log.KeyValue) + func (w *Writer) Write(p []byte) (int, error)