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

Support general attribute limits for spans #2677

Conversation

MrAlias
Copy link
Contributor

@MrAlias MrAlias commented Mar 15, 2022

Fix #2675

When model specific limits are not set fallback to the general ones defined by environment variables before defaults for attribute length and count limits. This is in compliance with the specification.

Testing

Refactor env package tests to cover all environment variable helper functions, including the ones added in this PR.

When model specific limits are not set fallback to the general ones
defined by environment variables before defaults for attribute length
and count limits. This is in compliance with the specification.
Test all environment variable helper functions.
@codecov
Copy link

codecov bot commented Mar 15, 2022

Codecov Report

Merging #2677 (2cff98e) into main (0fe5eee) will increase coverage by 0.0%.
The diff coverage is 100.0%.

Impacted file tree graph

@@          Coverage Diff          @@
##            main   #2677   +/-   ##
=====================================
  Coverage   75.8%   75.8%           
=====================================
  Files        173     173           
  Lines      11672   11684   +12     
=====================================
+ Hits        8854    8866   +12     
  Misses      2608    2608           
  Partials     210     210           
Impacted Files Coverage Δ
sdk/internal/env/env.go 100.0% <100.0%> (ø)

Copy link
Member

@XSAM XSAM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Contributor

@plantfansam plantfansam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Take-it-or-leave-it docs nit but LGTM!

sdk/internal/env/env.go Outdated Show resolved Hide resolved
@MrAlias MrAlias merged commit b1c1e78 into open-telemetry:main Mar 16, 2022
@MrAlias MrAlias deleted the 2675-support-otel_attribute_value_length_limit-and-otel_attribute_count_limit branch March 16, 2022 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT and OTEL_ATTRIBUTE_COUNT_LIMIT
5 participants