Merge pull request #605 from Beckn-One/feat/issues_585
Feat: Network Observability - OTelSetup plugin, Instrumentation in Core.
This commit is contained in:
89
config/audit-fields.yaml
Normal file
89
config/audit-fields.yaml
Normal file
@@ -0,0 +1,89 @@
|
||||
auditRules:
|
||||
default:
|
||||
- context.transaction_id
|
||||
- context.message_id
|
||||
- context.action
|
||||
- context.domain
|
||||
- context.bap_id
|
||||
- context.bpp_id
|
||||
|
||||
discover:
|
||||
- context.transaction_id
|
||||
- context.message_id
|
||||
- context.action
|
||||
- context.timestamp
|
||||
- message.filters
|
||||
- message.spatial
|
||||
|
||||
select:
|
||||
- context.transaction_id
|
||||
- context.message_id
|
||||
- context.action
|
||||
- context.timestamp
|
||||
- message.order.beckn:buyer.beckn:id
|
||||
- message.order.beckn:seller
|
||||
- message.order.beckn:orderItems.beckn:acceptedOffer.beckn:id
|
||||
- message.order.beckn:orderAttributes
|
||||
|
||||
init:
|
||||
- context.transaction_id
|
||||
- context.message_id
|
||||
- context.action
|
||||
- context.timestamp
|
||||
- message.order.beckn:id
|
||||
- message.order.beckn:buyer.beckn:id
|
||||
- message.order.beckn:orderValue.value
|
||||
- message.order.beckn:payment.beckn:paymentStatus
|
||||
|
||||
confirm:
|
||||
- context.transaction_id
|
||||
- context.message_id
|
||||
- context.action
|
||||
- context.timestamp
|
||||
- message.order.beckn:id
|
||||
- message.order.beckn:orderStatus
|
||||
- message.order.beckn:buyer.beckn:id
|
||||
- message.order.beckn:payment.beckn:txnRef
|
||||
- message.order.beckn:payment.beckn:paymentStatus
|
||||
|
||||
update:
|
||||
- context.transaction_id
|
||||
- context.message_id
|
||||
- context.action
|
||||
- context.timestamp
|
||||
- message.order.beckn:id
|
||||
- message.order.beckn:orderStatus
|
||||
- message.order.beckn:fulfillment.beckn:deliveryAttributes.sessionStatus
|
||||
|
||||
track:
|
||||
- context.transaction_id
|
||||
- context.message_id
|
||||
- context.action
|
||||
- context.timestamp
|
||||
- message.order.beckn:id
|
||||
|
||||
cancel:
|
||||
- context.transaction_id
|
||||
- context.message_id
|
||||
- context.action
|
||||
- context.timestamp
|
||||
- message.order.beckn:id
|
||||
- message.order.beckn:orderStatus
|
||||
- message.order.beckn:buyer.beckn:id
|
||||
|
||||
rating:
|
||||
- context.transaction_id
|
||||
- context.message_id
|
||||
- context.action
|
||||
- context.timestamp
|
||||
- message.id
|
||||
- message.value
|
||||
- message.category
|
||||
|
||||
support:
|
||||
- context.transaction_id
|
||||
- context.message_id
|
||||
- context.action
|
||||
- context.timestamp
|
||||
- message.ref_id
|
||||
- message.ref_type
|
||||
@@ -16,6 +16,25 @@ http:
|
||||
idle: 30
|
||||
pluginManager:
|
||||
root: ./plugins
|
||||
|
||||
# OpenTelemetry (OTLP) - metrics and traces sent to OTEL collector
|
||||
plugins:
|
||||
otelsetup:
|
||||
id: otelsetup
|
||||
config:
|
||||
serviceName: "beckn-one-bap"
|
||||
serviceVersion: "1.0.0"
|
||||
environment: "development"
|
||||
domain: "ev_charging"
|
||||
otlpEndpoint: "otel-collector-bap:4317"
|
||||
enableMetrics: "true"
|
||||
networkMetricsGranularity: "2min"
|
||||
networkMetricsFrequency: "4min"
|
||||
enableTracing: "true"
|
||||
enableLogs: "true"
|
||||
timeInterval: "5"
|
||||
auditFieldsConfig: "/app/config/audit-fields.yaml"
|
||||
|
||||
modules:
|
||||
- name: bapTxnReceiver
|
||||
path: /bap/receiver/
|
||||
|
||||
@@ -16,6 +16,23 @@ http:
|
||||
idle: 30
|
||||
pluginManager:
|
||||
root: ./plugins
|
||||
# OpenTelemetry (OTLP) - metrics and traces sent to OTEL collector, then to Loki/backend
|
||||
plugins:
|
||||
otelsetup:
|
||||
id: otelsetup
|
||||
config:
|
||||
serviceName: "beckn-one-bpp"
|
||||
serviceVersion: "1.0.0"
|
||||
environment: "development"
|
||||
domain: "ev_charging"
|
||||
otlpEndpoint: "otel-collector-bpp:4317"
|
||||
enableMetrics: "true"
|
||||
networkMetricsGranularity: "2min"
|
||||
networkMetricsFrequency: "4min"
|
||||
enableTracing: "true"
|
||||
enableLogs: "true"
|
||||
timeInterval: "5"
|
||||
auditFieldsConfig: "/app/config/audit-fields.yaml"
|
||||
modules:
|
||||
- name: bppTxnReceiver
|
||||
path: /bpp/receiver/
|
||||
|
||||
@@ -218,4 +218,4 @@ modules:
|
||||
steps:
|
||||
- validateSchema
|
||||
- addRoute
|
||||
- sign
|
||||
- sign
|
||||
@@ -20,4 +20,4 @@ routingRules:
|
||||
- on_confirm
|
||||
- on_status
|
||||
- on_update
|
||||
- on_cancel
|
||||
- on_cancel
|
||||
|
||||
Reference in New Issue
Block a user