
Research
Shai-Hulud Descends to Hades: Miasma Worm Campaign Spreads with New PyPI Wave
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.
@fastify/otel
Advanced tools
OpenTelemetry auto-instrumentation library.
npm i @fastify/otel
@fastify/otel works as a metric creator as well as application performance monitor for your Fastify application.
It must be configured before defining routes and other plugins in order to cover the most of your Fastify server.
onRequestpreParsingpreValidationpreHandlerpreSerializationonSendonResponseonErrorExample:
// ... in your OTEL setup
const FastifyOtelInstrumentation = require('@fastify/otel');
// If serverName is not provided, it will fallback to OTEL_SERVICE_NAME
// as per https://opentelemetry.io/docs/languages/sdk-configuration/general/.
const fastifyOtelInstrumentation = new FastifyOtelInstrumentation({ servername: '<yourCustomApplicationName>' });
fastifyOtelInstrumentation.setTracerProvider(provider)
module.exports = { fastifyOtelInstrumentation }
// ... in your Fastify definition
const { fastifyOtelInstrumentation } = require('./otel.js');
const Fastify = require('fastify');
const app = fastify();
// It is necessary to await for its register as it requires to be able
// to intercept all route definitions
await app.register(fastifyOtelInstrumentation.plugin());
// automatically all your routes will be instrumented
app.get('/', () => 'hello world')
// as well as your instance level hooks.
app.addHook('onError', () => /* do something */)
// you can also scope your instrumentation to only be enabled on a sub context
// of your application
app.register((instance, opts, done) => {
instance.register(fastifyOtelInstrumentation.plugin());
// If only enabled in your encapsulated context
// the parent context won't be instrumented
app.get('/', () => 'hello world')
}, { prefix: '/nested' })
The plugin can be automatically registered with registerOnInitialization option set to true.
In this case, it is necessary to await fastify instance.
// ... in your OTEL setup
const fastifyOtelInstrumentation = new FastifyOtelInstrumentation({ registerOnInitialization: true });
// ... in your Fastify definition
const Fastify = require('fastify');
const app = await fastify();
Notes:
- This instrumentation requires
@opentelemetry/instrumentation-httpto be able to propagate the traces all the way back to upstream
- The HTTP instrumentation might cover all your routes although
@fastify/oteljust covers a subset of your application
For more information about OpenTelemetry, please refer to the OpenTelemetry JavaScript documentation.
Licensed under MIT.
FAQs
Official Fastify OpenTelemetry Instrumentation
The npm package @fastify/otel receives a total of 4,728,713 weekly downloads. As such, @fastify/otel popularity was classified as popular.
We found that @fastify/otel demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 16 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.

Security News
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.