Skip to content

Commit 3e73074

Browse files
authored
Rename tcplog receiver to tcp_log (#1687)
1 parent 0938f7c commit 3e73074

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

internal/collector/otelcol.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ receivers:
120120
{{- end }}
121121

122122
{{- range $index, $tcplogReceiver := .Receivers.TcplogReceivers }}
123-
tcplog/{{$index}}:
123+
tcp_log/{{$index}}:
124124
listen_address: "{{- .ListenAddress -}}"
125125
operators:
126126
{{- range $index, $operator := .Operators }}
@@ -317,7 +317,7 @@ service:
317317
receivers:
318318
{{- range $receiver := $pipeline.Receivers }}
319319
{{- if eq $receiver "tcplog/nginx_app_protect" }}
320-
- tcplog/nginx_app_protect
320+
- tcp_log/nginx_app_protect
321321
{{- else }}
322322
- {{ $receiver }}
323323
{{- end }}

internal/collector/settings_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ func TestTemplateWrite(t *testing.T) {
200200
}
201201
cfg.Collector.Pipelines.Logs = make(map[string]*config.Pipeline)
202202
cfg.Collector.Pipelines.Logs["default"] = &config.Pipeline{
203-
Receivers: []string{"tcplog/default"},
203+
Receivers: []string{"tcp_log/default"},
204204
Processors: []string{"securityviolationsfilter/default", "resource/default", "batch/default"},
205205
Exporters: []string{"otlp_grpc/default", "debug"},
206206
}

test/config/collector/test-opentelemetry-collector-agent.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ receivers:
5353
location: ""
5454
ca: ""
5555
collection_interval: 20s
56-
tcplog/default:
56+
tcp_log/default:
5757
listen_address: "localhost:151"
5858
operators:
5959
- type: add
@@ -138,7 +138,7 @@ service:
138138
- debug
139139
logs/default:
140140
receivers:
141-
- tcplog/default
141+
- tcp_log/default
142142
processors:
143143
- securityviolationsfilter/default
144144
- resource/default

0 commit comments

Comments
 (0)