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

Change various usages of minimum to exclusiveMinimum #151

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jack-berg
Copy link
Member

Related to open-telemetry/opentelemetry-specification#4283, but not blocked by the resolution over there.

With #142, the main principle of what constitutes an allowed change is whether it makes validation more or less restrictive. In reviewing our use of the JSON schema minimum keyword, which has inclusive semantics, I found a variety of areas which may come back to bite us. In all these cases, the minimum is currently set to 0. But if the user sets the property value to zero, the semantics are unclear.

Best to prohibit zero in these cases, since we can later loosen the restriction to allow zero but won't be able to make it more strict.

Cases:

  • Processor (log, span, periodic metric reader) export internal
  • Processor (log, span) batch size
  • Processor (log, span) queue size
  • Processor (log, span, periodic metric reader) exporter timeout
  • Exporter (otlp, zipkin) timeout
  • Jaeger remote sampler fetch interval

@jack-berg jack-berg requested a review from a team as a code owner December 9, 2024 23:17
@@ -27,16 +27,16 @@ logger_provider:
processors:
- # Configure a batch log record processor.
batch:
# Configure delay interval (in milliseconds) between two consecutive exports.
# Configure delay interval (in milliseconds) between two consecutive exports. Value must be > 0.
# If omitted or null, 1000 is used.
schedule_delay: 5000
Copy link
Member Author

Choose a reason for hiding this comment

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

Arguably a schedule delay of 0 is valid. Made this change anyway to prompt debate.

Copy link
Member

Choose a reason for hiding this comment

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

I agree with your comment about 0 being valid open-telemetry/opentelemetry-specification#4331 (comment)

Copy link
Member

@marcalff marcalff left a comment

Choose a reason for hiding this comment

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

LGTM

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.

3 participants