Skip to content

Conversation

rads-1996
Copy link
Member

Description

Added telemetry_success field to dropped items as per spec - https://github.com/aep-health-and-standards/Telemetry-Collection-Spec/pull/606

All SDK Contribution checklist:

  • The pull request does not introduce [breaking changes]
  • CHANGELOG is updated for new features, bug fixes or other significant changes.
  • I have read the contribution guidelines.

General Guidelines and Best Practices

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

@Copilot Copilot AI review requested due to automatic review settings September 4, 2025 15:28
@github-actions github-actions bot added the Monitor - Exporter Monitor OpenTelemetry Exporter label Sep 4, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds telemetry success tracking for dropped items in the Azure Monitor OpenTelemetry exporter, implementing a new telemetry_success field as specified in the Telemetry Collection Spec. The implementation extracts success flags from RequestData and RemoteDependencyData envelopes and includes them in dropped item metrics.

Key Changes

  • Enhanced dropped item tracking to include telemetry success status for REQUEST and DEPENDENCY types
  • Updated data structures to support nested success tracking in counters
  • Added comprehensive test coverage for both successful and failed telemetry scenarios

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

File Description
_utils.py Added helper function to extract success flags from telemetry envelopes and updated tracking calls
_customer_sdkstats.py Modified data structures and methods to support telemetry success tracking with nested dictionaries
test_base_customer_sdkstats.py Added new test cases for CLIENT_EXCEPTION scenarios with both success and failure cases
test_customer_sdkstats.py Enhanced existing integration test to verify telemetry success categorization

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Monitor - Exporter Monitor OpenTelemetry Exporter
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant