Skip to content

Add support to the exporter for Availability Data telemetry - #48812

Merged
Radhika Gupta (rads-1996) merged 6 commits into
Azure:mainfrom
rads-1996:add-support-for-track-availability
Sep 1, 2026
Merged

Add support to the exporter for Availability Data telemetry#48812
Radhika Gupta (rads-1996) merged 6 commits into
Azure:mainfrom
rads-1996:add-support-for-track-availability

Conversation

@rads-1996

@rads-1996 Radhika Gupta (rads-1996) commented Aug 31, 2026

Copy link
Copy Markdown
Member

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.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
9 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds log-based Availability Data telemetry support to the Azure Monitor OpenTelemetry exporter.

Changes:

  • Maps microsoft.availability.* attributes to AvailabilityData.
  • Adds unit coverage and an availability sample.
  • Updates documentation and changelog.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
_constants.py Defines availability attribute constants.
_exporter.py Converts qualifying logs into availability telemetry.
test_logs.py Tests conversion, validation, timestamps, and precedence.
sample_availability_data.py Demonstrates availability logging.
samples/logs/README.md Documents the new sample.
CHANGELOG.md Records the feature.

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

@rads-1996
Radhika Gupta (rads-1996) force-pushed the add-support-for-track-availability branch 3 times, most recently from 0769356 to 68aa937 Compare August 31, 2026 20:53
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
9 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Suppressed comments (1)

sdk/monitor/azure-monitor-opentelemetry-exporter/azure/monitor/opentelemetry/exporter/export/logs/_exporter.py:263

  • The AvailabilityData schema caps message at 8,192 characters. The explicit attribute is currently unbounded, while the body fallback can reach 32,768 via _map_body_to_message, so either path can produce an invalid availability envelope; truncate the final message to the schema limit.
            message=(
                availability_data["message"]
                if "message" in availability_data
                else _map_body_to_message(log_record.body)
            ),

Copilot AI review requested due to automatic review settings September 1, 2026 15:18

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Note

This error may be related to your runner configuration. You can now configure runners for Copilot code review separately from Copilot cloud agent by creating a copilot-code-review.yml file with your setup steps. Read the docs for details.

@rads-1996
Radhika Gupta (rads-1996) merged commit cd8fb44 into Azure:main Sep 1, 2026
18 checks passed
@rads-1996
Radhika Gupta (rads-1996) deleted the add-support-for-track-availability branch September 1, 2026 15:47
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.

3 participants