Skip to content

Commit

Permalink
Instrumentation using OTEL (#131)
Browse files Browse the repository at this point in the history
* update: telemetry metric + tracing

* update: linting and CI fixes

* update: otel env

* update: run collector only if env is available

* update: correcting otel init

* update: removed commented instrumentation

* update: generalised db_call_type to function_type

* update: otel_enabled, tracing_level, removed tracing logs

* update: removed queue/batch size setter + STDOUT code

* update: added TRACING_LEVEL to env:

* update: fn instrumentation name correction

* update: simplifying Level from string logic

* update: cleaner + generalised impl for Metrics

* update: cleaning new analytics approach

* update: correct names for recording otel

* update: fixing clippy error

* update: adding Sigonz Dashboard

* update: tests for otel

* update: test cases for telemetry

* update: PR comments resolved

* update: cleaned the analytics level

* update: lint fix

* update: CI fixed
  • Loading branch information
heemankv authored Oct 5, 2024
1 parent ab66b83 commit 7b85453
Show file tree
Hide file tree
Showing 31 changed files with 757 additions and 20 deletions.
7 changes: 6 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,9 @@ MADARA_RPC_URL=
MEMORY_PAGES_CONTRACT_ADDRESS=
PRIVATE_KEY=
ETHEREUM_PRIVATE_KEY=
STARKNET_SOLIDITY_CORE_CONTRACT_ADDRESS=
STARKNET_SOLIDITY_CORE_CONTRACT_ADDRESS=

##### Instrumentation #####
OTEL_SERVICE_NAME=
OTEL_COLLECTOR_ENDPOINT=
TRACING_LEVEL=
7 changes: 6 additions & 1 deletion .env.test
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,9 @@ STARKNET_SOLIDITY_CORE_CONTRACT_ADDRESS="0xc662c410C0ECf747543f5bA90660f6ABeBD9C
DEFAULT_L1_CORE_CONTRACT_ADDRESS="0xc662c410C0ECf747543f5bA90660f6ABeBD9C8c4"
TEST_DUMMY_CONTRACT_ADDRESS="0xE5b6F5e695BA6E4aeD92B68c4CC8Df1160D69A81"
STARKNET_OPERATOR_ADDRESS="0x2C169DFe5fBbA12957Bdd0Ba47d9CEDbFE260CA7"
ETHEREUM_BLAST_RPC_URL="https://eth-mainnet.public.blastapi.io"
ETHEREUM_BLAST_RPC_URL="https://eth-mainnet.public.blastapi.io"

## Instrumentation
OTEL_SERVICE_NAME="madara_orchestrator"
OTEL_COLLECTOR_ENDPOINT=""
TRACING_LEVEL="info"
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dashboards
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).

## Added

- Telemetry tracing and metrics.
- e2e flow test
- database timestamps
- alerts module.
Expand Down
Loading

0 comments on commit 7b85453

Please sign in to comment.