-
Notifications
You must be signed in to change notification settings - Fork 38
add getting started config #402
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
jack-berg
merged 9 commits into
open-telemetry:main
from
zeitlinger:add-getting-started-example
Nov 21, 2025
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
221d228
add getting started config
zeitlinger 66bb6a1
Update examples/getting-started.yaml
zeitlinger 1f674ab
update recommended endpoint
zeitlinger c2209ca
add sampler
zeitlinger 0f51e46
add more detectors
zeitlinger 3aa7d17
docs
zeitlinger 87b2d2e
docs
zeitlinger a530cea
Update examples/getting-started.yaml
zeitlinger f475c4a
Update examples/getting-started.yaml
zeitlinger 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| # getting-started.yaml is a good 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 | ||
| # environment variables when interpreting config files. This including ignoring all env | ||
| # vars defined in https://opentelemetry.io/docs/specs/otel/configuration/sdk-environment-variables/. | ||
| # | ||
| # For schema documentation, including required properties, semantics, default behavior, etc, | ||
| # see: https://github.com/open-telemetry/opentelemetry-configuration/blob/main/schema-docs.md | ||
|
|
||
| file_format: "1.0-rc.2" | ||
|
|
||
| resource: | ||
| # Read resource attributes from the OTEL_RESOURCE_ATTRIBUTES environment variable. | ||
| # This aligns well with the OpenTelemetry Operator and other deployment methods. | ||
|
jack-berg marked this conversation as resolved.
|
||
| attributes_list: ${OTEL_RESOURCE_ATTRIBUTES} | ||
| detection/development: # /development properties may not be supported in all SDKs | ||
| detectors: | ||
| - service: # will add "service.instance.id" and "service.name" from the OTEL_SERVICE_NAME env var | ||
|
zeitlinger marked this conversation as resolved.
|
||
| - host: | ||
| - process: | ||
| - container: | ||
|
|
||
| propagator: | ||
| composite: | ||
| - tracecontext: | ||
| - baggage: | ||
|
|
||
| # Read backend endpoint from the OTEL_EXPORTER_OTLP_ENDPOINT environment variable. | ||
| # This aligns well with the OpenTelemetry Operator and other deployment methods. | ||
|
|
||
| tracer_provider: | ||
|
zeitlinger marked this conversation as resolved.
|
||
| sampler: | ||
| parent_based: | ||
| root: | ||
| always_on: | ||
| processors: | ||
| - batch: | ||
| exporter: | ||
| otlp_http: | ||
| endpoint: ${OTEL_EXPORTER_OTLP_ENDPOINT:-http://localhost:4318}/v1/traces | ||
|
zeitlinger marked this conversation as resolved.
|
||
|
|
||
| meter_provider: | ||
| readers: | ||
| - periodic: | ||
| exporter: | ||
| otlp_http: | ||
| endpoint: ${OTEL_EXPORTER_OTLP_ENDPOINT:-http://localhost:4318}/v1/metrics | ||
|
|
||
| logger_provider: | ||
| processors: | ||
| - batch: | ||
| exporter: | ||
| otlp_http: | ||
| endpoint: ${OTEL_EXPORTER_OTLP_ENDPOINT:-http://localhost:4318}/v1/logs | ||
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 |
|---|---|---|
| @@ -1,6 +1,7 @@ | ||
| make validator-validate-examples | ||
| >>> | ||
| Validating getting-started.yaml | ||
| Validating kitchen-sink.yaml | ||
| Validating sdk-config.yaml | ||
| Validating sdk-migration-config.yaml | ||
| >>>= 0 | ||
| >>>= 0 |
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.