Skip to content

Conversation

@iroqueta
Copy link
Collaborator

@iroqueta iroqueta commented Aug 8, 2025

  1. Add comprehensive README.md for gxobservability module with overview, features, and usage examples
  2. Enhance GXSpanContextTest with a more robust test for the default constructor:
    • Create a controlled testing environment with SdkTracerProvider
    • Set up a span with known trace and span IDs
    • Make it the current span and verify that GXSpanContext captures it correctly
    • Validate exact trace and span ID values instead of just structure
  3. Add unit tests for all core components:
    • GXTraceContextTest
    • OtelSpanTest
    • OtelTracerTest
  4. Update implementation files with improved code documentation and error handling
  5. Enhance OpenTelemetryHelper with better exception handling and documentation

1. Add comprehensive README.md for gxobservability module with overview, features, and usage examples
2. Enhance GXSpanContextTest with a more robust test for the default constructor:
   - Create a controlled testing environment with SdkTracerProvider
   - Set up a span with known trace and span IDs
   - Make it the current span and verify that GXSpanContext captures it correctly
   - Validate exact trace and span ID values instead of just structure
3. Add unit tests for all core components:
   - GXTraceContextTest
   - OtelSpanTest
   - OtelTracerTest
4. Update implementation files with improved code documentation and error handling
5. Enhance OpenTelemetryHelper with better exception handling and documentation
@iroqueta iroqueta requested a review from sjuarezgx August 8, 2025 18:54
@genexusbot
Copy link
Collaborator

Cherry pick to beta success

1. Create ExtractAttributeValueHelper class to expose attribute extraction functionality
   with a clean public API for testing purposes
2. Implement comprehensive ExtractAttributeValueTest with test cases for:
   - Null parameters handling
   - Empty string handling
   - Simple key-value extraction
   - Multiple attribute extraction
   - Non-existent attribute handling
3. Update OtelTracerTest to include reflection-based testing approach
@genexusbot
Copy link
Collaborator

Cherry pick to beta success

@iroqueta iroqueta merged commit 012c8d2 into master Oct 31, 2025
9 checks passed
@iroqueta iroqueta deleted the feature/gxobservability-testing-and-docs branch October 31, 2025 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants