Skip to content

Commit

Permalink
improve tracing coverage (#131)
Browse files Browse the repository at this point in the history
* refactor(agent): add tracing to expensive calls

* skip keypair for tracing

* add more traces to oracle state

* precommit

* remove unnecessary traces

* add opentelemetry exporter

* add more instruments

* add more instruments

* address comments

* update config

* address comments

* make opentelemetry config optional

* bump minor version

---------

Co-authored-by: Reisen <[email protected]>
  • Loading branch information
cctdaniel and Reisen authored Jul 17, 2024
1 parent 1edcc34 commit 38c45bb
Show file tree
Hide file tree
Showing 21 changed files with 501 additions and 44 deletions.
286 changes: 285 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pyth-agent"
version = "2.9.0"
version = "2.10.0"
edition = "2021"

[[bin]]
Expand Down Expand Up @@ -52,6 +52,10 @@ winnow = "0.6.5"
proptest = "1.4.0"
tracing = { version = "0.1.40", features = ["log"] }
tracing-subscriber = { version = "0.3.18", features = ["env-filter", "json"] }
tracing-opentelemetry = "0.24.0"
opentelemetry = "0.23.0"
opentelemetry_sdk = { version = "0.23.0", features = ["rt-tokio"]}
opentelemetry-otlp = { version = "0.16.0" }

[dev-dependencies]
tokio-util = { version = "0.7.10", features = ["full"] }
Expand Down
Loading

0 comments on commit 38c45bb

Please sign in to comment.