We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d7a6f7 commit 06efff3Copy full SHA for 06efff3
sentry_sdk/ai/monitoring.py
@@ -31,7 +31,12 @@ def wrapped(*args, **kwargs):
31
# type: (Any, Any) -> Any
32
curr_pipeline = _ai_pipeline_name.get()
33
op = span_kwargs.get("op", "ai.run" if curr_pipeline else "ai.pipeline")
34
+
35
with start_span(description=description, op=op, **span_kwargs) as span:
36
+ for k, v in kwargs.pop("sentry_tags", {}).items():
37
+ span.set_tag(k, v)
38
+ for k, v in kwargs.pop("sentry_data", {}).items():
39
+ span.set_data(k, v)
40
if curr_pipeline:
41
span.set_data("ai.pipeline.name", curr_pipeline)
42
return f(*args, **kwargs)
0 commit comments