mirror of
https://github.com/denoland/deno.git
synced 2024-11-24 15:19:26 -05:00
aa546189be
Initial import of OTEL code supporting tracing. Metrics soon to come. Implements APIs for https://jsr.io/@deno/otel so that code using OpenTelemetry.js just works tm. There is still a lot of work to do with configuration and adding built-in tracing to core APIs, which will come in followup PRs. --------- Co-authored-by: Luca Casonato <hello@lcas.dev>
23 lines
545 B
Rust
23 lines
545 B
Rust
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
|
|
pub mod bootstrap;
|
|
pub mod fs_events;
|
|
pub mod http;
|
|
pub mod os;
|
|
pub mod otel;
|
|
pub mod permissions;
|
|
pub mod process;
|
|
pub mod runtime;
|
|
pub mod signal;
|
|
pub mod tty;
|
|
pub mod web_worker;
|
|
pub mod worker_host;
|
|
|
|
use deno_core::OpState;
|
|
|
|
/// Helper for checking unstable features. Used for sync ops.
|
|
pub fn check_unstable(state: &OpState, feature: &str, api_name: &str) {
|
|
state.feature_checker.check_or_exit(feature, api_name);
|
|
}
|
|
|
|
pub struct TestingFeaturesEnabled(pub bool);
|