Skip to content

Commit 75fa6d3

Browse files
committed
add example inline to auto intr
1 parent 7f9d437 commit 75fa6d3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

content/en/llm_observability/instrumentation/auto_instrumentation.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,12 @@ The LangChain integration instruments the following methods:
109109

110110
**Note**: For best results, assign templates to variables with meaningful names, as auto-instrumentation uses these names to identify prompts.
111111

112+
```python
113+
# "translation_template" will be used to identify the template in Datadog
114+
translation_template = PromptTemplate.from_template("Translate {text} to {language}")
115+
chain = translation_template | llm
116+
```
117+
112118
## Amazon Bedrock
113119

114120
The Amazon Bedrock integration provides automatic tracing for the Amazon Bedrock Runtime Python SDK's chat model calls (using [Boto3][5]/[Botocore][6]).

0 commit comments

Comments
 (0)