-
Notifications
You must be signed in to change notification settings - Fork 30
Add sdk-config.yaml starter template w/ references to env vars #76
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
Merged
Merged
Changes from 9 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
3c35cd0
Update schema to accept null values
jack-berg 3681cdc
Add sdk-config.yaml starter template
jack-berg 54b734b
Split out starter with env vars and without
jack-berg 73cd03f
Fix typos, add links to examples from readme
jack-berg ce16337
Merge branch 'main' into starter-template
jack-berg dba6f64
Fix typo
jack-berg d9c480c
Merge branch 'starter-template' of https://github.com/jack-berg/opent…
jack-berg 471c916
Merge branch 'main' into starter-template
jack-berg d677007
Merge branch 'main' into starter-template
codeboten 0bec2ad
Clarify comment in sdk-migration-config.yaml
jack-berg cc9985b
Merge branch 'starter-template' of https://github.com/jack-berg/opent…
jack-berg 79d3388
Use signal specific env vars, ensure all endpoints include correct path
jack-berg 43dbc98
typos
jack-berg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,173 @@ | ||
| # sdk-config.yaml is a typical starting point for configuring the SDK, including exporting to | ||
| # localhost via OTLP. | ||
|
|
||
| # NOTE: With the exception of env var substitution syntax (i.e. ${MY_ENV}) , SDKs ignore | ||
jack-berg marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| # environment variables when interpreting config files. This including ignoring all env | ||
| # vars defined in https://opentelemetry.io/docs/specs/otel/configuration/sdk-environment-variables/. | ||
|
|
||
| # The file format version | ||
| file_format: "0.1" | ||
|
|
||
| # Configure if the SDK is disabled or not. | ||
| disabled: false | ||
|
|
||
| # Configure resource for all signals. | ||
| resource: | ||
| # Configure resource attributes. | ||
| attributes: | ||
| # Configure `service.name` resource attribute | ||
| service.name: unknown_service | ||
|
|
||
| # Configure general attribute limits. See also tracer_provider.limits, logger_provider.limits. | ||
| attribute_limits: | ||
| # Configure max attribute value size. | ||
| attribute_value_length_limit: | ||
| # Configure max attribute count. | ||
| attribute_count_limit: 128 | ||
|
|
||
| # Configure text map context propagators. | ||
| propagator: | ||
| composite: [tracecontext, baggage] | ||
|
|
||
| # Configure tracer provider. | ||
| tracer_provider: | ||
| # Configure span processors. | ||
| processors: | ||
| # Configure a batch span processor. | ||
| - batch: | ||
| # Configure delay interval (in milliseconds) between two consecutive exports. | ||
| schedule_delay: 5000 | ||
| # Configure maximum allowed time (in milliseconds) to export data. | ||
| export_timeout: 30000 | ||
| # Configure maximum queue size. | ||
| max_queue_size: 2048 | ||
| # Configure maximum batch size. | ||
| max_export_batch_size: 512 | ||
| # Configure exporter. | ||
| exporter: | ||
| # Configure exporter to be OTLP. | ||
| otlp: | ||
| # Configure protocol. | ||
| protocol: http/protobuf | ||
| # Configure endpoint. | ||
| endpoint: http://localhost:4318 | ||
| # Configure certificate. | ||
| certificate: | ||
| # Configure mTLS private client key. | ||
| client_key: | ||
| # Configure mTLS client certificate. | ||
| client_certificate: | ||
| # Configure compression. | ||
| compression: gzip | ||
| # Configure max time (in milliseconds) to wait for each export. | ||
| timeout: 10000 | ||
| # Configure span limits. See also attribute_limits. | ||
| limits: | ||
| # Configure max span attribute value size. Overrides attribute_limits.attribute_value_length_limit. | ||
| attribute_value_length_limit: | ||
| # Configure max span attribute count. Overrides attribute_limits.attribute_count_limit. | ||
| attribute_count_limit: 128 | ||
| # Configure max span event count. | ||
| event_count_limit: 128 | ||
| # Configure max span link count. | ||
| link_count_limit: 128 | ||
| # Configure max attributes per span event. | ||
| event_attribute_count_limit: 128 | ||
| # Configure max attributes per span link. | ||
| link_attribute_count_limit: 128 | ||
| # Configure the sampler. | ||
| sampler: | ||
| # Configure sampler to be parent_based. Known values include: always_off, always_on, jaeger_remote, parent_based, trace_id_ratio_based. | ||
| parent_based: | ||
| # Configure root sampler. | ||
| root: | ||
| # Configure sampler to be always_on. | ||
| always_on: {} | ||
| # Configure remote_parent_sampled sampler. | ||
| remote_parent_sampled: | ||
| # Configure sampler to be always_on. | ||
| always_on: {} | ||
| # Configure remote_parent_not_sampled sampler. | ||
| remote_parent_not_sampled: | ||
| # Configure sampler to be always_off. | ||
| always_off: {} | ||
| # Configure local_parent_sampled sampler. | ||
| local_parent_sampled: | ||
| # Configure sampler to be always_on. | ||
| always_on: {} | ||
| # Configure local_parent_not_sampled sampler. | ||
| local_parent_not_sampled: | ||
| # Configure sampler to be always_off. | ||
| always_off: {} | ||
|
|
||
| # Configure meter provider. | ||
| meter_provider: | ||
| # Configure metric readers. | ||
| readers: | ||
| # Configure a periodic metric reader. | ||
| - periodic: | ||
| # Configure delay interval (in milliseconds) between start of two consecutive exports. | ||
| interval: 60000 | ||
| # Configure maximum allowed time (in milliseconds) to export data. | ||
| timeout: 30000 | ||
| # Configure exporter. | ||
| exporter: | ||
| # Configure exporter to be OTLP. | ||
| otlp: | ||
| # Configure protocol. | ||
| protocol: http/protobuf | ||
| # Configure endpoint. | ||
| endpoint: http://localhost:4318 | ||
| # Configure certificate. | ||
| certificate: | ||
| # Configure mTLS private client key. | ||
| client_key: | ||
| # Configure mTLS client certificate. | ||
| client_certificate: | ||
| # Configure compression. | ||
| compression: gzip | ||
| # Configure max time (in milliseconds) to wait for each export. | ||
| timeout: 10000 | ||
| # Configure temporality preference. | ||
| temporality_preference: cumulative | ||
| # Configure default histogram aggregation. | ||
| default_histogram_aggregation: explicit_bucket_histogram | ||
|
|
||
| # Configure logger provider. | ||
| logger_provider: | ||
| # Configure log record processors. | ||
| processors: | ||
| # Configure a batch log record processor. | ||
| - batch: | ||
| # Configure delay interval (in milliseconds) between two consecutive exports. | ||
| schedule_delay: 1000 | ||
| # Configure maximum allowed time (in milliseconds) to export data. | ||
| export_timeout: 30000 | ||
| # Configure maximum queue size. | ||
| max_queue_size: 2048 | ||
| # Configure maximum batch size. | ||
| max_export_batch_size: 512 | ||
| # Configure exporter. | ||
| exporter: | ||
| # Configure exporter to be OTLP. | ||
| otlp: | ||
| # Configure protocol. | ||
| protocol: http/protobuf | ||
| # Configure endpoint. | ||
| endpoint: http://localhost:4318 | ||
| # Configure certificate. | ||
| certificate: | ||
| # Configure mTLS private client key. | ||
| client_key: | ||
| # Configure mTLS client certificate. | ||
| client_certificate: | ||
| # Configure compression. | ||
| compression: gzip | ||
| # Configure max time (in milliseconds) to wait for each export. | ||
| timeout: 10000 | ||
| # Configure log record limits. See also attribute_limits. | ||
| limits: | ||
| # Configure max log record attribute value size. Overrides attribute_limits.attribute_value_length_limit. | ||
| attribute_value_length_limit: | ||
| # Configure max log record attribute count. Overrides attribute_limits.attribute_count_limit. | ||
| attribute_count_limit: 128 | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.