Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8e34a26

Browse files
author
alrex
authored
update limits as per specification (open-telemetry#1597)
1 parent 06bbb8e commit 8e34a26

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111
([#1571](https://github.com/open-telemetry/opentelemetry-python/pull/1571)])
1212
- Rename `TRACE_` to `TRACES_` for environment variables
1313
([#1595](https://github.com/open-telemetry/opentelemetry-python/pull/1595)])
14+
- Limits for Span attributes, events and links have been updated to 128
15+
([1597](https://github.com/open-telemetry/opentelemetry-python/pull/1597)])
1416

1517
### Added
1618
- Added `end_on_exit` argument to `start_as_current_span`

opentelemetry-sdk/src/opentelemetry/sdk/trace/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@
6161
logger = logging.getLogger(__name__)
6262

6363
SPAN_ATTRIBUTE_COUNT_LIMIT = int(
64-
environ.get(OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT, 1000)
64+
environ.get(OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT, 128)
6565
)
6666

67-
SPAN_EVENT_COUNT_LIMIT = int(environ.get(OTEL_SPAN_EVENT_COUNT_LIMIT, 1000))
68-
SPAN_LINK_COUNT_LIMIT = int(environ.get(OTEL_SPAN_LINK_COUNT_LIMIT, 1000))
67+
SPAN_EVENT_COUNT_LIMIT = int(environ.get(OTEL_SPAN_EVENT_COUNT_LIMIT, 128))
68+
SPAN_LINK_COUNT_LIMIT = int(environ.get(OTEL_SPAN_LINK_COUNT_LIMIT, 128))
6969
VALID_ATTR_VALUE_TYPES = (bool, str, int, float)
7070
# pylint: disable=protected-access
7171
TRACE_SAMPLER = sampling._get_from_env_or_default()

0 commit comments

Comments
 (0)