@opentelemetry/instrumentation-lru-memoizer
OpenTelemetry instrumentation for `lru-memoizer` function memoization using lru-cache
Last updated 18 days ago by GitHub Actions .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @opentelemetry/instrumentation-lru-memoizer 
SYNC missed versions from official npm registry.

OpenTelemetry lru-memoizer Instrumentation for Node.js

NPM Published Version Apache License

This module provides automatic instrumentation for the lru-memoizer module, which may be loaded using the @opentelemetry/sdk-trace-node package and is included in the @opentelemetry/auto-instrumentations-node bundle.

If total installation size is not constrained, it is recommended to use the @opentelemetry/auto-instrumentations-node bundle with @opentelemetry/sdk-node for the most seamless instrumentation experience.

Compatible with OpenTelemetry JS API and SDK 1.0+.

Installation

npm install --save @opentelemetry/instrumentation-lru-memoizer

Supported Versions

Usage

This instrumentation does not produce any telemetry data. It only bind the caller context to callbacks so downstream operations are recorded with the right context (traceId / parentSpanId / baggage / etc). The lru-memoizer package is a dependency for other packages such as jwks-rsa

To load a specific plugin, specify it in the registerInstrumentations's configuration:

const { NodeTracerProvider } = require('@opentelemetry/sdk-trace-node');
const { LruMemoizerInstrumentation } = require('@opentelemetry/instrumentation-lru-memoizer');
const { registerInstrumentations } = require('@opentelemetry/instrumentation');

const provider = new NodeTracerProvider();
provider.register();

registerInstrumentations({
  instrumentations: [
    new LruMemoizerInstrumentation(),
  ],
})

Semantic Conventions

This package does not currently generate any attributes from semantic conventions.

Useful links

License

Apache 2.0 - See LICENSE for more information.

Current Tags

  • 0.58.0                                ...           latest (18 days ago)

43 Versions

  • 0.58.0                                ...           18 days ago
  • 0.57.0                                ...           a month ago
  • 0.56.0                                ...           2 months ago
  • 0.55.0                                ...           3 months ago
  • 0.54.0                                ...           3 months ago
  • 0.53.1                                ...           4 months ago
  • 0.53.0                                ...           5 months ago
  • 0.52.0                                ...           6 months ago
  • 0.51.0                                ...           6 months ago
  • 0.50.3                                ...           6 months ago
  • 0.50.2                                ...           6 months ago
  • 0.50.0                                ...           7 months ago
  • 0.49.0                                ...           7 months ago
  • 0.48.0                                ...           9 months ago
  • 0.47.0                                ...           10 months ago
  • 0.46.0                                ...           a year ago
  • 0.45.0                                ...           a year ago
  • 0.44.1                                ...           a year ago
  • 0.44.0                                ...           a year ago
  • 0.43.0                                ...           a year ago
  • 0.42.0                                ...           a year ago
  • 0.41.0                                ...           a year ago
  • 0.40.0                                ...           2 years ago
  • 0.39.0                                ...           2 years ago
  • 0.38.0                                ...           2 years ago
  • 0.37.0                                ...           2 years ago
  • 0.36.0                                ...           2 years ago
  • 0.35.0                                ...           2 years ago
  • 0.34.0                                ...           2 years ago
  • 0.33.5                                ...           2 years ago
  • 0.33.4                                ...           2 years ago
  • 0.33.3                                ...           2 years ago
  • 0.33.2                                ...           3 years ago
  • 0.33.1                                ...           3 years ago
  • 0.33.0                                ...           3 years ago
  • 0.32.4                                ...           3 years ago
  • 0.32.3                                ...           3 years ago
  • 0.32.2                                ...           3 years ago
  • 0.32.1                                ...           3 years ago
  • 0.32.0                                ...           3 years ago
  • 0.31.0                                ...           4 years ago
  • 0.30.0                                ...           4 years ago
  • 0.29.0                                ...           4 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 40
Dependencies (1)
Dev Dependencies (3)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |