Is it possible to modify attribute of existing span if we have project name and span id? #9178
-
|
I read the docs and api docs but I don't think there's a way to do this. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
|
Hi @ipdrpatel! I'm Dosu and I’m helping the phoenix team. You are correct—there is no supported way to modify the attributes of an existing span after it has been created, even if you have the project name and span id. The API and client libraries only allow you to retrieve or query spans and their attributes, not update them post-creation. Span attributes are set at creation time (for example, using To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
-
|
Hey @ipdrpatel, in OpenTelemetry, spans (including their attributes) are immutable and can't be changed once created. Out of curiosity, what information in your span were you hoping to update? |
Beta Was this translation helpful? Give feedback.
-
|
Hey @ipdrpatel due to data modification being illegal in some industries etc. we will probably keep it immutable for some time until we understand your request better. If you have access to the DB you are free to modify ofc. Going to mark the above answer as correct. |
Beta Was this translation helpful? Give feedback.
Hey @ipdrpatel, in OpenTelemetry, spans (including their attributes) are immutable and can't be changed once created. Out of curiosity, what information in your span were you hoping to update?