Skip to content
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

feat: support OTEL_ATTRIBUTE_{COUNT,VALUE_LENGTH}_LIMIT env vars #1292

Merged

Conversation

ahayworth
Copy link
Contributor

Fixes #1251 by additionally supporting OTEL_ATTRIBUTE_COUNT_LIMIT and
OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT as ways to configure span limits. As
per spec, the existing model-specific limits (eg: OTEL_SPAN_ATTRIBUTE_...
env vars) are preferred when they are present.

The easiest way to do this was to re-use the handy config_opt method
in opentelemetry-common package, on which we already depend. It made
the lines even longer, which is gross, but it works pretty nicely.

Fixes open-telemetry#1251 by additionally supporting `OTEL_ATTRIBUTE_COUNT_LIMIT` and
`OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT` as ways to configure span limits. As
per spec, the existing model-specific limits (eg: `OTEL_SPAN_ATTRIBUTE_...`
env vars) are preferred when they are present.

The easiest way to do this was to re-use the handy `config_opt` method
in `opentelemetry-common` package, on which we already depend. It made
the lines even longer, which is gross, but it works pretty nicely.
@fbogsany fbogsany merged commit e9bd2b2 into open-telemetry:main Jun 21, 2022
ahayworth added a commit to ahayworth/opentelemetry-specification that referenced this pull request Jul 2, 2022
- We now specify adding attributes up-front as preferred in our documentation: open-telemetry/opentelemetry-ruby#1291
- We implement all of the attribute limits described in the spec. The
  remainder were implemented in: open-telemetry/opentelemetry-ruby#1292
- We have supported the TextMapPropagator for awhile (v0.17, released 2021-04-22)
- We have supported `OTEL_SERVICE_NAME` for awhile (v1.0.0rc2, released 2021-06-23)
- We support all `OTEL_EXPORTER_{JAEGER,ZIPKIN}` defined in the spec since 2021.
- We definitely suppport the Exporter interface (unclear how we could have hit 1.0 without it).
tigrannajaryan pushed a commit to open-telemetry/opentelemetry-specification that referenced this pull request Jul 4, 2022
- We now specify adding attributes up-front as preferred in our documentation: open-telemetry/opentelemetry-ruby#1291
- We implement all of the attribute limits described in the spec. The
  remainder were implemented in: open-telemetry/opentelemetry-ruby#1292
- We have supported the TextMapPropagator for awhile (v0.17, released 2021-04-22)
- We have supported `OTEL_SERVICE_NAME` for awhile (v1.0.0rc2, released 2021-06-23)
- We support all `OTEL_EXPORTER_{JAEGER,ZIPKIN}` defined in the spec since 2021.
- We definitely suppport the Exporter interface (unclear how we could have hit 1.0 without it).
beeme1mr pushed a commit to beeme1mr/opentelemetry-specification that referenced this pull request Aug 31, 2022
- We now specify adding attributes up-front as preferred in our documentation: open-telemetry/opentelemetry-ruby#1291
- We implement all of the attribute limits described in the spec. The
  remainder were implemented in: open-telemetry/opentelemetry-ruby#1292
- We have supported the TextMapPropagator for awhile (v0.17, released 2021-04-22)
- We have supported `OTEL_SERVICE_NAME` for awhile (v1.0.0rc2, released 2021-06-23)
- We support all `OTEL_EXPORTER_{JAEGER,ZIPKIN}` defined in the spec since 2021.
- We definitely suppport the Exporter interface (unclear how we could have hit 1.0 without it).
ChengJinbao added a commit to ChengJinbao/opentelemetry-specification that referenced this pull request Nov 16, 2022
- We now specify adding attributes up-front as preferred in our documentation: open-telemetry/opentelemetry-ruby#1291
- We implement all of the attribute limits described in the spec. The
  remainder were implemented in: open-telemetry/opentelemetry-ruby#1292
- We have supported the TextMapPropagator for awhile (v0.17, released 2021-04-22)
- We have supported `OTEL_SERVICE_NAME` for awhile (v1.0.0rc2, released 2021-06-23)
- We support all `OTEL_EXPORTER_{JAEGER,ZIPKIN}` defined in the spec since 2021.
- We definitely suppport the Exporter interface (unclear how we could have hit 1.0 without it).
joaopgrassi pushed a commit to dynatrace-oss-contrib/semantic-conventions that referenced this pull request Mar 21, 2024
- We now specify adding attributes up-front as preferred in our documentation: open-telemetry/opentelemetry-ruby#1291
- We implement all of the attribute limits described in the spec. The
  remainder were implemented in: open-telemetry/opentelemetry-ruby#1292
- We have supported the TextMapPropagator for awhile (v0.17, released 2021-04-22)
- We have supported `OTEL_SERVICE_NAME` for awhile (v1.0.0rc2, released 2021-06-23)
- We support all `OTEL_EXPORTER_{JAEGER,ZIPKIN}` defined in the spec since 2021.
- We definitely suppport the Exporter interface (unclear how we could have hit 1.0 without it).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
spec-compliance/v1.6.0 spec-compliance Required for OpenTelemetry spec compliance
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Support OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT and OTEL_ATTRIBUTE_COUNT_LIMIT
2 participants