-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test to validate the attributes processor
- Loading branch information
1 parent
4069d01
commit e6aea1d
Showing
2 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
pkg/extension/opampextension/testdata/opamp.d/opamp-attributes-processor.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
receivers: | ||
mysql: | ||
endpoint: localhost:3306 | ||
username: otel | ||
password: test | ||
database: otel | ||
collection_interval: 10s | ||
initial_delay: 1s | ||
statement_events: | ||
digest_text_limit: 120 | ||
time_limit: 24h | ||
limit: 250 | ||
exporters: | ||
sumologic: | ||
processors: | ||
attributes/example: | ||
actions: | ||
- key: db.table | ||
action: delete | ||
- key: redacted_span | ||
value: true | ||
action: upsert | ||
- key: copy_key | ||
from_attribute: key_original | ||
action: update | ||
- key: account_id | ||
value: 2245 | ||
action: insert | ||
- key: account_password | ||
action: delete | ||
- key: account_email | ||
action: hash | ||
- key: http.status_code | ||
action: convert | ||
converted_type: int | ||
|
||
service: | ||
pipelines: | ||
metrics/mysql/09c98ea4-6686-4ab9-b3cd-f04070906441: | ||
processors: | ||
- attributes/example | ||
receivers: | ||
- mysql | ||
exporters: | ||
- sumologic |