Skip to content

Commit

Permalink
feat: change semconv-proc to be attributes processor (#1894)
Browse files Browse the repository at this point in the history
  • Loading branch information
tamirdavid1 authored Dec 1, 2024
1 parent 53460d8 commit 9d657d7
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 13 deletions.
19 changes: 19 additions & 0 deletions cli/cmd/resources/profiles/semconv-deprecated.yaml
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
70 changes: 57 additions & 13 deletions cli/cmd/resources/profiles/semconv.yaml
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

0 comments on commit 9d657d7

Please sign in to comment.