Skip to content

v1.0.0

Latest

Choose a tag to compare

@itssimon itssimon released this 21 Oct 06:10
34a96ec

The Apitally JavaScript SDK has been rebuilt as an OpenTelemetry distribution. It now sends metrics, logs, and traces using OTLP and configures OpenTelemetry automatically. See the release announcement for more details.

This release includes breaking changes to setup and configuration. If you're upgrading from v0, follow the migration guide.

Added

  • Sampling for request logs and traces through sampleRate and the sampleOnRequest / sampleOnResponse callbacks.
  • A maskLogRecord callback to redact sensitive values or drop individual application log records before export.
  • Custom request attributes through setRequestAttribute(). These add application context to traces and can be used in sampling and body-masking callbacks.
  • Custom attributes for API consumers, alongside their identifier, name, and group.
  • instrument() and span() helpers to trace individual functions and blocks of code.

Changed

  • A shared useApitally() setup function works across many supported frameworks.
  • setConsumer() now provides a consistent way to identify API consumers across all supported frameworks.
  • Write tokens replace client IDs for authentication. Tokens can be created and revoked in the Apitally dashboard.
  • Request logging, tracing, and application log capture are now enabled by default.