Configuration for the LangChain OpenTelemetry integration.
Options
:capture_input_messages- Whentrue, recordsgen_ai.input.messagesas a span attribute containing the serialized input messages. Defaults tofalse.:capture_output_messages- Whentrue, recordsgen_ai.output.messagesas a span attribute containing the serialized output messages. Defaults tofalse.:capture_tool_arguments- Whentrue, recordsgen_ai.tool.call.argumentsas a span attribute. Defaults tofalse.:capture_tool_results- Whentrue, recordsgen_ai.tool.call.resultas a span attribute. Defaults tofalse.:enable_metrics- Whentrue, attaches the metrics handler, which re-emits LangChain telemetry as intermediary[:langchain, :otel, …]metric events for a consumer (Telemetry.Metrics, PromEx, …) to record. It does not record OTel histograms directly. Defaults totrue. SeeLangChain.OpenTelemetry.MetricsHandler.
Summary
Functions
Creates a new config from the given options.