-
I'm looking into integrating stamina in a project that uses opentelemetry, where some functions are decorated with (a more elaborate version of) @tracer.start_as_current_span("name")
async def call_some_api(self, some_id):
... Is it as simple as just adding a
|
Beta Was this translation helpful? Give feedback.
Answered by
hynek
Jun 20, 2024
Replies: 1 comment 3 replies
-
It depends on what behavior you prefer: do you want a span started for every retry or should one span cover all retries? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I’m the wrong person to ask about OTEL best practices, but I would assume you want introspection into failures. Maybe a combination of one for all and then instrument retries using https://stamina.hynek.me/en/stable/instrumentation.html?