forked from open-telemetry/opentelemetry-configuration
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsdk-migration-config.yaml
More file actions
124 lines (124 loc) · 5.64 KB
/
Copy pathsdk-migration-config.yaml
File metadata and controls
124 lines (124 loc) · 5.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
# sdk-migration-config.yaml is a typical starting point for configuring the SDK when migrating
# from environment variable based configuration.
#
# This template includes env var substitution references (i.e. ${MY_ENV}) for all spec defined
# env vars (https://opentelemetry.io/docs/specs/otel/configuration/sdk-environment-variables/)
# which map cleanly to declarative configuration. For example, OTEL_SDK_DISABLED is referenced
# below, but OTEL_TRACES_EXPORTER is not since it does not map well to the hierarchical
# structure of declarative configuration.
#
# NOTE: With the exception of env var substitution syntax, SDKs ignore environment variables
# when interpreting config files. For example, if "disabled: ${OTEL_SDK_DISABLED:-false}"
# is replaced with "disabled: false", then setting the env var OTEL_SDK_DISABLED will have
# no effect. See https://opentelemetry.io/docs/specs/otel/configuration/data-model/
# for more information. The following spec defined env vars are NOT referenced and are thus
# ignored:
#
# - OTEL_TRACES_SAMPLER
# - OTEL_TRACES_SAMPLER_ARG
# - OTEL_EXPORTER_ZIPKIN_ENDPOINT
# - OTEL_EXPORTER_ZIPKIN_TIMEOUT
# - OTEL_EXPORTER_PROMETHEUS_HOST
# - OTEL_EXPORTER_PROMETHEUS_PORT
# - OTEL_TRACES_EXPORTER
# - OTEL_METRICS_EXPORTER
# - OTEL_LOGS_EXPORTER
# - OTEL_EXPORTER_OTLP_PROTOCOL, OTEL_EXPORTER_OTLP_{SIGNAL}_PROTOCOL
# - OTEL_EXPORTER_OTLP_ENDPOINT
# - OTEL_EXPORTER_OTLP_INSECURE, OTEL_EXPORTER_OTLP_{SIGNAL}_INSECURE
# - OTEL_EXPORTER_OTLP_CERTIFICATE
# - OTEL_EXPORTER_OTLP_CLIENT_KEY
# - OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE
# - OTEL_EXPORTER_OTLP_COMPRESSION
# - OTEL_EXPORTER_OTLP_TIMEOUT
# - OTEL_LOG_LEVEL
#
# 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.3"
disabled: ${OTEL_SDK_DISABLED:-false}
log_level: info
resource:
attributes:
- name: service.name
value: ${OTEL_SERVICE_NAME:-unknown_service}
attributes_list: ${OTEL_RESOURCE_ATTRIBUTES}
attribute_limits:
attribute_value_length_limit: ${OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT}
attribute_count_limit: ${OTEL_ATTRIBUTE_COUNT_LIMIT:-128}
propagator:
composite_list: ${OTEL_PROPAGATORS:-tracecontext,baggage}
tracer_provider:
processors:
- batch:
schedule_delay: ${OTEL_BSP_SCHEDULE_DELAY:-5000}
export_timeout: ${OTEL_BSP_EXPORT_TIMEOUT:-30000}
max_queue_size: ${OTEL_BSP_MAX_QUEUE_SIZE:-2048}
max_export_batch_size: ${OTEL_BSP_MAX_EXPORT_BATCH_SIZE:-512}
exporter:
otlp_http:
endpoint: ${OTEL_EXPORTER_OTLP_ENDPOINT:-http://localhost:4318}/v1/traces
tls:
ca_file: ${OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE}
key_file: ${OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY}
cert_file: ${OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE}
compression: ${OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:-gzip}
timeout: ${OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:-10000}
headers_list: ${OTEL_EXPORTER_OTLP_TRACES_HEADERS}
limits:
attribute_value_length_limit: ${OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT}
attribute_count_limit: ${OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:-128}
event_count_limit: ${OTEL_SPAN_EVENT_COUNT_LIMIT:-128}
link_count_limit: ${OTEL_SPAN_LINK_COUNT_LIMIT:-128}
event_attribute_count_limit: ${OTEL_EVENT_ATTRIBUTE_COUNT_LIMIT:-128}
link_attribute_count_limit: ${OTEL_LINK_ATTRIBUTE_COUNT_LIMIT:-128}
sampler:
parent_based:
root:
always_on:
remote_parent_sampled:
always_on:
remote_parent_not_sampled:
always_off:
local_parent_sampled:
always_on:
local_parent_not_sampled:
always_off:
meter_provider:
readers:
- periodic:
interval: ${OTEL_METRIC_EXPORT_INTERVAL:-60000}
timeout: ${OTEL_METRIC_EXPORT_TIMEOUT:-30000}
exporter:
otlp_http:
endpoint: ${OTEL_EXPORTER_OTLP_ENDPOINT:-http://localhost:4318}/v1/metrics
tls:
ca_file: ${OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE}
key_file: ${OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY}
cert_file: ${OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE}
compression: ${OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:-gzip}
timeout: ${OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:-10000}
headers_list: ${OTEL_EXPORTER_OTLP_METRICS_HEADERS}
temporality_preference: ${OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:-cumulative}
default_histogram_aggregation: ${OTEL_EXPORTER_OTLP_METRICS_DEFAULT_HISTOGRAM_AGGREGATION:-explicit_bucket_histogram}
exemplar_filter: ${OTEL_METRICS_EXEMPLAR_FILTER:-trace_based}
logger_provider:
processors:
- batch:
schedule_delay: ${OTEL_BLRP_SCHEDULE_DELAY:-1000}
export_timeout: ${OTEL_BLRP_EXPORT_TIMEOUT:-30000}
max_queue_size: ${OTEL_BLRP_MAX_QUEUE_SIZE:-2048}
max_export_batch_size: ${OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:-512}
exporter:
otlp_http:
endpoint: ${OTEL_EXPORTER_OTLP_ENDPOINT:-http://localhost:4318}/v1/logs
tls:
ca_file: ${OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE}
key_file: ${OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY}
cert_file: ${OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE}
compression: ${OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:-gzip}
timeout: ${OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:-10000}
headers_list: ${OTEL_EXPORTER_OTLP_LOGS_HEADERS}
limits:
attribute_value_length_limit: ${OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT}
attribute_count_limit: ${OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:-128}