-
Notifications
You must be signed in to change notification settings - Fork 440
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
624 additions
and
53 deletions.
There are no files selected for viewing
This file contains 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,42 @@ | ||
# anchors.yaml demonstrates anchor substitution to reuse OTLP exporter configuration across signals. | ||
|
||
file_format: "0.1" | ||
exporters: | ||
otlp: &otlp-exporter | ||
protocol: http/protobuf | ||
endpoint: http://localhost:4318 | ||
certificate: /app/cert.pem | ||
client_key: /app/cert.pem | ||
client_certificate: /app/cert.pem | ||
headers: | ||
api-key: !!str 1234 | ||
compression: gzip | ||
timeout: 10000 | ||
|
||
logger_provider: | ||
processors: | ||
- batch: | ||
exporter: | ||
otlp: | ||
# expand the otlp-exporter anchor | ||
<<: *otlp-exporter | ||
|
||
meter_provider: | ||
readers: | ||
- periodic: | ||
interval: 5000 | ||
timeout: 30000 | ||
exporter: | ||
otlp: | ||
# expand the otlp-exporter anchor and add metric specific configuration | ||
<<: *otlp-exporter | ||
temporality_preference: delta | ||
default_histogram_aggregation: base2_exponential_bucket_histogram | ||
|
||
tracer_provider: | ||
processors: | ||
- batch: | ||
exporter: | ||
otlp: | ||
# expand the otlp-exporter anchor | ||
<<: *otlp-exporter |
This file contains 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 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 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 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 @@ | ||
# The file format version | ||
file_format: "0.1" | ||
|
||
# Configure if the SDK is disabled or not. This is not required to be provided | ||
# to ensure the SDK isn't disabled, the default value when this is not provided | ||
# is for the SDK to be enabled. | ||
# | ||
# Environment variable: OTEL_SDK_DISABLED | ||
disabled: false | ||
|
||
# Configure text map context propagators. | ||
# | ||
# Environment variable: OTEL_PROPAGATORS | ||
propagator: | ||
# composite: [tracecontext, baggage, b3, b3multi, jaeger, xray, ottrace] | ||
simple: tracecontext | ||
|
||
# Configure tracer provider. | ||
tracer_provider: | ||
# Configure span processors. | ||
processors: | ||
# Configure a batch span processor. | ||
- batch: | ||
# Configure exporter. | ||
# | ||
# Environment variable: OTEL_TRACES_EXPORTER | ||
exporter: | ||
# Configure exporter to be zipkin. | ||
zipkin: | ||
# Configure endpoint. | ||
# | ||
# Environment variable: OTEL_EXPORTER_ZIPKIN_ENDPOINT | ||
endpoint: http://localhost:9411/api/v2/spans | ||
# Configure max time (in milliseconds) to wait for each export. | ||
# | ||
# Environment variable: OTEL_EXPORTER_ZIPKIN_TIMEOUT | ||
timeout: 10000 | ||
# Configure a simple span processor. | ||
- simple: | ||
# Configure exporter. | ||
exporter: | ||
# Configure exporter to be console. | ||
console: {} | ||
- my_custom_span_processor: | ||
comment: "This is a span processor extension point, with properties." | ||
- batch: | ||
exporter: | ||
my_custom_span_exporter: | ||
comment: "This is a span exporter extension point, with properties." | ||
|
||
# Configure the sampler. | ||
sampler: | ||
my_custom_sampler: | ||
comment: "This is a sampler extension point, with properties." | ||
|
Oops, something went wrong.