Skip to content

Conversation

@vilsonrodrigues
Copy link
Contributor

Summary

Add new attribute setters to MsgTraceAttributes for better AI operation categorization and visualization.

New Attributes

Module Attributes

  • set_module_name(name) - Set module name (e.g., 'vector_search', 'intent_classifier')
  • set_module_type(module_type) - Set module type for specialized visualizations (e.g., 'Agent', 'Tool', 'LLM', 'Transcriber', 'Retriever')

Extended Tool Attributes

  • set_tool_execution_type(execution_type) - Set tool execution type (e.g., 'local', 'remote')
  • set_tool_protocol(protocol) - Set tool protocol (e.g., 'mcp', 'a2a', 'http', 'grpc')

Extended Agent Attributes

  • set_agent_response(response) - Set agent response content (string or dict)

Benefits

  • Enables specialized visualizations in msgtrace frontend
  • Better categorization of operations by type
  • Support for tool execution metadata (protocol, execution type)
  • Capture agent response content for debugging
  • Consistent with OpenTelemetry GenAI semantic conventions

Testing

  • All new methods follow the same pattern as existing attributes
  • Thread-safe through OpenTelemetry's span API
  • JSON serialization for complex types
  • Only records when span is recording

vilsonrodrigues and others added 3 commits November 26, 2025 12:37
…organization

- Add CODEOWNERS for automatic review assignment
- Add issue templates (bug report, feature request)
- Add pull request template with comprehensive checklist
- Add pre-commit config with gitleaks, uv-lock, and ruff
- Improve release-drafter.yml with more categories and better organization
- Move AUTOMATION.md and ROADMAP.md to docs/ directory
- Remove MERGE_BOT_GUIDE.md (content moved to AUTOMATION.md in English)
- Update AUTOMATION.md with /update command documentation
- Move Development section from README to CONTRIBUTING.md
- Update ROADMAP version from v0.2.0 to v1.1.0
- Update all documentation references to new file locations
The update command was failing because the checkout action wasn't
specifying which repository to checkout from. This caused it to only
fetch the default branches and not the PR branch.

Added 'repository' parameter to the checkout action to explicitly
specify the head repository, fixing the branch checkout issue.

Same fix as applied to msgspec-ext repository.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Add new attribute setters for:
- Module attributes (name, type) for specialized visualizations
- Extended tool attributes (execution type, protocol)
- Extended agent attributes (response content)

These attributes enable better categorization and visualization
of AI operations in the msgtrace frontend.
@github-actions github-actions bot added documentation Improvements or additions to documentation ci CI/CD changes dependencies Dependency updates sdk size/XL Extra large PR enhancement New feature or request labels Dec 4, 2025
@github-actions github-actions bot added size/M Medium PR and removed size/XL Extra large PR labels Dec 4, 2025
@vilsonrodrigues vilsonrodrigues merged commit 578a4b6 into main Dec 4, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci CI/CD changes dependencies Dependency updates documentation Improvements or additions to documentation enhancement New feature or request sdk size/M Medium PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants