MCPcopy Create free account
hub / github.com/InferCore/InferCore / EmitTrace

Method EmitTrace

internal/telemetry/otlp_http_exporter.go:77–86  ·  view source on GitHub ↗
(trace types.TraceRecord)

Source from the content-addressed store, hash-verified

75}
76
77func (e *OTLPHTTPExporter) EmitTrace(trace types.TraceRecord) {
78 e.enqueue("traces", map[string]any{
79 "trace_id": trace.TraceID,
80 "span_id": trace.SpanID,
81 "name": trace.Name,
82 "start_unix": trace.StartUnix,
83 "end_unix": trace.EndUnix,
84 "labels": trace.Labels,
85 })
86}
87
88func (e *OTLPHTTPExporter) StatusSummary() map[string]any {
89 e.mu.Lock()

Callers

nothing calls this directly

Calls 1

enqueueMethod · 0.95

Tested by

no test coverage detected