-
Notifications
You must be signed in to change notification settings - Fork 249
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support OTEL_ATTRIBUTE_{COUNT,VALUE_LENGTH}_LIMIT env vars (#1292)
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. Co-authored-by: Francis Bogsanyi <francis.bogsanyi@shopify.com>
- Loading branch information
Showing
2 changed files
with
27 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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