Skip to content

Some coupling improvements. #1030

Merged
braelyn-ai merged 10 commits into
mainfrom
coupling
Jun 5, 2025
Merged

Some coupling improvements. #1030
braelyn-ai merged 10 commits into
mainfrom
coupling

Conversation

@tcdent
Copy link
Copy Markdown
Contributor

@tcdent tcdent commented Jun 2, 2025

  • make_span and finalize_span were already tightly coupled to TracingCore but were living in another module. Make them part of core.
  • TracingCore singleton convention was excessive; a single global instance is already thread-safe.
  • agentops.core should be decoupled from semantc conventions. Moved span/resource attribute construction to a new file.
  • agentops.helpers.system probably has unused code we should clean up.

@tcdent tcdent requested a review from Dwij1704 June 2, 2025 15:18
@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 2, 2025

Codecov Report

Attention: Patch coverage is 65.86826% with 57 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
agentops/sdk/attributes.py 46.80% 25 Missing ⚠️
agentops/helpers/system.py 7.14% 13 Missing ⚠️
agentops/sdk/core.py 83.82% 11 Missing ⚠️
agentops/client/client.py 42.85% 4 Missing ⚠️
agentops/legacy/__init__.py 62.50% 3 Missing ⚠️
agentops/sdk/decorators/factory.py 91.66% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@braelyn-ai braelyn-ai self-requested a review June 2, 2025 15:31
Comment thread agentops/sdk/decorators/__init__.py Outdated
dot-agi added a commit that referenced this pull request Jun 4, 2025
@braelyn-ai braelyn-ai merged commit 51d8234 into main Jun 5, 2025
10 checks passed
@braelyn-ai braelyn-ai deleted the coupling branch June 5, 2025 23:59
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.

3 participants