-
Notifications
You must be signed in to change notification settings - Fork 17
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
add exporter retry configuration #97
base: main
Are you sure you want to change the base?
Changes from all commits
8efbbf2
9b5da6e
1c35fd7
ba14262
3cb4d33
81e7bb4
c1ec4f3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -91,6 +91,10 @@ logger_provider: | |
# | ||
# Environment variable: OTEL_EXPORTER_OTLP_INSECURE, OTEL_EXPORTER_OTLP_LOGS_INSECURE | ||
insecure: false | ||
# Configure retry policy. | ||
retry: | ||
# Configure retry disabled. | ||
disabled: false | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What do you think of @carlosalberto's suggestion to have a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I really like it, and I think it could resolve my issues. If we allow for future retry strategies, including custom/3rd party strategies, then SIGs have the freedom to provide their own configuration to suit their specific implementation. How about treating retry policy similarly to how we treat a retry:
disabled: false
<policy-name>:
property: value
|
||
# Configure a simple span processor. | ||
- simple: | ||
# Configure exporter. | ||
|
@@ -199,6 +203,10 @@ meter_provider: | |
# | ||
# Environment variable: OTEL_EXPORTER_OTLP_INSECURE, OTEL_EXPORTER_OTLP_METRICS_INSECURE | ||
insecure: false | ||
# Configure retry policy. | ||
retry: | ||
# Configure retry disabled. | ||
disabled: false | ||
# Configure temporality preference. | ||
# | ||
# Environment variable: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE | ||
|
@@ -323,6 +331,10 @@ tracer_provider: | |
# | ||
# Environment variable: OTEL_EXPORTER_OTLP_INSECURE, OTEL_EXPORTER_OTLP_TRACES_INSECURE | ||
insecure: false | ||
# Configure retry policy. | ||
retry: | ||
# Configure retry disabled. | ||
disabled: false | ||
# Configure a batch span processor. | ||
- batch: | ||
# Configure exporter. | ||
|
@@ -339,6 +351,10 @@ tracer_provider: | |
# | ||
# Environment variable: OTEL_EXPORTER_ZIPKIN_TIMEOUT | ||
timeout: 10000 | ||
# Configure retry policy. | ||
retry: | ||
# Configure retry disabled. | ||
disabled: false | ||
# Configure a simple span processor. | ||
- simple: | ||
# Configure exporter. | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -166,6 +166,12 @@ | |
"type": "integer", | ||
"minimum": 0 | ||
}, | ||
"insecure": { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. moved |
||
"type": "boolean" | ||
}, | ||
"retry": { | ||
"$ref": "common.json#/$defs/Retry" | ||
}, | ||
"temporality_preference": { | ||
"type": "string" | ||
}, | ||
|
@@ -175,9 +181,6 @@ | |
"explicit_bucket_histogram", | ||
"base2_exponential_bucket_histogram" | ||
] | ||
}, | ||
"insecure": { | ||
"type": "boolean" | ||
} | ||
}, | ||
"required": [ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
enabled
seems to be easier - avoids double negationThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The spec defines that options like this have to be
disabled
and notenabled
. But I can't find it right now... so I may be wrong.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, just saw Jack already linked to it earlier, https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md#boolean-value