File tree Expand file tree Collapse file tree 22 files changed +150
-1
lines changed
with_instrumentation_preload_custom
with_instrumentation_preload_default
with_instrumentation_preload_dotnet
with_instrumentation_preload_java
with_instrumentation_preload_nodejs
with_instrumentation_preload_without_npm
with_instrumentation_systemd_custom
with_instrumentation_systemd_default
with_instrumentation_systemd_dotnet
with_instrumentation_systemd_java
with_instrumentation_systemd_nodejs
with_instrumentation_systemd_without_npm Expand file tree Collapse file tree 22 files changed +150
-1
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## ansible-v0.30.0
4
+
5
+ ### 💡 Enhancements 💡
6
+
7
+ - Add support for the ` splunk_otel_auto_instrumentation_logs_exporter ` option to configure the ` OTEL_LOGS_EXPORTER ` environment variable.
8
+
3
9
## ansible-v0.29.0
4
10
5
11
### 🛑 Breaking changes 🛑
Original file line number Diff line number Diff line change 2
2
namespace : signalfx
3
3
name : splunk_otel_collector
4
4
description : Ansible collection for Splunk OpenTelemetry Collector
5
- version : 0.29 .0
5
+ version : 0.30 .0
6
6
readme : README.md
7
7
authors :
8
8
- Splunk Inc.
Original file line number Diff line number Diff line change 13
13
splunk_otel_auto_instrumentation_enable_profiler_memory : true
14
14
splunk_otel_auto_instrumentation_enable_metrics : true
15
15
splunk_otel_auto_instrumentation_metrics_exporter : none
16
+ splunk_otel_auto_instrumentation_logs_exporter : none
16
17
splunk_otel_auto_instrumentation_otlp_endpoint : http://0.0.0.0:4317
17
18
splunk_otel_auto_instrumentation_otlp_endpoint_protocol : grpc
18
19
tasks :
Original file line number Diff line number Diff line change 199
199
- java.conf
200
200
- node.conf
201
201
- dotnet.conf
202
+
203
+ - name : Assert instrumentation config contains OTEL_LOGS_EXPORTER
204
+ ansible.builtin.lineinfile :
205
+ line : OTEL_LOGS_EXPORTER=none
206
+ dest : " /etc/splunk/zeroconfig/{{ item }}"
207
+ state : present
208
+ check_mode : yes
209
+ register : config
210
+ failed_when : config is changed
211
+ loop :
212
+ - java.conf
213
+ - node.conf
214
+ - dotnet.conf
Original file line number Diff line number Diff line change 189
189
- java.conf
190
190
- node.conf
191
191
- dotnet.conf
192
+
193
+ - name : Assert instrumentation config does not contain OTEL_LOGS_EXPORTER
194
+ ansible.builtin.lineinfile :
195
+ regexp : ' .*OTEL_LOGS_EXPORTER.*'
196
+ dest : " /etc/splunk/zeroconfig/{{ item }}"
197
+ state : absent
198
+ check_mode : yes
199
+ register : config
200
+ failed_when : config is changed
201
+ loop :
202
+ - java.conf
203
+ - node.conf
204
+ - dotnet.conf
Original file line number Diff line number Diff line change 159
159
check_mode : yes
160
160
register : config
161
161
failed_when : config is changed
162
+
163
+ - name : Assert instrumentation config does not contain OTEL_LOGS_EXPORTER
164
+ ansible.builtin.lineinfile :
165
+ regexp : ' .*OTEL_LOGS_EXPORTER.*'
166
+ dest : /etc/splunk/zeroconfig/dotnet.conf
167
+ state : absent
168
+ check_mode : yes
169
+ register : config
170
+ failed_when : config is changed
Original file line number Diff line number Diff line change 150
150
check_mode : yes
151
151
register : config
152
152
failed_when : config is changed
153
+
154
+ - name : Assert instrumentation config does not contain OTEL_LOGS_EXPORTER
155
+ ansible.builtin.lineinfile :
156
+ regexp : ' .*OTEL_LOGS_EXPORTER.*'
157
+ dest : /etc/splunk/zeroconfig/java.conf
158
+ state : absent
159
+ check_mode : yes
160
+ register : config
161
+ failed_when : config is changed
Original file line number Diff line number Diff line change 148
148
check_mode : yes
149
149
register : config
150
150
failed_when : config is changed
151
+
152
+ - name : Assert instrumentation config does not contain OTEL_LOGS_EXPORTER
153
+ ansible.builtin.lineinfile :
154
+ regexp : ' .*OTEL_LOGS_EXPORTER.*'
155
+ dest : /etc/splunk/zeroconfig/node.conf
156
+ state : absent
157
+ check_mode : yes
158
+ register : config
159
+ failed_when : config is changed
Original file line number Diff line number Diff line change 174
174
loop :
175
175
- java.conf
176
176
- dotnet.conf
177
+
178
+ - name : Assert instrumentation config does not contain OTEL_LOGS_EXPORTER
179
+ ansible.builtin.lineinfile :
180
+ regexp : ' .*OTEL_LOGS_EXPORTER.*'
181
+ dest : " /etc/splunk/zeroconfig/{{ item }}"
182
+ state : absent
183
+ check_mode : yes
184
+ register : config
185
+ failed_when : config is changed
186
+ loop :
187
+ - java.conf
188
+ - dotnet.conf
Original file line number Diff line number Diff line change 13
13
splunk_otel_auto_instrumentation_enable_profiler_memory : true
14
14
splunk_otel_auto_instrumentation_enable_metrics : true
15
15
splunk_otel_auto_instrumentation_metrics_exporter : none
16
+ splunk_otel_auto_instrumentation_logs_exporter : none
16
17
splunk_otel_auto_instrumentation_otlp_endpoint : http://0.0.0.0:4317
17
18
splunk_otel_auto_instrumentation_otlp_endpoint_protocol : grpc
18
19
tasks :
Original file line number Diff line number Diff line change 155
155
check_mode : yes
156
156
register : config
157
157
failed_when : config is changed
158
+
159
+ - name : Assert instrumentation config contains OTEL_LOGS_EXPORTER
160
+ ansible.builtin.lineinfile :
161
+ line : DefaultEnvironment="OTEL_LOGS_EXPORTER=none"
162
+ dest : /usr/lib/systemd/system.conf.d/00-splunk-otel-auto-instrumentation.conf
163
+ state : present
164
+ check_mode : yes
165
+ register : config
166
+ failed_when : config is changed
Original file line number Diff line number Diff line change 156
156
check_mode : yes
157
157
register : config
158
158
failed_when : config is changed
159
+
160
+ - name : Assert instrumentation config does not contain OTEL_LOGS_EXPORTER
161
+ ansible.builtin.lineinfile :
162
+ regexp : ' .*OTEL_LOGS_EXPORTER.*'
163
+ dest : /usr/lib/systemd/system.conf.d/00-splunk-otel-auto-instrumentation.conf
164
+ state : absent
165
+ check_mode : yes
166
+ register : config
167
+ failed_when : config is changed
Original file line number Diff line number Diff line change 156
156
check_mode : yes
157
157
register : config
158
158
failed_when : config is changed
159
+
160
+ - name : Assert instrumentation config does not contain OTEL_LOGS_EXPORTER
161
+ ansible.builtin.lineinfile :
162
+ regexp : ' .*OTEL_LOGS_EXPORTER.*'
163
+ dest : /usr/lib/systemd/system.conf.d/00-splunk-otel-auto-instrumentation.conf
164
+ state : absent
165
+ check_mode : yes
166
+ register : config
167
+ failed_when : config is changed
Original file line number Diff line number Diff line change 157
157
check_mode : yes
158
158
register : config
159
159
failed_when : config is changed
160
+
161
+ - name : Assert instrumentation config does not contain OTEL_LOGS_EXPORTER
162
+ ansible.builtin.lineinfile :
163
+ regexp : ' .*OTEL_LOGS_EXPORTER.*'
164
+ dest : /usr/lib/systemd/system.conf.d/00-splunk-otel-auto-instrumentation.conf
165
+ state : absent
166
+ check_mode : yes
167
+ register : config
168
+ failed_when : config is changed
Original file line number Diff line number Diff line change 155
155
check_mode : yes
156
156
register : config
157
157
failed_when : config is changed
158
+
159
+ - name : Assert instrumentation config does not contain OTEL_LOGS_EXPORTER
160
+ ansible.builtin.lineinfile :
161
+ regexp : ' .*OTEL_LOGS_EXPORTER.*'
162
+ dest : /usr/lib/systemd/system.conf.d/00-splunk-otel-auto-instrumentation.conf
163
+ state : absent
164
+ check_mode : yes
165
+ register : config
166
+ failed_when : config is changed
Original file line number Diff line number Diff line change 157
157
check_mode : yes
158
158
register : config
159
159
failed_when : config is changed
160
+
161
+ - name : Assert instrumentation config does not contain OTEL_LOGS_EXPORTER
162
+ ansible.builtin.lineinfile :
163
+ regexp : ' .*OTEL_LOGS_EXPORTER.*'
164
+ dest : /usr/lib/systemd/system.conf.d/00-splunk-otel-auto-instrumentation.conf
165
+ state : absent
166
+ check_mode : yes
167
+ register : config
168
+ failed_when : config is changed
Original file line number Diff line number Diff line change @@ -315,6 +315,15 @@ to take effect.
315
315
(**default:** ```, i.e. defer to the default `OTEL_METRICS_EXPORTER` value
316
316
for each activated SDK)
317
317
318
+ - `splunk_otel_auto_instrumentation_logs_exporter` (Linux only) :
319
+ Set the exporter for collected logs by all activated SDKs, for example
320
+ ` otlp` . Set the value to `none` to disable collection and export of logs.
321
+ The value will be set to the `OTEL_LOGS_EXPORTER` environment variable. Only
322
+ applicable if `splunk_otel_auto_instrumentation_version` is `latest` or >=
323
+ ` 0.108.0` .
324
+ (**default:** ```, i.e. defer to the default `OTEL_LOGS_EXPORTER` value
325
+ for each activated SDK)
326
+
318
327
# ## Auto Instrumentation for .NET on Windows
319
328
320
329
***Warning:*** The `Environment` property in the
Original file line number Diff line number Diff line change @@ -74,6 +74,7 @@ splunk_otel_auto_instrumentation_enable_profiler: false
74
74
splunk_otel_auto_instrumentation_enable_profiler_memory : false
75
75
splunk_otel_auto_instrumentation_enable_metrics : false
76
76
splunk_otel_auto_instrumentation_metrics_exporter : " "
77
+ splunk_otel_auto_instrumentation_logs_exporter : " "
77
78
splunk_otel_auto_instrumentation_otlp_endpoint : " "
78
79
splunk_otel_auto_instrumentation_otlp_endpoint_protocol : " "
79
80
splunk_otel_auto_instrumentation_sdks :
Original file line number Diff line number Diff line change @@ -35,3 +35,6 @@ DefaultEnvironment="OTEL_EXPORTER_OTLP_PROTOCOL={{ splunk_otel_auto_instrumentat
35
35
{% if splunk_otel_auto_instrumentation_metrics_exporter is defined and splunk_otel_auto_instrumentation_metrics_exporter %}
36
36
DefaultEnvironment="OTEL_METRICS_EXPORTER={{ splunk_otel_auto_instrumentation_metrics_exporter }}"
37
37
{% endif %}
38
+ {% if splunk_otel_auto_instrumentation_logs_exporter is defined and splunk_otel_auto_instrumentation_logs_exporter %}
39
+ DefaultEnvironment="OTEL_LOGS_EXPORTER={{ splunk_otel_auto_instrumentation_logs_exporter }}"
40
+ {% endif %}
Original file line number Diff line number Diff line change @@ -26,3 +26,6 @@ OTEL_EXPORTER_OTLP_PROTOCOL={{ splunk_otel_auto_instrumentation_otlp_endpoint_pr
26
26
{% if splunk_otel_auto_instrumentation_metrics_exporter is defined and splunk_otel_auto_instrumentation_metrics_exporter %}
27
27
OTEL_METRICS_EXPORTER={{ splunk_otel_auto_instrumentation_metrics_exporter }}
28
28
{% endif %}
29
+ {% if splunk_otel_auto_instrumentation_logs_exporter is defined and splunk_otel_auto_instrumentation_logs_exporter %}
30
+ OTEL_LOGS_EXPORTER={{ splunk_otel_auto_instrumentation_logs_exporter }}
31
+ {% endif %}
Original file line number Diff line number Diff line change @@ -19,3 +19,6 @@ OTEL_EXPORTER_OTLP_PROTOCOL={{ splunk_otel_auto_instrumentation_otlp_endpoint_pr
19
19
{% if splunk_otel_auto_instrumentation_metrics_exporter is defined and splunk_otel_auto_instrumentation_metrics_exporter %}
20
20
OTEL_METRICS_EXPORTER={{ splunk_otel_auto_instrumentation_metrics_exporter }}
21
21
{% endif %}
22
+ {% if splunk_otel_auto_instrumentation_logs_exporter is defined and splunk_otel_auto_instrumentation_logs_exporter %}
23
+ OTEL_LOGS_EXPORTER={{ splunk_otel_auto_instrumentation_logs_exporter }}
24
+ {% endif %}
Original file line number Diff line number Diff line change @@ -19,3 +19,6 @@ OTEL_EXPORTER_OTLP_PROTOCOL={{ splunk_otel_auto_instrumentation_otlp_endpoint_pr
19
19
{% if splunk_otel_auto_instrumentation_metrics_exporter is defined and splunk_otel_auto_instrumentation_metrics_exporter %}
20
20
OTEL_METRICS_EXPORTER={{ splunk_otel_auto_instrumentation_metrics_exporter }}
21
21
{% endif %}
22
+ {% if splunk_otel_auto_instrumentation_logs_exporter is defined and splunk_otel_auto_instrumentation_logs_exporter %}
23
+ OTEL_LOGS_EXPORTER={{ splunk_otel_auto_instrumentation_logs_exporter }}
24
+ {% endif %}
You can’t perform that action at this time.
0 commit comments