[monitor opentelemetry exporter] Update maximum size of custom properties#44684
Merged
hectorhdzg merged 7 commits intoAzure:mainfrom Jan 16, 2026
Merged
[monitor opentelemetry exporter] Update maximum size of custom properties#44684hectorhdzg merged 7 commits intoAzure:mainfrom
hectorhdzg merged 7 commits intoAzure:mainfrom
Conversation
Contributor
There was a problem hiding this comment.
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_propertiesfunction 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 |
sdk/monitor/azure-monitor-opentelemetry-exporter/tests/test_utils.py
Outdated
Show resolved
Hide resolved
rads-1996
reviewed
Jan 16, 2026
sdk/monitor/azure-monitor-opentelemetry-exporter/azure/monitor/opentelemetry/exporter/_utils.py
Show resolved
Hide resolved
JacksonWeber
approved these changes
Jan 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Increase size of custom properties for Span/LogRecords to 64kb