Skip to content

Conversation

@Dwij1704
Copy link
Member

@Dwij1704 Dwij1704 commented Jul 14, 2025

📥 Pull Request

📘 Description
Closes #1151

  • Introduced the @track_endpoint decorator to enhance HTTP request/response tracing capabilities.
  • Updated the agentops SDK to include HTTP-specific span handling and data extraction for requests and responses.
  • Added new utility functions for extracting request and response data from Flask context.
  • Updated documentation to include usage examples and configuration options for the new decorator.

This addition allows for comprehensive monitoring of HTTP endpoints, integrating seamlessly with existing tracing functionalities.

🧪 Testing
Trust me bro

@Dwij1704 Dwij1704 marked this pull request as ready for review July 14, 2025 22:40
@codecov
Copy link

codecov bot commented Jul 14, 2025

Codecov Report

Attention: Patch coverage is 20.00000% with 104 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
agentops/sdk/decorators/factory.py 3.52% 82 Missing ⚠️
agentops/sdk/decorators/utility.py 10.00% 18 Missing ⚠️
agentops/helpers/dashboard.py 57.14% 3 Missing ⚠️
agentops/config.py 75.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@Dwij1704 Dwij1704 requested review from areibman and dot-agi July 14, 2025 23:14
Copy link
Contributor

@bboynton97 bboynton97 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thx for docs add :)

@dot-agi dot-agi merged commit 6cb9728 into main Jul 17, 2025
25 of 49 checks passed
@dot-agi dot-agi deleted the backend-decorator branch July 17, 2025 00:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Add trace_endpoint decorator

4 participants