Skip to content

Commit

Permalink
fix llm input params tagging
Browse files Browse the repository at this point in the history
  • Loading branch information
sabrenner committed Sep 20, 2024
1 parent 36c11bc commit 9dd6717
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ddtrace/contrib/internal/langchain/patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -1106,7 +1106,7 @@ def _on_span_start(span: Span):
for param, val in getattr(instance, "_identifying_params", {}).items():
if not isinstance(val, dict):
span.set_tag_str("langchain.request.%s.parameters.%s" % (llm_provider, param), str(val))
return
continue
for k, v in val.items():
span.set_tag_str("langchain.request.%s.parameters.%s.%s" % (llm_provider, param, k), str(v))

Expand Down

0 comments on commit 9dd6717

Please sign in to comment.