-
Notifications
You must be signed in to change notification settings - Fork 11.3k
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
OTLP tracing #14125
OTLP tracing #14125
Changes from all commits
ee9ee17
da0621e
0f294c6
5fc90a6
2d2b05c
6e41e8c
2832a4e
2d0b98c
8897482
c0cdfe9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,10 +58,8 @@ fn main() { | |
config.supported_protocol_versions = Some(SupportedProtocolVersions::SYSTEM_DEFAULT); | ||
|
||
let runtimes = SuiRuntimes::new(&config); | ||
let registry_service = { | ||
let _enter = runtimes.metrics.enter(); | ||
mysten_metrics::start_prometheus_server(config.metrics_address) | ||
}; | ||
let metrics_rt = runtimes.metrics.enter(); | ||
let registry_service = mysten_metrics::start_prometheus_server(config.metrics_address); | ||
let prometheus_registry = registry_service.default_registry(); | ||
|
||
// Initialize logging | ||
|
@@ -73,6 +71,8 @@ fn main() { | |
.with_prom_registry(&prometheus_registry) | ||
.init(); | ||
|
||
drop(metrics_rt); | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are these changes necessary? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes - otherwise when we initialize TelemetryConfig, there is no active tokio runtime, so it can't install the batch exporter. |
||
info!("Sui Node version: {VERSION}"); | ||
info!( | ||
"Supported protocol versions: {:?}", | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a way to disable it too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It disables automatically after the duration expires. I guess it wouldn't hurt to be able to disable it actively in case you set too long a duration by accident.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added a disable route