Skip to content

Commit

Permalink
feat: add resourcedetection processor (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmpaulino authored Aug 14, 2023
1 parent 217ad57 commit b4784f2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
9 changes: 7 additions & 2 deletions config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ receivers:

processors:
batch:
resourcedetection:
detectors: [env]
timeout: 2s
override: false


exporters:
logging:
Expand All @@ -63,12 +68,12 @@ service:
pipelines:
metrics:
receivers: [otlp, prometheus, gitprovider]
processors: [batch]
processors: [resourcedetection,batch]
exporters: [logging]

traces:
receivers: [otlp]
processors: [batch]
processors: [resourcedetection,batch]
exporters: [logging]

telemetry:
Expand Down
1 change: 1 addition & 0 deletions config/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ exporters:

processors:
- gomod: go.opentelemetry.io/collector/processor/batchprocessor v0.81.0
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/processor/resourcedetectionprocessor v0.81.0

receivers:
- gomod: go.opentelemetry.io/collector/receiver/otlpreceiver v0.81.0
Expand Down

0 comments on commit b4784f2

Please sign in to comment.