diff --git a/index.js b/index.js index fd50c4d..df860ad 100644 --- a/index.js +++ b/index.js @@ -2,7 +2,6 @@ const b4a = require('b4a') const c = require('compact-encoding') const queueTick = require('queue-tick') const safetyCatch = require('safety-catch') -const { createTracer } = require('hypertrace') const unslab = require('unslab') const MAX_BUFFERED = 32768 @@ -11,8 +10,6 @@ const MAX_BATCH = 8 * 1024 * 1024 class Channel { constructor (mux, info, userData, protocol, aliases, id, handshake, messages, onopen, onclose, ondestroy, ondrain) { - this.tracer = createTracer(this) - this.userData = userData this.protocol = protocol this.aliases = aliases @@ -228,23 +225,11 @@ class Channel { encoding, onmessage, recv (state, session) { - s.tracer.trace('recv', { - protocol: s.protocol, - id: s.id, - type - }) - return session._track(m.onmessage(encoding.decode(state), session)) }, send (m, session = s) { if (session.closed === true) return false - s.tracer.trace('send', { - protocol: s.protocol, - id: s.id, - type - }) - const mux = session._mux const state = { buffer: null, start: 0, end: typeLen } diff --git a/package.json b/package.json index 122b95f..9023f30 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,6 @@ "dependencies": { "b4a": "^1.3.1", "compact-encoding": "^2.5.1", - "hypertrace": "^1.4.2", "queue-tick": "^1.0.0", "safety-catch": "^1.0.1", "unslab": "^1.3.0"