Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: AgentOps-AI/agentops
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0.4.12
Choose a base ref
...
head repository: AgentOps-AI/agentops
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 0.4.13
Choose a head ref
  • 13 commits
  • 45 files changed
  • 6 contributors

Commits on May 17, 2025

  1. revert roadmap (#985)

    areibman authored May 17, 2025
    Configuration menu
    Copy the full SHA
    ccb0d1d View commit details
    Browse the repository at this point in the history

Commits on May 21, 2025

  1. Update openai-agents SDK notebooks to install dependencies quietly an…

    …d add restart kernel instructions (#993)
    
    * Update openai-agents SDK notebooks to install dependencies quietly and add restart kernel instructions
    
    Co-Authored-By: Alex Reibman <meta.alex.r@gmail.com>
    
    * Remove unnecessary comment about quiet installation
    
    Co-Authored-By: Alex Reibman <meta.alex.r@gmail.com>
    
    ---------
    
    Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
    Co-authored-by: Alex Reibman <meta.alex.r@gmail.com>
    devin-ai-integration[bot] and areibman authored May 21, 2025
    Configuration menu
    Copy the full SHA
    8705cdd View commit details
    Browse the repository at this point in the history
  2. Added the stream to handle the streaming responses (#983)

    * added the stream class to
    
    * added test
    fenilfaldu authored May 21, 2025
    Configuration menu
    Copy the full SHA
    8dda585 View commit details
    Browse the repository at this point in the history
  3. Lazy Loading of LLM Libraries to Prevent Duplicate Instrumentation (#987

    )
    
    * Enhance instrumentation module with dynamic library detection and version checks. Introduced PROVIDERS and AGENTIC_LIBRARIES dictionaries for managing instrumentors, and implemented get_active_libraries function to identify currently used libraries. Updated InstrumentorLoader to validate library versions before activation. Refactored instrument_all function to prioritize agentic libraries before standard providers.
    
    * Refactor instrumentation module to implement InstrumentationManager for improved package monitoring and dynamic instrumentation. Added methods for managing active instrumentors, handling conflicts between agentic libraries and providers, and monitoring imports. Updated configuration for supported libraries and combined target packages for streamlined instrumentation.
    
    * Enhance instrumentation module by introducing TypedDict for instrumentor configurations, improving type safety for PROVIDERS and AGENTIC_LIBRARIES dictionaries. This change facilitates better structure and clarity in managing instrumentor settings.
    
    * Refactor instrumentation module to remove InstrumentationManager and implement module-level state management for active instrumentors. Introduced helper functions for package instrumentation, monitoring imports, and uninstrumenting providers, enhancing clarity and maintainability of the code. Updated instrumentation logic to handle conflicts between agentic libraries and providers more effectively.
    
    * Refactor instrumentation module to streamline monitoring and uninstrumenting processes. Removed internal helper functions for starting and stopping monitoring, integrating their logic directly into the `instrument_all` and `uninstrument_all` functions for improved clarity and maintainability.
    
    * Refactor instrumentation module by integrating the logic for checking existing imports directly into the `instrument_all` function. This change removes the now-unnecessary `_check_existing_imports` helper function, enhancing code clarity and maintainability while preserving the functionality of monitoring already imported packages.
    
    ---------
    
    Co-authored-by: Pratyush Shukla <ps4534@nyu.edu>
    Dwij1704 and dot-agi authored May 21, 2025
    Configuration menu
    Copy the full SHA
    f92a115 View commit details
    Browse the repository at this point in the history
  4. Revert "fix: Duplicate LLM calls (#981)" (#997)

    This reverts commit 63fdd7f.
    dot-agi authored May 21, 2025
    Configuration menu
    Copy the full SHA
    85a2041 View commit details
    Browse the repository at this point in the history

Commits on May 24, 2025

  1. Added user-agent in header (#1002)

    added user-agent in header
    fenilfaldu authored May 24, 2025
    Configuration menu
    Copy the full SHA
    54c4570 View commit details
    Browse the repository at this point in the history

Commits on May 27, 2025

  1. fix: AG2 minor refactor for LIBRARY_NAME & LIBRARY_VERSION (#1010)

    minor refactor
    dot-agi authored May 27, 2025
    Configuration menu
    Copy the full SHA
    0267c6f View commit details
    Browse the repository at this point in the history
  2. fix: Agents SDK tool calls, prompt responses and other data (#1005)

    * correct min version for instrumentation
    
    * get tool calls in the agents sdk
    
    * record all the entities and the llm prompts
    
    * remove duplicate LLM calls
    
    * keep a single agent span
    
    * cleanup
    
    * correct import and variable name
    
    * remove context propagation and fix issue with llm attributes
    
    * linting
    
    * some more cleanup
    
    * its `FUNCTION_SPAN_ATTRIBUTES`
    
    * forgot this one but now we good
    
    * refactor for responses instructions attribute
    
    * fix tests
    
    * get correct library version
    
    * oops
    
    ---------
    
    Co-authored-by: Dwij <96073160+Dwij1704@users.noreply.github.com>
    dot-agi and Dwij1704 authored May 27, 2025
    Configuration menu
    Copy the full SHA
    fca6472 View commit details
    Browse the repository at this point in the history
  3. Tool decorator enhance (#1008)

    * Added the cost attribute in tool decorator along with the tests
    
    * ruff check and tests added
    
    * code cleanup
    
    * minor changes
    
    * updated the testcase
    
    * ruff checks
    
    ---------
    
    Co-authored-by: Dwij <96073160+Dwij1704@users.noreply.github.com>
    fenilfaldu and Dwij1704 authored May 27, 2025
    Configuration menu
    Copy the full SHA
    9622b06 View commit details
    Browse the repository at this point in the history
  4. Crewai tags fix in root span (#992)

    * Added span name customization based on default tags
    
    * added the tags/default tags in the root span
    
    * added the test of tags in the root span
    
    * ruff check :)
    
    * code refactored
    
    * ruff checks
    
    * add `TODO` for converting tags to list
    
    ---------
    
    Co-authored-by: Pratyush Shukla <ps4534@nyu.edu>
    Co-authored-by: Dwij <96073160+Dwij1704@users.noreply.github.com>
    3 people authored May 27, 2025
    Configuration menu
    Copy the full SHA
    d7acb59 View commit details
    Browse the repository at this point in the history
  5. Implement Google ADK Instrumentation for AgentOps (#1009)

    * Implement Google ADK Instrumentation for AgentOps
    
    * Fix import compatibility for NotRequired in instrumentation module by adding a fallback to typing_extensions. This ensures broader compatibility across Python versions.
    
    * Update instrumentation_dependencies to require 'google-adk' instead of 'google-genai' for improved package management.
    
    * Refactor LLM attribute extraction to handle system instructions as role messages. Updated message processing to include proper indexing and role normalization for contents, enhancing clarity and consistency in attribute assignment.
    
    * Refactor attribute assignment in Google ADK instrumentation to use constants for span attributes. This change enhances code clarity and maintainability by replacing string literals with defined constants for agent, LLM, and tool attributes.
    
    * Enhance Google ADK instrumentation by adding 'type' parameter to span creation for agent, LLM, and tool contexts. This improves clarity in span categorization and aligns with the existing attribute assignment structure.
    
    * Refactor Google ADK instrumentation to remove 'type' parameter from span creation for agent, LLM, and tool contexts. This change simplifies span initialization while maintaining clarity in span categorization through attribute assignment.
    
    * refactor version code into `__init__.py`
    
    ---------
    
    Co-authored-by: Pratyush Shukla <ps4534@nyu.edu>
    Dwij1704 and dot-agi authored May 27, 2025
    Configuration menu
    Copy the full SHA
    bd397dd View commit details
    Browse the repository at this point in the history
  6. Better root span management (#999)

    * Introduced `start_trace` and `end_trace` functions for user-managed tracing, allowing concurrent traces.
    
    * Enhance tracing functionality by introducing new decorators and improving session handling. Added `trace`, `session`, `agent`, `task`, `workflow`, and `operation` decorators for better instrumentation. Updated `log_trace_url` to include titles for improved logging context. Refactored `Client` initialization trace name and adjusted end trace state handling. Improved error handling during trace logging in `TracingCore` and removed deprecated session decorator usage.
    
    * cleanup
    
    * Enhance `init` function in AgentOps SDK by adding new parameters: `tags`, `auto_init`, `skip_auto_end_session`, and `fail_safe`. Updated documentation to reflect changes and merged `tags` with `default_tags` for improved session management. Refactored client initialization to accommodate new options.
    
    * Refactor legacy session handling by replacing `LegacySession` with `Session` in `agentops` module. This change improves code clarity and aligns with the updated session management approach.
    
    * Enhance unit tests for URL logging in TracingCore and InternalSpanProcessor. Added tests for start and end trace URL logging, handling failures gracefully, and verifying root span tracking. Improved test coverage for session decorators and ensured proper handling of unsampled spans. Refactored existing tests for clarity and consistency.
    
    * Refactor CrewAI workflow instrumentation to enhance span management and attribute tracking. Updated span creation to use dynamic workflow names and improved error handling. Adjusted span kinds from CLIENT to INTERNAL for better clarity in tracing. Streamlined attribute setting for agents and tasks, ensuring accurate logging of results and metrics.
    
    * Refactor force_flush method in TracingCore to remove timeout parameter, simplifying the flush process. Updated logging to indicate completion of the flush operation.
    
    * Refactor Client initialization logic to clarify re-initialization conditions for the API key. Only trigger a warning if a different non-None API key is provided during re-initialization, enhancing the clarity of client behavior.
    
    * Refactor Client initialization to support backward compatibility with legacy session wrapper. Update unit tests to enhance coverage for new session management functionality, including explicit trace handling and decorator behavior. Ensure proper integration between new and legacy APIs for session and trace management.
    
    * Improve authentication error handling in Client and V3Client. Added exception handling for token fetching and response processing, ensuring clearer error logging and re-raising of exceptions for better testability. Updated integration tests to reset client state between tests.
    
    * Refactor integration tests for session concurrency to improve isolation and error handling. Mock API client and tracing core to avoid real authentication during tests. Simplify concurrency test descriptions and ensure proper cleanup of client state between tests.
    
    * Enhance trace management by updating end_trace function to allow ending all active traces when no context is provided. Refactor end_all_sessions to utilize the new end_trace functionality, ensuring legacy global state is cleared. Introduce thread-safe handling of active traces in TracingCore with locking mechanisms for improved concurrency.
    
    * Enhance trace ID handling in TracingCore by adding exception handling for invalid trace IDs. This ensures robustness when dealing with mocked spans or non-integer trace IDs, improving overall trace management reliability.
    
    * revert crewai
    
    * Enhance tracing functionality by adding `trace_name` parameter to configuration and initialization. This allows for customizable trace/session naming, improving trace management and clarity in logs. Updated relevant classes and methods to utilize the new parameter.
    
    * Remove unused span variables in entity decorator function to streamline code and improve clarity.
    
    ---------
    
    Co-authored-by: Pratyush Shukla <ps4534@nyu.edu>
    Dwij1704 and dot-agi authored May 27, 2025
    Configuration menu
    Copy the full SHA
    5b419d3 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    e586cee View commit details
    Browse the repository at this point in the history
Loading