Skip to content

[Feature]: Create Error Span Kind #1025

@areibman

Description

@areibman

💡 Feature Description and Proposed Solution

Create an easy way to create and log errors as spans. This could be potentially BOTH a decorator and a standalone function. For example:

from agentops.sdk.decorators import error

@error
def log_error():
    ...

error()

OR

agentops.error(name="...", message="...")

🤔 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

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions