-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: change semconv-proc to be attributes processor (#1894)
- Loading branch information
1 parent
53460d8
commit 9d657d7
Showing
2 changed files
with
76 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
apiVersion: actions.odigos.io/v1alpha1 | ||
kind: RenameAttribute | ||
metadata: | ||
name: semconv | ||
spec: | ||
actionName: "semconv" | ||
notes: "Auto generated rule from semconv profile. Do not edit." | ||
renames: | ||
net.peer.address: network.peer.address | ||
net.local.address: network.local.address | ||
net.peer.ip: network.peer.address | ||
net.peer.port: network.peer.port | ||
net.host.ip: network.local.address | ||
net.host.name: server.address | ||
net.host.port: server.port | ||
net.transport: network.transport | ||
db.operation: db.operation.name | ||
signals: | ||
- TRACES |
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 |
---|---|---|
@@ -1,19 +1,63 @@ | ||
apiVersion: actions.odigos.io/v1alpha1 | ||
kind: RenameAttribute | ||
apiVersion: odigos.io/v1alpha1 | ||
kind: Processor | ||
metadata: | ||
name: semconv | ||
namespace: odigos-system | ||
spec: | ||
actionName: "semconv" | ||
type: attributes | ||
processorName: semconv-attributes | ||
notes: "Auto generated rule from semconv profile. Do not edit." | ||
renames: | ||
net.peer.address: network.peer.address | ||
net.local.address: network.local.address | ||
net.peer.ip: network.peer.address | ||
net.peer.port: network.peer.port | ||
net.host.ip: network.local.address | ||
net.host.name: server.address | ||
net.host.port: server.port | ||
net.transport: network.transport | ||
db.operation: db.operation.name | ||
processorConfig: | ||
actions: | ||
- key: network.peer.address | ||
from_attribute: net.peer.address | ||
action: upsert | ||
- key: net.peer.address | ||
action: delete | ||
- key: network.local.address | ||
from_attribute: net.local.address | ||
action: upsert | ||
- key: net.local.address | ||
action: delete | ||
- key: network.peer.address | ||
from_attribute: net.peer.ip | ||
action: upsert | ||
- key: net.peer.ip | ||
action: delete | ||
- key: network.peer.port | ||
from_attribute: net.peer.port | ||
action: upsert | ||
- key: net.peer.port | ||
action: delete | ||
- key: network.local.address | ||
from_attribute: net.host.ip | ||
action: upsert | ||
- key: net.host.ip | ||
action: delete | ||
- key: server.address | ||
from_attribute: net.host.name | ||
action: upsert | ||
- key: net.host.name | ||
action: delete | ||
- key: server.port | ||
from_attribute: net.host.port | ||
action: upsert | ||
- key: net.host.port | ||
action: delete | ||
- key: network.transport | ||
from_attribute: net.transport | ||
action: upsert | ||
- key: net.transport | ||
action: delete | ||
- key: db.operation.name | ||
from_attribute: db.operation | ||
action: upsert | ||
- key: db.operation | ||
action: delete | ||
|
||
|
||
|
||
signals: | ||
- TRACES | ||
collectorRoles: | ||
- CLUSTER_GATEWAY |