Same agent Smaller bill. The tools and infrastructure to get more work from your AI. Fewer tokens. Less compute. Lower cost.
TypeScript agent-harnessagent-harness-engineeringai-engineeringai-observabilityamd-gpuclaude-codeclickhousecodexcoding-agentcoding-agentscursorgenaigpu-monitoringllm-observabilityllmopsnvidia-smiobservabilityopen-sourceopenaiopentelemetry
package helpers
import (
"go.opentelemetry.io/otel/attribute"
"go.opentelemetry.io/otel/trace"
"github.com/openlit/openlit/sdk/go/semconv"
)
// EmitInferenceEvent records the GenAI client inference operation details event.
// Matches the Python/TS emitInferenceEvent behaviour.
func EmitInferenceEvent(span trace.Span, attrs []attribute.KeyValue) {
if span == nil {
return
}
span.AddEvent(semconv.GenAIClientInferenceOperationDetails, trace.WithAttributes(attrs...))
}