Skip to content

Experimental OpenTelemetry Instrumentation

Latest

Choose a tag to compare

@Julien-R44 Julien-R44 released this 23 Mar 13:59
· 3 commits to main since this release

Features

OpenTelemetry Instrumentation (experimental)

@boringnode/queue now ships with built-in OpenTelemetry instrumentation that creates PRODUCER spans for job dispatch and CONSUMER spans for job execution, following OTel messaging semantic conventions.

import { QueueInstrumentation } from '@boringnode/queue/otel'
import * as boringqueue from '@boringnode/queue'

const instrumentation = new QueueInstrumentation({
  messagingSystem: 'boringqueue',
  executionSpanLinkMode: 'link', // or 'parent'
})

instrumentation.enable()
instrumentation.manuallyRegister(boringqueue)

Warning

This is experimental — the API may change in future releases.

Scheduler: custom payload with manual trigger

Schedule.trigger() now accepts an optional payload, allowing you to pass custom data when manually triggering a scheduled job.

What's Changed

  • feat(scheduler): allow custom payload with manual trigger by @kerwanp in #7
  • feat: add experimental otel instrumentation by @Julien-R44 in #8

New Contributors

Full Changelog: v0.5.0...v0.5.1