Python · Instrumentation
openinference-instrumentation-autogen
Deprecated compatibility package for OpenInference AG2 instrumentation
- Module
openinference.instrumentation.autogen- Version
- 0.1.16
- Python
- >=3.10, <3.16
- Instruments
autogen>=0.5.0,<1.0.0
Install
pip install openinference-instrumentation-autogenopeninference.instrumentation.autogen
Deprecated compatibility layer over the AG2 instrumentation.
AutogenInstrumentor
classSource ↗class AutogenInstrumentor()Compatibility facade for the legacy autogen distribution.
Attributes
| Name | Type and value |
|---|---|
is_instrumented_by_opentelemetry | bool |
instrument
methodSource ↗def instrument(**kwargs: Any = {}) -> AutogenInstrumentoruninstrument
methodSource ↗def uninstrument(**kwargs: Any = {}) -> AutogenInstrumentorSpanAttributes
classSource ↗class SpanAttributesDeprecated: legacy attribute keys kept for backward compatibility.
Attributes
| Name | Type and value |
|---|---|
OPENINFERENCE_SPAN_KIND | str = 'openinference.span.kind' |
INPUT_VALUE | str = 'input.value' |
INPUT_MIME_TYPE | str = 'input.mime_type' |
OUTPUT_VALUE | str = 'output.value' |
OUTPUT_MIME_TYPE | str = 'output.mime_type' |
TOOL_NAME | str = 'tool.name' |
TOOL_ARGS | str = 'tool.args' |
TOOL_KWARGS | str = 'tool.kwargs' |
TOOL_PARAMETERS | str = 'tool.parameters' |
TOOL_CALL_FUNCTION_ARGUMENTS | str = 'tool_call.function.arguments' |
TOOL_CALL_FUNCTION_NAME | str = 'tool_call.function.name' |