Skip to content

Commit 7fc2873

Browse files
author
alrex
authored
Adding environment variables for event and link attribute limits (#1751)
1 parent 0178c25 commit 7fc2873

File tree

4 files changed

+15
-5
lines changed

4 files changed

+15
-5
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ release.
1111

1212
### Traces
1313

14+
- Adding environment variables for event and link attribute limits. ([#1751](https://github.com/open-telemetry/opentelemetry-specification/pull/1751))
15+
1416
### Metrics
1517

1618
- Clarify the limit on the instrument unit.

spec-compliance-matrix.md

+2
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,8 @@ Note: Support for environment variables is optional.
143143
|OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT | - | + | | + | + | - | | + | - | | |
144144
|OTEL_SPAN_EVENT_COUNT_LIMIT | - | + | | + | + | - | | + | - | | |
145145
|OTEL_SPAN_LINK_COUNT_LIMIT | - | + | | + | + | - | | + | - | | |
146+
|OTEL_EVENT_ATTRIBUTE_COUNT_LIMIT | | | | | | | | | | | |
147+
|OTEL_LINK_ATTRIBUTE_COUNT_LIMIT | | | | | | | | | | | |
146148
|OTEL_TRACES_SAMPLER | - | + | | + | + | + | | - | - | | |
147149
|OTEL_TRACES_SAMPLER_ARG | - | + | | + | + | + | | - | - | | |
148150

specification/sdk-environment-variables.md

+7-5
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,13 @@ Depending on the value of `OTEL_TRACES_SAMPLER`, `OTEL_TRACES_SAMPLER_ARG` may b
7878

7979
See the SDK [Span Limits](trace/sdk.md#span-limits) section for the definition of the limits.
8080

81-
| Name | Description | Default | Notes |
82-
| ------------------------------- | ------------------------------------ | ------- | ----- |
83-
| OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT | Maximum allowed span attribute count | 128 | |
84-
| OTEL_SPAN_EVENT_COUNT_LIMIT | Maximum allowed span event count | 128 | |
85-
| OTEL_SPAN_LINK_COUNT_LIMIT | Maximum allowed span link count | 128 | |
81+
| Name | Description | Default | Notes |
82+
| -------------------------------- | ---------------------------------------------- | ------- | ----- |
83+
| OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT | Maximum allowed span attribute count | 128 | |
84+
| OTEL_SPAN_EVENT_COUNT_LIMIT | Maximum allowed span event count | 128 | |
85+
| OTEL_SPAN_LINK_COUNT_LIMIT | Maximum allowed span link count | 128 | |
86+
| OTEL_EVENT_ATTRIBUTE_COUNT_LIMIT | Maximum allowed attribute per span event count | 128 | |
87+
| OTEL_LINK_ATTRIBUTE_COUNT_LIMIT | Maximum allowed attribute per span link count | 128 | |
8688

8789
## OTLP Exporter
8890

specification/trace/sdk.md

+4
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,10 @@ public final class SpanLimits {
342342

343343
public int getAttributeCountLimit();
344344

345+
public int getAttributeCountPerEventLimit();
346+
347+
public int getAttributeCountPerLinkLimit();
348+
345349
public int getEventCountLimit();
346350

347351
public int getLinkCountLimit();

0 commit comments

Comments
 (0)