Skip to content
This repository was archived by the owner on Feb 6, 2026. It is now read-only.

chore: add optional API to make tracing level changes "wait-able"#3280

Merged
si-bors-ng[bot] merged 1 commit intomainfrom
fnicho/telemetry-waitable-tracing-changes
Feb 7, 2024
Merged

chore: add optional API to make tracing level changes "wait-able"#3280
si-bors-ng[bot] merged 1 commit intomainfrom
fnicho/telemetry-waitable-tracing-changes

Conversation

@fnichol
Copy link
Copy Markdown
Contributor

@fnichol fnichol commented Feb 7, 2024

This change adds several *_and_wait() method options to the ApplicationTelemetryClient type. When our services boot up we check the parsed CLI argument for verbosity flags. If there are more than one set then we issue a command to raise the tracing level but prior to this change, this operation was non-blocking/async. That means that the level may not have raised by the time the next line of code executes resulting in potential missing log messages.

This change adds several `*_and_wait()` method options to the
`ApplicationTelemetryClient` type. When our services boot up we check
the parsed CLI argument for verbosity flags. If there are more than one
set then we issue a command to raise the tracing level but prior to this
change, this operation was non-blocking/async. That means that the level
may not have raised by the time the next line of code executes resulting
in potential missing log messages.

Signed-off-by: Fletcher Nichol <fletcher@systeminit.com>
@netlify
Copy link
Copy Markdown

netlify bot commented Feb 7, 2024

Deploy Preview for si-web-app canceled.

Name Link
🔨 Latest commit 28d7e55
🔍 Latest deploy log https://app.netlify.com/sites/si-web-app/deploys/65c3e0647028d200080bdfd2

@github-actions github-actions bot added A-sdf Area: Primary backend API service [Rust] A-veritech Area: Task execution backend service [Rust] A-cyclone Area: Function execution engine [Rust] A-telemetry-rs A-telemetry-application-rs A-council A-pinga A-module-index labels Feb 7, 2024
@fnichol
Copy link
Copy Markdown
Contributor Author

fnichol commented Feb 7, 2024

bors merge

@si-bors-ng
Copy link
Copy Markdown
Contributor

si-bors-ng bot commented Feb 7, 2024

Build succeeded:

@si-bors-ng si-bors-ng bot merged commit a69b546 into main Feb 7, 2024
@si-bors-ng si-bors-ng bot deleted the fnicho/telemetry-waitable-tracing-changes branch February 7, 2024 20:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

A-council A-cyclone Area: Function execution engine [Rust] A-module-index A-pinga A-sdf Area: Primary backend API service [Rust] A-telemetry-application-rs A-telemetry-rs A-veritech Area: Task execution backend service [Rust]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant