Skip to content

Commit

Permalink
Migrate to the debug exporter (#92)
Browse files Browse the repository at this point in the history
* Migrate to the debug exporter

* go mod tidy
  • Loading branch information
evan-bradley authored Dec 8, 2023
1 parent b8a2527 commit a652ea2
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 425 deletions.
8 changes: 4 additions & 4 deletions config_examples/effective.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ processors:
- "true"

exporters:
logging/eec:
debug/eec:
verbosity: detailed
logging:
debug:
verbosity: detailed
sampling_initial: 5
sampling_thereafter: 200
Expand All @@ -36,8 +36,8 @@ service:
metrics/eec:
receivers: [httpcheck/eec]
processors: [filter/eec]
exporters: [logging/eec]
exporters: [debug/eec]
metrics:
receivers: [otlp]
processors: []
exporters: [logging]
exporters: [debug]
4 changes: 2 additions & 2 deletions config_examples/healthcheck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ receivers:
enabled: false

exporters:
logging/eec:
debug/eec:
verbosity: detailed

service:
pipelines:
metrics/eec:
receivers: [httpcheck/eec]
exporters: [logging/eec]
exporters: [debug/eec]
4 changes: 2 additions & 2 deletions config_examples/pipeline.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
exporters:
logging:
debug:
verbosity: detailed
sampling_initial: 5
sampling_thereafter: 200
Expand All @@ -18,5 +18,5 @@ service:
metrics:
receivers: [otlp]
processors: []
exporters: [logging]
exporters: [debug]
extensions: [health_check]
8 changes: 4 additions & 4 deletions docs/hotfix.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Applying a hotfix

This document describes the process to apply a hotfix to an upstream component.
For this document, we will use the `loggingexporter` as an example.
For this document, we will use the `debugexporter` as an example.

1. If it does not already exist, create the `hotfixes` directory.

Expand All @@ -18,7 +18,7 @@ git clone -b v0.79.0 https://github.com/open-telemetry/opentelemetry-collector/
3. Copy the files from upstream into the `hotfixes` directory.

```sh
cp -r opentelemetry-collector/exporter/loggingexporter hotfixes/loggingexporter
cp -r opentelemetry-collector/exporter/debugexporter hotfixes/debugexporter
```

4. Delete the temporary clone of the upstream repo.
Expand All @@ -37,8 +37,8 @@ index 476710d..1dad064 100644
@@ -14,6 +14,7 @@ receivers:

exporters:
- gomod: go.opentelemetry.io/collector/exporter/loggingexporter v0.79.0
+ path: ./hotfixes/loggingexporter
- gomod: go.opentelemetry.io/collector/exporter/debugexporter v0.79.0
+ path: ./hotfixes/debugexporter
- gomod: go.opentelemetry.io/collector/exporter/otlpexporter v0.79.0
- gomod: go.opentelemetry.io/collector/exporter/otlphttpexporter v0.79.0
```
Expand Down
2 changes: 0 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ require (
github.com/knadh/koanf/v2 v2.0.1 // indirect
github.com/leodido/ragel-machinery v0.0.0-20181214104525-299bdde78165 // indirect
github.com/lufia/plan9stats v0.0.0-20220913051719-115f729f3c8c // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0 // indirect
github.com/mitchellh/copystructure v1.2.0 // indirect
github.com/mitchellh/mapstructure v1.5.1-0.20220423185008-bf980b35cac4 // indirect
Expand Down Expand Up @@ -127,7 +126,6 @@ require (
go.opentelemetry.io/contrib/zpages v0.46.1 // indirect
go.opentelemetry.io/otel v1.21.0 // indirect
go.opentelemetry.io/otel/bridge/opencensus v0.44.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlpmetric v0.42.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v0.44.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp v0.44.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.21.0 // indirect
Expand Down
425 changes: 17 additions & 408 deletions go.sum

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ receivers:
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/receiver/httpcheckreceiver v0.90.1

exporters:
- gomod: go.opentelemetry.io/collector/exporter/loggingexporter v0.90.1
- gomod: go.opentelemetry.io/collector/exporter/debugexporter v0.90.1
- gomod: go.opentelemetry.io/collector/exporter/otlpexporter v0.90.1
- gomod: go.opentelemetry.io/collector/exporter/otlphttpexporter v0.90.1

Expand Down
4 changes: 2 additions & 2 deletions testbed/testdata/config-smoke.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ receivers:
endpoint: localhost:4318

exporters:
logging:
debug:
verbosity: detailed

service:
pipelines:
metrics:
receivers: [otlp]
exporters: [logging]
exporters: [debug]
telemetry:
metrics:
level: normal
Expand Down

0 comments on commit a652ea2

Please sign in to comment.