genkit_otel 0.1.0
genkit_otel: ^0.1.0 copied to clipboard
OpenTelemetry GenAI semantic-conventions instrumentation for Genkit Dart (traces, metrics, and message-content capture).
0.1.0 #
- Initial release:
GenAiInstrumentation, an OpenTelemetry GenAI semantic-conventions provider for Genkit built ondartastic_opentelemetry. - Emits
gen_ai.*client spans for model operations, optionalexecute_toolspans, and generic spans for other Genkit action types. - Emits the GenAI client metrics
gen_ai.client.token.usageandgen_ai.client.operation.duration. - Optional message-content capture via
contentCapturingMode(noContent/spanOnly/eventOnly/spanAndEvent), mirroring the OTel GenAIContentCapturingMode. Off by default; when unset, the env varOTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENTis parsed using the spec's UPPER_SNAKE tokens.