Skip to content
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

Replace deprecated logging exporter parameter #3189

Merged
merged 6 commits into from
May 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/otelcol/config/collector/agent_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ exporters:
insecure: true
# Debug
logging:
loglevel: debug
verbosity: detailed

service:
extensions: [health_check, http_forwarder, zpages, memory_ballast, smartagent]
Expand Down
2 changes: 1 addition & 1 deletion cmd/otelcol/config/collector/full_config_linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ exporters:
# Full configuration here: https://github.com/open-telemetry/opentelemetry-collector/tree/main/exporter/loggingexporter
# NOTE: This exporter is very helpful in troubleshooting issues
logging:
loglevel: debug
verbosity: detailed

###############################################################################
# Extensions
Expand Down
2 changes: 1 addition & 1 deletion cmd/otelcol/config/collector/gateway_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ exporters:
sync_host_metadata: true
# Debug
#logging:
#loglevel: debug
#verbosity: detailed

service:
extensions: [health_check, http_forwarder, zpages, memory_ballast]
Expand Down
2 changes: 1 addition & 1 deletion cmd/otelcol/config/collector/otlp_config_linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ exporters:
realm: "${SPLUNK_REALM}"
# Debug
#logging:
#loglevel: debug
#verbosity: detailed

extensions:
health_check:
Expand Down
2 changes: 1 addition & 1 deletion cmd/otelcol/config/collector/upstream_agent_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ exporters:
insecure: true
# Debug
logging:
loglevel: debug
verbosity: detailed

service:
extensions: [health_check, http_forwarder, zpages, memory_ballast]
Expand Down
2 changes: 1 addition & 1 deletion deployments/nomad/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ exporters:
ingest_url: https://ingest.${SPLUNK_REALM}.signalfx.com
sync_host_metadata: true
logging:
loglevel: debug
verbosity: detailed
service:
extensions:
- health_check
Expand Down
2 changes: 1 addition & 1 deletion deployments/nomad/otel-agent.nomad
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ exporters:
ingest_url: https://ingest.${SPLUNK_REALM}.signalfx.com
sync_host_metadata: true
logging:
loglevel: debug
verbosity: detailed
service:
extensions:
- health_check
Expand Down
2 changes: 1 addition & 1 deletion deployments/nomad/otel-gateway.nomad
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ exporters:
api_url: https://api.${SPLUNK_REALM}.signalfx.com
ingest_url: https://ingest.${SPLUNK_REALM}.signalfx.com
logging:
loglevel: debug
verbosity: detailed
service:
extensions:
- health_check
Expand Down
2 changes: 1 addition & 1 deletion deployments/salt/templates/agent_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ processors:

exporters:
logging/debug:
loglevel: debug
verbosity: detailed
logging/info:
loglevel: info

Expand Down
2 changes: 1 addition & 1 deletion docs/getting-started/linux-manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ receivers:
cpu:
exporters:
logging:
loglevel: debug
verbosity: detailed
service:
pipelines:
metrics:
Expand Down
4 changes: 2 additions & 2 deletions examples/nomad/otel-demo.nomad
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ processors:
key: deployment.environment
exporters:
logging:
loglevel: debug
verbosity: detailed
signalfx:
access_token: ${SPLUNK_ACCESS_TOKEN}
api_url: https://api.${SPLUNK_REALM}.signalfx.com
Expand Down Expand Up @@ -369,7 +369,7 @@ exporters:
tls:
insecure: true
logging:
loglevel: debug
verbosity: detailed
service:
extensions:
- health_check
Expand Down
2 changes: 1 addition & 1 deletion examples/redis/otel-collector-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ exporters:
access_token: ${SPLUNK_ACCESS_TOKEN}
realm: "${SPLUNK_REALM}"
logging:
loglevel: debug
verbosity: detailed
service:
telemetry:
metrics:
Expand Down
2 changes: 1 addition & 1 deletion examples/splunk-hec-traces/otel-collector-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ exporters:
# For this demo, we use a self-signed certificate on the Splunk docker instance, so this flag is set to true.
insecure_skip_verify: true
logging:
loglevel: debug
verbosity: detailed
sampling_initial: 5
sampling_thereafter: 200

Expand Down
4 changes: 2 additions & 2 deletions internal/receiver/discoveryreceiver/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ receivers:
log_endpoints: true
exporters:
logging:
loglevel: debug
verbosity: detailed
service:
extensions: [docker_observer]
pipelines:
Expand Down Expand Up @@ -172,7 +172,7 @@ receivers:
body: Container appears to not be accepting redis connections.
exporters:
logging:
loglevel: debug
verbosity: detailed
sampling_initial: 1
sampling_thereafter: 1
service:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ exporters:
access_token: "${SPLUNK_ACCESS_TOKEN}"
realm: "${SPLUNK_REALM}"
logging:
loglevel: debug
verbosity: detailed
service:
telemetry:
metrics:
Expand Down
2 changes: 1 addition & 1 deletion internal/settings/settings_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ func TestConfigPrecedence(t *testing.T) {
cpu:
exporters:
logging:
loglevel: debug
verbosity: detailed
service:
pipelines:
metrics:
Expand Down
2 changes: 1 addition & 1 deletion tests/general/default_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ func TestDefaultAgentConfig(t *testing.T) {
require.Equal(t, map[string]any{
"exporters": map[string]any{
"logging": map[string]any{
"loglevel": "debug",
"verbosity": "detailed",
},
"otlp": map[string]any{
"endpoint": ":4317",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
logging:
loglevel: debug
verbosity: detailed
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ processors:

exporters:
logging:
loglevel: debug
verbosity: detailed
otlp:
endpoint: "${OTLP_ENDPOINT}"
tls:
Expand Down