You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Configure a periodic metric reader.
- periodic:
# Configure delay interval (in milliseconds) between start of two consecutive exports.
#
# Environment variable: OTEL_METRIC_EXPORT_INTERVAL
interval: 5000
# Configure maximum allowed time (in milliseconds) to export data.
#
# Environment variable: OTEL_METRIC_EXPORT_TIMEOUT
timeout: 30000
The problem here is not so much the values used (examples are free to use anything), but the fact that this setup is invalid, at least for opentelemetry-cpp:
the C++ SDK enforces that timeout < interval
Since every other numerical value provided in examples seem to match defaults, please consider to use the default (60000) for interval, to avoid confusion.
The problem here is not so much the values used (examples are free to use anything)
While examples are free to use anything, I think its helpful for us to have consistent patterns we follow. The sdk-config.yaml and sdk-migration-config.yaml target users, and so their default values do actually matter and should align with defaults. The kitchen-sink.yaml is contrived and can use any values, but its still probably helpful to use the defaults. One problem with the defaults is that they're not always defined. For example, the default value for .attribute_limits.attribute_value_length_limit is undefined. However, we do want to demonstrate setting some value for this in the example to verify we have the correct type in the schema. Maybe we can adopt a strategy of using the default when available, and when unavailable, using some dummy value with a callout that its not the default.
The examples reads as:
Per the spec:
the default value for
interval
is 60000.The problem here is not so much the values used (examples are free to use anything), but the fact that this setup is invalid, at least for opentelemetry-cpp:
timeout
<interval
Since every other numerical value provided in examples seem to match defaults, please consider to use the default (60000) for
interval
, to avoid confusion.Currently:
Files
anchors.yaml
andkitchen-sink.yaml
use 5000 instead.The text was updated successfully, but these errors were encountered: