-
Notifications
You must be signed in to change notification settings - Fork 933
Add an option to limit length of values of attributes and metric values #1130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 31 commits
4507656
deca25b
748eae0
e7e54b3
10af7ba
ed9bc5f
dabb292
4102464
a6da2b9
c175613
5259377
d4c28eb
df01ff4
5ea1f00
47c86a3
8bd3a9b
c2ed17c
05173b9
5b763d3
b180054
1434084
77a0688
5bde7ba
cf73a3b
50556d1
f3c5243
89f4b3a
992b132
f428739
6f9992a
dd0b245
e3d7b73
e526784
243b07d
cd51664
ff664a2
53522b6
684a0a6
d33eadf
49b7ec9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,6 +23,7 @@ Table of Contents | |
| </summary> | ||
|
|
||
| * [MeterProvider](#meterprovider) | ||
| * [Measurement Limits](#measurement-limits) | ||
| * [MeasurementProcessor](#measurementprocessor) | ||
| * [MetricProcessor](#metricprocessor) | ||
| * [MetricExporter](#metricexporter) | ||
|
|
@@ -40,6 +41,12 @@ TODO: | |
| * Configure timing (related to [issue | ||
| 1432](https://github.com/open-telemetry/opentelemetry-specification/issues/1432)). | ||
|
|
||
| ## Measurement Limits | ||
|
|
||
| Measurement attributes are exempt from the | ||
| [common rules of attribute limits](../common/common.md#attribute-limits) due to | ||
|
||
| the experimental status of the Metrics SDK specification. | ||
|
||
|
|
||
| ## MeasurementProcessor | ||
|
|
||
| `MeasurementProcessor` is an interface which allows hooks when a | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -72,19 +72,32 @@ Depending on the value of `OTEL_TRACES_SAMPLER`, `OTEL_TRACES_SAMPLER_ARG` may b | |
| | OTEL_BSP_MAX_QUEUE_SIZE | Maximum queue size | 2048 | | | ||
| | OTEL_BSP_MAX_EXPORT_BATCH_SIZE | Maximum batch size | 512 | Must be less than or equal to OTEL_BSP_MAX_QUEUE_SIZE | | ||
|
|
||
| ## Span Collection Limits | ||
| ## Attribute Limits | ||
|
|
||
| SDKs SHOULD only offer environment variables for the types of attributes, for | ||
| which that SDK implements truncation mechanism. | ||
|
|
||
| See the SDK [Attribute Limits](common/common.md#attribute-limits) section for the definition of the limits. | ||
|
|
||
| | Name | Description | Default | Notes | | ||
| | --------------------------------- | ------------------------------------ | ------- | ----- | | ||
| | OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT | Maximum allowed attribute value size | | Empty value is treated as infinity. Non-integer and negative values are invalid. | | ||
jtmalinowski marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| | OTEL_ATTRIBUTE_COUNT_LIMIT | Maximum allowed span attribute count | 128 | | | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is the diff with OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Applies to all attributes, except Metrics (temporarily exempted due to experimental status), so effectively that (for now) means spans and events. EDIT: also resources
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Before we go ahead: how does this interact with the rest of the related environment variables? What if the user sets For what is worth, if you remove this, we can totally merge this (and have this single environment variable done as a follow up, etc).
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So previously there was a paragraph about this in sdk-environment-variables, but there was an error in one of the sentences, and because it also applies to programmatic configuration, I moved that paragraph here https://github.com/open-telemetry/opentelemetry-specification/pull/1130/files#diff-500cb43b9725373c25ea03660c293e59681e6e2f6ba3eb588188ed3b83dcbdcdR79. I hope the wording is clear and we can merge. |
||
|
|
||
| ## Span Limits <a name="span-collection-limits"></a> | ||
|
|
||
| **Status**: [Stable](document-status.md) | ||
|
|
||
| See the SDK [Span Limits](trace/sdk.md#span-limits) section for the definition of the limits. | ||
|
|
||
| | Name | Description | Default | Notes | | ||
| | -------------------------------- | ---------------------------------------------- | ------- | ----- | | ||
| | OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT | Maximum allowed span attribute count | 128 | | | ||
| | OTEL_SPAN_EVENT_COUNT_LIMIT | Maximum allowed span event count | 128 | | | ||
| | OTEL_SPAN_LINK_COUNT_LIMIT | Maximum allowed span link count | 128 | | | ||
| | OTEL_EVENT_ATTRIBUTE_COUNT_LIMIT | Maximum allowed attribute per span event count | 128 | | | ||
| | OTEL_LINK_ATTRIBUTE_COUNT_LIMIT | Maximum allowed attribute per span link count | 128 | | | ||
| | Name | Description | Default | Notes | | ||
| | -------------------------------------- | ---------------------------------------------- | ------- | ----- | | ||
| | OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT | Maximum allowed attribute value size | | Empty value is treated as infinity. Non-integer and negative values are invalid. | | ||
| | OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT | Maximum allowed span attribute count | 128 | | | ||
| | OTEL_SPAN_EVENT_COUNT_LIMIT | Maximum allowed span event count | 128 | | | ||
| | OTEL_SPAN_LINK_COUNT_LIMIT | Maximum allowed span link count | 128 | | | ||
| | OTEL_EVENT_ATTRIBUTE_COUNT_LIMIT | Maximum allowed attribute per span event count | 128 | | | ||
| | OTEL_LINK_ATTRIBUTE_COUNT_LIMIT | Maximum allowed attribute per span link count | 128 | | | ||
|
|
||
| ## OTLP Exporter | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.