UNPKG

@ogcio/o11y-sdk-node

Version:

Opentelemetry standard instrumentation SDK for NodeJS based project

18 lines (17 loc) 469 B
export class BasicRedactor { process(value, source, kind) { const { redactedValue, context } = this.redact(value, source, kind); this.exportMetrics(context, source, kind); return redactedValue; } redact(_value, _source, _kind) { // no-op by default return { redactedValue: _value, context: {}, }; } exportMetrics(_context, _source, _kind) { // no-op by default } }