🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@syntropika/telemetry

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@syntropika/telemetry

TypeScript/Node.js client for sending product events and OTLP payloads to the Syntropika telemetry service.

latest
npmnpm
Version
0.1.0
Version published
Weekly downloads
2
-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

@syntropika/telemetry client

TypeScript/Node.js client for sending product events and OTLP payloads to the Syntropika telemetry service.

Install

pnpm add @syntropika/telemetry

Create a client

import { createTelemetryClient } from '@syntropika/telemetry'

const telemetry = createTelemetryClient({
  endpoint: 'https://telemetry.syntropika.com',
  apiKey: 'stk_live_xxxxx',
  source: 'workers',    // optional: 'api' | 'workers' | 'web'
  flushInterval: 10000, // optional, defaults to 10000 ms
  maxBatchSize: 50,     // optional, defaults to 50
})

Identify users and track events

telemetry.identify('user_123')

telemetry.track('action.approved', {
  action_type: 'like',
  queue_id: 'q_abc',
  latency_ms: 142,
})

telemetry.track('brief.viewed', {
  brief_id: 'b_xyz',
})

Flush and shutdown

await telemetry.flush()
await telemetry.shutdown()

OTLP helper

import { createOtlpProxy } from '@syntropika/telemetry'

const otlp = createOtlpProxy({
  endpoint: 'https://telemetry.syntropika.com',
  apiKey: 'stk_live_xxxxx',
})

otlp.tracesUrl
otlp.metricsUrl
otlp.logsUrl
otlp.headers

await otlp.sendTraces(payload)

Required API key scopes

  • events:write for events.
  • traces:write, metrics:write, logs:write for OTLP ingestion.

FAQs

Package last updated on 06 Mar 2026

Did you know?

Socket

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.

Install

Related posts