Skip to content

Commit

Permalink
Added resourceprocessor config
Browse files Browse the repository at this point in the history
  • Loading branch information
jerrytfleung committed Jan 22, 2024
1 parent 6133039 commit 98263bc
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions collector/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ processors:
detectors: [env, system, lambda]
timeout: 1s
override: false
resource:
attributes:
- key: sw.cloud.aws.resource.type
value: "Lambda"
action: upsert

exporters:
logging:
Expand All @@ -30,10 +35,10 @@ service:
pipelines:
traces:
receivers: [otlp]
processors: [resourcedetection,batch,decouple]
processors: [resource,resourcedetection,batch,decouple]
exporters: [otlp,logging]
metrics:
receivers: [otlp]
processors: [resourcedetection,batch,decouple]
processors: [resource,resourcedetection,batch,decouple]
exporters: [otlp,logging]

0 comments on commit 98263bc

Please sign in to comment.