LangChain

LangChain is a framework designed for building applications that utilize large language models (LLMs). It provides a set of tools and components that make it easier to integrate LLMs into various applications, enabling developers to create complex workflows and functionalities.

With Dynatrace, you can get visibility into each step of the workflows monitoring prompt and completion messages, error tracking, performance metrics, and more.

trace-agentic-pipeline

Spans

The following attributes are available for GenAI Spans.

Attribute
Type
Description
gen_ai.completion.0.content
string
The full response received from the GenAI model.
gen_ai.completion.0.role
string
The role used by the GenAI model.
gen_ai.prompt.0.content
string
The full prompt sent to the GenAI model.
gen_ai.prompt.0.role
string
The role setting for the GenAI request.
gen_ai.request.model
string
The name of the GenAI model a request is being made to.
gen_ai.response.model
string
The name of the model that generated the response.

Metrics

Metric
Type
Unit
Description
http.client.duration
histogram
ms
The duration of the outbound HTTP request.