@bentocache/otel
v0.1.2
Published
OpenTelemetry instrumentation for Bentocache
Maintainers
Readme
@bentocache/otel
Official OpenTelemetry instrumentation for Bentocache.
Install
pnpm add @bentocache/otelUsage
import { BentoCacheInstrumentation } from '@bentocache/otel'
const instrumentation = new BentoCacheInstrumentation({
requireParentSpan: true,
includeKeys: false,
suppressInternalOperations: true,
})Options
requireParentSpan(default:true) Only create spans when a parent span existsincludeKeys(default:false) Include cache keys in span attributeskeySanitizerSanitize keys before adding them as attributesspanNameCustom span name factoryspanNamePrefix(default:cache) Prefix for default span namessuppressInternalOperations(default:true) Suppress internal L2/bus operations
