Skip to content

[Feature]: Create arbitrary log spans #1024

@areibman

Description

@areibman

💡 Feature Description and Proposed Solution

Langfuse has the functionality that lets users create log-style spans. They look something like this:

self.trace.event(name="xml_tool_call_limit_reached", level="DEFAULT", status_message=(
                                f"XML tool call limit reached - not yielding more content chunks"))

This is convenient for just showing where things might've gone wrong in a trace.

It would be great to have 2 functions:

  • agentops.log(...)
  • agentops.error(...)

🤔 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