Skip to content

Commit

Permalink
TRACING-4435 added some more
Browse files Browse the repository at this point in the history
  • Loading branch information
yash-sumo committed Oct 22, 2024
1 parent f764248 commit 892a63e
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,16 +90,33 @@ class MyHttpInstrumentation extends HttpInstrumentation {

enable() {
// No custom logic
super.enable(); // Call the parent enable if needed
}

disable() {
// No custom logic
super.disable(); // Call the parent disable if needed
}

setConfig(config: any) {
// Optionally, implement or call the parent method
// Call the parent method
super.setConfig(config);
}

getConfig() {
// Return an empty object or the parent's config
return super.getConfig ? super.getConfig() : {}; // Adjust based on your needs
}

setTracerProvider(tracerProvider: any) {
// Call the parent method if needed
super.setTracerProvider(tracerProvider);
}

setMeterProvider(meterProvider: any) {
// Call the parent method if needed
super.setMeterProvider(meterProvider);
}
}

const useWindow = typeof window === 'object' && window != null;
Expand Down

0 comments on commit 892a63e

Please sign in to comment.