summaryrefslogtreecommitdiff
path: root/opengl-bindings/src/debug.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2026-09-14 12:41:52 +0200
committerHampusM <hampus@hampusmat.com>2026-09-14 12:41:52 +0200
commita0a7516b51c088ce416714eace3ad320ec04a5fb (patch)
tree37336d6dcf78952ae2840442d8ba4e7b7fcd45e5 /opengl-bindings/src/debug.rs
parenta8f7f5d12ea47175dfb361f9b3e7aa9520985d5c (diff)
feat(opengl-bindings): add tracing instrumentation to fns
Diffstat (limited to 'opengl-bindings/src/debug.rs')
-rw-r--r--opengl-bindings/src/debug.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/opengl-bindings/src/debug.rs b/opengl-bindings/src/debug.rs
index 167173f..b842846 100644
--- a/opengl-bindings/src/debug.rs
+++ b/opengl-bindings/src/debug.rs
@@ -7,6 +7,7 @@ use util_macros::FromRepr;
use crate::MaybeCurrentContextWithFns;
+#[tracing::instrument(skip(current_context, cb))]
pub fn set_debug_message_callback(
current_context: &MaybeCurrentContextWithFns,
cb: MessageCallback,
@@ -23,6 +24,7 @@ pub fn set_debug_message_callback(
///
/// # Errors
/// Returns `Err` if `ids` contains too many ids.
+#[tracing::instrument(skip(current_context))]
pub fn set_debug_message_control(
current_context: &MaybeCurrentContextWithFns,
source: Option<MessageSource>,