Skip to content

improve tracing coverage #131

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Jul 17, 2024
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
284 changes: 284 additions & 0 deletions Cargo.lock

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

4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
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
9 changes: 9 additions & 0 deletions config/config.sample.pythnet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,12 @@ exporter.maximum_compute_unit_price_micro_lamports = 100000
# Note that this doesn't affect the rate at which transactions are published:
# this is soley a backwards-compatibility API feature.
notify_price_sched_interval_duration = "400ms"

# Configuration for OpenTelemetry
[opentelemetry]

# Timeout in seconds for the OpenTelemetry exporter
exporter_timeout_secs = 3

# Endpoint URL for the OpenTelemetry exporter
exporter_endpoint = "http://127.0.0.1:4317"
Loading
Loading