Skip to content

[Feature]: Create a way to update trace metadata mid-run#1023

Description

@areibman

馃挕 Feature Description and Proposed Solution

Suppose we have a function

@trace
def main():
    ...
    project_id = random.random()

Normally, we can only name the trace when we define it: trace(name="myname", tags=[...]), but there are plenty of use cases where we might want to update or change it or add tags.

We should create a function that lets us update root span metadata. In particular:

  • Trace name
  • Tags
  • Status (success/fail)
  • As well as potentially any other arbitrary categories

馃 Related Problem

No response

馃 Contribution

  • Yes, I'd be happy to submit a pull request with these changes.
  • I need some guidance on how to contribute.
  • I'd prefer the AgentOps team to handle this update.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions