-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathotel-config.yaml
More file actions
62 lines (57 loc) · 1.68 KB
/
Copy pathotel-config.yaml
File metadata and controls
62 lines (57 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
extensions:
health_check:
receivers:
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:4317
http:
endpoint: 0.0.0.0:55681
zipkin:
processors:
memory_limiter:
limit_mib: 100
check_interval: 5s
batch/traces:
timeout: 10s
send_batch_size: 50
attributes:
actions:
- key: deployment.environment.name
value: ${env:DWOLLA_ENV}
action: insert
- key: peer.service
action: extract
pattern: ^consul!(?P<peerservice>.*)$ # AFAICT using "peer.service" would be an illegal capture group name
- key: peer.service
action: update
from_attribute: peerservice
- key: peerservice
action: delete
- key: http.status_code # this is deprecated but X-Ray wants it; see https://aws-otel.github.io/docs/getting-started/x-ray#otel-span-http-attributes-translation
action: insert
from_attribute: http.response.status_code
exporters:
awsxray:
indexed_attributes: # see https://github.com/Dwolla/dwolla-otel-natchez/blob/dc1aa448d97a91f50ec52653b3e28d7fbf147f87/dwolla-xray-annotations/src/test/scala/com/dwolla/tracing/XRayAnnotationsSpec.scala#L27-L33
- deployment.environment.name
- otel.resource.deployment.environment.name
- otel.resource.service.name
- com.dwolla.client.account.id
- com.dwolla.enduser.account.id
- com.dwolla.transaction.id
- com.dwolla.event-bus.message-handling-result
service:
pipelines:
traces:
receivers:
- otlp
- zipkin
processors:
- memory_limiter
- batch/traces
- attributes
exporters:
- awsxray
extensions:
- health_check