Skip to content

Commit dcfb48c

Browse files
feat: integrate open network telemetry sdk
1 parent adaa914 commit dcfb48c

20 files changed

+1791
-590
lines changed

config/samples/bap-client.yaml

Lines changed: 45 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
# Mandatory
22
server:
3-
port: BAP_CLIENT_PORT
3+
port: 5001
44

55
# Mandatory.
66
cache:
7-
host: "REDIS_URL"
7+
host: "0.0.0.0"
88
port: 6379
99
ttl: "PT10M"
1010
# Optional. Default is 0.
11-
db: 1
11+
db: 0
1212

1313
# Optional.
1414
responseCache:
15-
mongoURL: "mongodb://MONGO_USERNAME:MONGO_PASSWORD@0.0.0.0:27017/MONGO_DB_NAME?authSource=admin"
15+
mongoURL: "mongodb://tvast:password@0.0.0.0:27017/ps?authSource=admin"
1616
ttl: "PT10M"
1717

1818
# Mandatory.
@@ -21,8 +21,8 @@ responseCache:
2121
# 2. webhook
2222
# 3. pubSub
2323
client:
24-
synchronous:
25-
mongoURL: "mongodb://MONGO_USERNAME:MONGO_PASSWORD@MONOG_URL:27017/MONGO_DB_NAME?authSource=admin"
24+
synchronous:
25+
mongoURL: "mongodb://tvast:[email protected]:27017/ps?authSource=admin"
2626

2727
#webhook:
2828
# url: "https://beckn.free.beeceptor.com/clientURL"
@@ -43,63 +43,63 @@ app:
4343
mode: client
4444
inboxQueue: "inbox"
4545
outboxQueue: "outbox"
46-
amqpURL: "amqp://RABBITMQ_USERNAME:RABBITMQ_PASSWORD@RABBITMQ_URL:5672"
46+
amqpURL: "amqp://tvast:[email protected]:5672"
4747

4848
# Mandatory.
4949
actions:
5050
requests:
5151
search:
5252
ttl : "PT15S"
5353
init:
54-
ttl : "PT10S"
54+
ttl : "PT15S"
5555
select:
56-
ttl : "PT10S"
56+
ttl : "PT15S"
5757
confirm:
58-
ttl : "PT10S"
58+
ttl : "PT15S"
5959
status:
60-
ttl : "PT10S"
60+
ttl : "PT15S"
6161
track:
62-
ttl : "PT10S"
62+
ttl : "PT15S"
6363
cancel:
64-
ttl : "PT10S"
64+
ttl : "PT15S"
6565
update:
66-
ttl : "PT10S"
66+
ttl : "PT15S"
6767
rating:
68-
ttl : "PT10S"
68+
ttl : "PT15S"
6969
support:
70-
ttl : "PT10S"
70+
ttl : "PT15S"
7171
get_cancellation_reasons:
72-
ttl : "PT10S"
72+
ttl : "PT15S"
7373
get_rating_categories:
74-
ttl : "PT10S"
74+
ttl : "PT15S"
7575
cancellation:
76-
ttl : "PT10S"
76+
ttl : "PT15S"
7777

7878
responses:
7979
on_search:
8080
ttl: "PT15S"
8181
on_init:
82-
ttl: "PT10S"
82+
ttl: "PT15S"
8383
on_select:
84-
ttl: "PT10S"
84+
ttl: "PT15S"
8585
on_confirm:
86-
ttl: "PT10S"
86+
ttl: "PT15S"
8787
on_status:
88-
ttl: "PT10S"
88+
ttl: "PT15S"
8989
on_track:
90-
ttl: "PT10S"
90+
ttl: "PT15S"
9191
on_cancel:
92-
ttl: "PT10S"
92+
ttl: "PT15S"
9393
on_update:
94-
ttl: "PT10S"
94+
ttl: "PT15S"
9595
on_rating:
96-
ttl: "PT10S"
96+
ttl: "PT15S"
9797
on_support:
98-
ttl: "PT10S"
98+
ttl: "PT15S"
9999
cancellation_reasons:
100-
ttl: "PT10S"
100+
ttl: "PT15S"
101101
rating_categories:
102-
ttl: "PT10S"
102+
ttl: "PT15S"
103103

104104
# Mandatory.
105105
privateKey: "PRIVATE_KEY"
@@ -115,7 +115,7 @@ app:
115115
uniqueKey: "BAP_SUBSCRIBER_ID_KEY"
116116

117117
# Mandatory.
118-
city: "std:080"
118+
city: "*"
119119
country: "IND"
120120

121121
# Mandatory.
@@ -124,10 +124,20 @@ app:
124124
# Mandatory.
125125
httpTimeout: "PT3S"
126126
httpRetryCount: 2
127+
127128
telemetry:
128-
enabled: false
129-
url: ""
129+
network:
130+
url: ""
131+
raw:
132+
url: ""
130133
batchSize: 100
131134
# In minutes
132-
syncInterval: 30
133-
redis_db: 3
135+
syncInterval: 1
136+
# Either can be LOCAL or REDIS
137+
storageType: "LOCAL"
138+
backupFilePath: "backups"
139+
redis:
140+
db: 4
141+
service:
142+
name: "bap_client_service"
143+
version: "1.0.0"

config/samples/bap-network.yaml

Lines changed: 47 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
# Mandatory
22
server:
3-
port: BAP_NETWORK_PORT
3+
port: 5002
44

55
# Mandatory.
66
cache:
7-
host: "REDIS_URL"
7+
host: "0.0.0.0"
88
port: 6379
99
ttl: "PT10M"
1010
# Optional. Default is 0.
11-
db: 1
11+
db: 0
1212

1313
# Optional.
1414
responseCache:
15-
mongoURL: "mongodb://MONGO_USERNAME:MONGO_PASSWORD@0.0.0.0:27017/MONGO_DB_NAME?authSource=admin"
15+
mongoURL: "mongodb://tvast:password@0.0.0.0:27017/ps?authSource=admin"
1616
ttl: "PT10M"
1717

1818
# Mandatory.
@@ -21,13 +21,13 @@ responseCache:
2121
# 2. webhook
2222
# 3. pubSub
2323
client:
24-
synchronous:
25-
mongoURL: "mongodb://MONGO_USERNAME:MONGO_PASSWORD@MONOG_URL:27017/MONGO_DB_NAME?authSource=admin"
24+
synchronous:
25+
mongoURL: "mongodb://tvast:[email protected]:27017/ps?authSource=admin"
2626

2727
#webhook:
2828
# url: "https://beckn.free.beeceptor.com/clientURL"
29-
30-
#messageQueue:
29+
30+
#messageQueue:
3131
# amqpURL: "amqp://guest:guest@localhost:5672"
3232
# incomingQueue: "protocol-server-incoming"
3333
# outgoingQueue: "protocol-server-outgoing"
@@ -43,63 +43,63 @@ app:
4343
mode: network
4444
inboxQueue: "inbox"
4545
outboxQueue: "outbox"
46-
amqpURL: "amqp://RABBITMQ_USERNAME:RABBITMQ_PASSWORD@RABBITMQ_URL:5672"
46+
amqpURL: "amqp://tvast:[email protected]:5672"
4747

4848
# Mandatory.
4949
actions:
5050
requests:
5151
search:
5252
ttl : "PT15S"
5353
init:
54-
ttl : "PT10S"
54+
ttl : "PT15S"
5555
select:
56-
ttl : "PT10S"
56+
ttl : "PT15S"
5757
confirm:
58-
ttl : "PT10S"
58+
ttl : "PT15S"
5959
status:
60-
ttl : "PT10S"
60+
ttl : "PT15S"
6161
track:
62-
ttl : "PT10S"
62+
ttl : "PT15S"
6363
cancel:
64-
ttl : "PT10S"
64+
ttl : "PT15S"
6565
update:
66-
ttl : "PT10S"
66+
ttl : "PT15S"
6767
rating:
68-
ttl : "PT10S"
68+
ttl : "PT15S"
6969
support:
70-
ttl : "PT10S"
70+
ttl : "PT15S"
7171
get_cancellation_reasons:
72-
ttl : "PT10S"
72+
ttl : "PT15S"
7373
get_rating_categories:
74-
ttl : "PT10S"
74+
ttl : "PT15S"
7575
cancellation:
76-
ttl : "PT10S"
76+
ttl : "PT15S"
7777

7878
responses:
7979
on_search:
8080
ttl: "PT15S"
8181
on_init:
82-
ttl: "PT10S"
82+
ttl: "PT15S"
8383
on_select:
84-
ttl: "PT10S"
84+
ttl: "PT15S"
8585
on_confirm:
86-
ttl: "PT10S"
86+
ttl: "PT15S"
8787
on_status:
88-
ttl: "PT10S"
88+
ttl: "PT15S"
8989
on_track:
90-
ttl: "PT10S"
90+
ttl: "PT15S"
9191
on_cancel:
92-
ttl: "PT10S"
92+
ttl: "PT15S"
9393
on_update:
94-
ttl: "PT10S"
94+
ttl: "PT15S"
9595
on_rating:
96-
ttl: "PT10S"
96+
ttl: "PT15S"
9797
on_support:
98-
ttl: "PT10S"
98+
ttl: "PT15S"
9999
cancellation_reasons:
100-
ttl: "PT10S"
100+
ttl: "PT15S"
101101
rating_categories:
102-
ttl: "PT10S"
102+
ttl: "PT15S"
103103

104104
# Mandatory.
105105
privateKey: "PRIVATE_KEY"
@@ -115,7 +115,7 @@ app:
115115
uniqueKey: "BAP_SUBSCRIBER_ID_KEY"
116116

117117
# Mandatory.
118-
city: "std:080"
118+
city: "*"
119119
country: "IND"
120120

121121
# Mandatory.
@@ -124,10 +124,20 @@ app:
124124
# Mandatory.
125125
httpTimeout: "PT3S"
126126
httpRetryCount: 2
127+
127128
telemetry:
128-
enabled: false
129-
url: ""
129+
network:
130+
url: ""
131+
raw:
132+
url: ""
130133
batchSize: 100
131134
# In minutes
132-
syncInterval: 30
133-
redis_db: 3
135+
syncInterval: 1
136+
# Either can be LOCAL or REDIS
137+
storageType: "LOCAL"
138+
backupFilePath: "backups"
139+
redis:
140+
db: 4
141+
service:
142+
name: "bap_network_service"
143+
version: "1.0.0"

0 commit comments

Comments
 (0)