Skip to content

[monitor opentelemetry exporter] Update maximum size of custom properties#44684

Merged
hectorhdzg merged 7 commits intoAzure:mainfrom
hectorhdzg:hectohdzg/truncateprop
Jan 16, 2026
Merged

[monitor opentelemetry exporter] Update maximum size of custom properties#44684
hectorhdzg merged 7 commits intoAzure:mainfrom
hectorhdzg:hectohdzg/truncateprop

Conversation

@hectorhdzg
Copy link
Member

Increase size of custom properties for Span/LogRecords to 64kb

Copilot AI review requested due to automatic review settings January 16, 2026 01:03
@github-actions github-actions bot added the Monitor - Exporter Monitor OpenTelemetry Exporter label Jan 16, 2026
Copy link
Contributor

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 increases the maximum size of custom properties for Span/LogRecords from 8192 bytes to 64KB (65,536 bytes) in the Azure Monitor OpenTelemetry exporter.

Changes:

  • Updated _filter_custom_properties function to use 64KB limit instead of 8KB
  • Added a new test to validate property truncation and filtering behavior
  • Updated CHANGELOG with the change (missing PR number)

Reviewed changes

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

File Description
sdk/monitor/azure-monitor-opentelemetry-exporter/azure/monitor/opentelemetry/exporter/_utils.py Increased max_length from 8192 to 64*1024 (65,536) in _filter_custom_properties function and updated comment
sdk/monitor/azure-monitor-opentelemetry-exporter/tests/test_utils.py Added test case for property filtering that validates truncation, but still expects the old 8192 limit
sdk/monitor/azure-monitor-opentelemetry-exporter/CHANGELOG.md Added changelog entry with placeholder for PR number

Copy link
Member

@rads-1996 rads-1996 left a comment

Choose a reason for hiding this comment

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

LGTM

@hectorhdzg hectorhdzg merged commit f8659ae into Azure:main Jan 16, 2026
20 checks passed
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

Comments