renamme package

This commit is contained in:
Alex Holovach
2025-10-07 05:41:15 -05:00
parent ff6ede2fb1
commit 0fd8d58d5a
7 changed files with 12 additions and 12 deletions

View File

@@ -1,10 +1,10 @@
# @kubiks/otel-upstash
# @kubiks/otel-upstash-queues
## 1.0.0
### Major Changes
- Initial release of OpenTelemetry instrumentation for Upstash QStash
- Initial release of OpenTelemetry instrumentation for Upstash QStash (Queues)
- Instrumentation for `publishJSON` method
- Support for all QStash request parameters including:
- URL targeting

View File

@@ -1,4 +1,4 @@
# @kubiks/otel-upstash
# @kubiks/otel-upstash-queues
OpenTelemetry instrumentation for the [Upstash QStash](https://upstash.com/docs/qstash) Node.js SDK.
Capture spans for every QStash API call, enrich them with operation metadata,
@@ -7,9 +7,9 @@ and keep an eye on message queue operations from your traces.
## Installation
```bash
npm install @kubiks/otel-upstash
npm install @kubiks/otel-upstash-queues
# or
pnpm add @kubiks/otel-upstash
pnpm add @kubiks/otel-upstash-queues
```
**Peer Dependencies:** `@opentelemetry/api` >= 1.9.0, `@upstash/qstash` >= 2.0.0
@@ -18,7 +18,7 @@ pnpm add @kubiks/otel-upstash
```ts
import { Client } from "@upstash/qstash";
import { instrumentUpstash } from "@kubiks/otel-upstash";
import { instrumentUpstash } from "@kubiks/otel-upstash-queues";
const client = instrumentUpstash(
new Client({ token: process.env.QSTASH_TOKEN! })
@@ -65,7 +65,7 @@ The instrumentation captures message metadata and configuration to help with deb
```ts
import { Client } from "@upstash/qstash";
import { instrumentUpstash } from "@kubiks/otel-upstash";
import { instrumentUpstash } from "@kubiks/otel-upstash-queues";
const client = instrumentUpstash(
new Client({ token: process.env.QSTASH_TOKEN! })
@@ -140,7 +140,7 @@ await client.publishJSON({
// app/actions.ts
"use server";
import { Client } from "@upstash/qstash";
import { instrumentUpstash } from "@kubiks/otel-upstash";
import { instrumentUpstash } from "@kubiks/otel-upstash-queues";
const qstashClient = instrumentUpstash(
new Client({

View File

@@ -1,11 +1,11 @@
{
"name": "@kubiks/otel-upstash",
"name": "@kubiks/otel-upstash-queues",
"version": "1.0.0",
"private": false,
"publishConfig": {
"access": "public"
},
"description": "OpenTelemetry instrumentation for the Upstash QStash Node.js SDK",
"description": "OpenTelemetry instrumentation for the Upstash QStash (Queues) Node.js SDK",
"author": "Kubiks",
"license": "MIT",
"repository": "kubiks-inc/otel",

View File

@@ -7,8 +7,8 @@ import {
} from "@opentelemetry/api";
import type { Client, PublishRequest, PublishResponse } from "@upstash/qstash";
const DEFAULT_TRACER_NAME = "@kubiks/otel-upstash";
const INSTRUMENTED_FLAG = Symbol("kubiksOtelUpstashInstrumented");
const DEFAULT_TRACER_NAME = "@kubiks/otel-upstash-queues";
const INSTRUMENTED_FLAG = Symbol("kubiksOtelUpstashQueuesInstrumented");
// Semantic attribute constants
export const SEMATTRS_MESSAGING_SYSTEM = "messaging.system" as const;