npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@gati-framework/observability-adapters

v1.1.0

Published

Cloud provider and APM adapters for Gati observability

Downloads

107

Readme

@gati-framework/observability-adapters

Cloud provider and APM adapters for Gati observability framework.

Installation

npm install @gati-framework/observability-adapters

Overview

This package provides adapters for various observability providers, allowing you to integrate Gati with your preferred monitoring stack. All adapters implement the contracts defined in @gati-framework/contracts.

Supported Providers

AWS Stack

  • CloudWatch Metrics - Metrics collection
  • CloudWatch Logs - Centralized logging
  • X-Ray - Distributed tracing

APM Providers

  • Datadog - Full-stack monitoring
  • New Relic - Application performance monitoring

Open Source

  • Jaeger - Distributed tracing
  • Zipkin - Distributed tracing

Error Tracking

  • Sentry - Error tracking and performance monitoring

Quick Start with Presets

AWS Stack

import { createAWSPreset } from '@gati-framework/observability-adapters/presets';

const observability = createAWSPreset({
  region: 'us-east-1',
  namespace: 'my-app',
  logGroupName: '/aws/gati/my-app',
  logStreamName: 'production',
  serviceName: 'my-app',
});

// Use with Gati runtime
const gctx = await GlobalContext.create({
  config,
  metricsProvider: observability.metrics,
  tracingProvider: observability.tracing,
  logger: observability.logging,
});

Datadog Stack

import { createDatadogPreset } from '@gati-framework/observability-adapters/presets';

const observability = createDatadogPreset({
  apiKey: process.env.DD_API_KEY!,
  service: 'my-app',
  env: 'production',
  version: '1.0.0',
});

Self-Hosted (Jaeger)

import { createSelfHostedPreset } from '@gati-framework/observability-adapters/presets';

const observability = createSelfHostedPreset({
  serviceName: 'my-app',
  tracingProvider: 'jaeger',
  jaegerConfig: {
    agentHost: 'localhost',
    agentPort: 6832,
  },
});

Sentry Error Tracking

import { createSentryPreset } from '@gati-framework/observability-adapters/presets';

const observability = createSentryPreset({
  dsn: process.env.SENTRY_DSN!,
  environment: 'production',
  tracesSampleRate: 1.0,
});

Custom Mix & Match

You can mix and match providers for different concerns:

import { 
  CloudWatchMetricsAdapter,
  JaegerAdapter,
  SentryAdapter 
} from '@gati-framework/observability-adapters';

const observability = {
  metrics: new CloudWatchMetricsAdapter({
    region: 'us-east-1',
    namespace: 'my-app',
  }),
  tracing: new JaegerAdapter({
    serviceName: 'my-app',
    agentHost: 'jaeger',
  }),
  logging: new SentryAdapter({
    dsn: process.env.SENTRY_DSN!,
  }),
};

Individual Adapters

AWS CloudWatch Metrics

import { CloudWatchMetricsAdapter } from '@gati-framework/observability-adapters/aws';

const metrics = new CloudWatchMetricsAdapter({
  region: 'us-east-1',
  namespace: 'my-app',
  credentials: {
    accessKeyId: process.env.AWS_ACCESS_KEY_ID!,
    secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY!,
  },
});

metrics.incrementCounter('requests', { endpoint: '/api/users' });
metrics.setGauge('active_connections', 42);
metrics.recordHistogram('request_duration', 123.45);

AWS X-Ray

import { XRayAdapter } from '@gati-framework/observability-adapters/aws';

const tracing = new XRayAdapter({
  serviceName: 'my-app',
  daemonAddress: 'localhost:2000',
  plugins: ['EC2Plugin', 'ECSPlugin'],
});

await tracing.withSpan('database-query', async (span) => {
  span.setAttribute('query', 'SELECT * FROM users');
  // Your code here
});

Datadog APM

import { DatadogAPMAdapter } from '@gati-framework/observability-adapters/apm';

const tracing = new DatadogAPMAdapter({
  service: 'my-app',
  env: 'production',
  version: '1.0.0',
});

Jaeger

import { JaegerAdapter } from '@gati-framework/observability-adapters/oss';

const tracing = new JaegerAdapter({
  serviceName: 'my-app',
  agentHost: 'localhost',
  agentPort: 6832,
  samplerType: 'const',
  samplerParam: 1,
});

Sentry

import { SentryAdapter } from '@gati-framework/observability-adapters/error-tracking';

const sentry = new SentryAdapter({
  dsn: process.env.SENTRY_DSN!,
  environment: 'production',
  release: '[email protected]',
  tracesSampleRate: 1.0,
});

// Use as logger
sentry.error('Something went wrong', { userId: '123' });

// Use as tracing provider
await sentry.withSpan('api-call', async (span) => {
  // Your code here
});

Peer Dependencies

Install only the dependencies you need:

# AWS
npm install @aws-sdk/client-cloudwatch @aws-sdk/client-cloudwatch-logs aws-xray-sdk-core

# Datadog
npm install dd-trace

# New Relic
npm install newrelic

# Jaeger
npm install jaeger-client

# Zipkin
npm install zipkin zipkin-context-cls zipkin-transport-http

# Sentry
npm install @sentry/node @sentry/tracing

License

MIT