Dynamic span name #4398
Answered
by
xrmx
cosmincatalin
asked this question in
Q&A
Dynamic span name
#4398
-
I have span that I initiate and work fine as class BatchTask:
table_name: str
...
@tracer.start_as_current_span("fetch_and_upsert_data")
def fetch_and_upsert_data(self, date: str, fetch_timeout_in_seconds: float = 0):
pass I'm wondering if it is possible to have the span name generated dynamically, for example to make use of |
Beta Was this translation helpful? Give feedback.
Answered by
xrmx
Jan 27, 2025
Replies: 1 comment
-
You can use |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
cosmincatalin
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use
span.update_name
or just compose the name using the params you need if they are static