Skip to content

Commit 6e42cbc

Browse files
authored
Merge pull request #1921 from quarkiverse/#1920
Add tracing configuration about tool invocation
2 parents 63d644a + a88989a commit 6e42cbc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/modules/ROOT/pages/observability.adoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ In the trace above we can see the parent span which corresponds to the handling
111111
interesting thing is the `langchain4j.aiservices.MyAiService.writeAPoem` span which corresponds to the invocation of the AI service.
112112
The child spans of this span correspond (from to right) to calling the OpenAI API, invoking the `sendEmail` tool and finally invoking calling the OpenAI API again.
113113

114-
==== Custom span data
114+
=== Custom span data
115115
if you have the need for custom span data, you can simply add a bean implemtenting `ChatModelSpanContributor`.
116116
[source,java]
117117
----
@@ -173,6 +173,8 @@ In order to enable events for the prompt and response content you need to activa
173173
----
174174
quarkus.langchain4j.tracing.include-prompt=true
175175
quarkus.langchain4j.tracing.include-completion=true
176+
quarkus.langchain4j.tracing.include-tool-arguments=true
177+
quarkus.langchain4j.tracing.include-tool-result=true
176178
----
177179

178180
==== Step 2: Configure Langfuse

0 commit comments

Comments
 (0)