@forinda/kickjs-otel 1.2.12 → 1.2.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +59 -0
  2. package/package.json +3 -3
package/README.md ADDED
@@ -0,0 +1,59 @@
1
+ # @forinda/kickjs-otel
2
+
3
+ OpenTelemetry adapter for KickJS — automatic tracing, metrics, and export to any OTel backend.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ # Using the KickJS CLI (recommended — auto-installs peer dependencies)
9
+ kick add otel
10
+
11
+ # Manual install
12
+ pnpm add @forinda/kickjs-otel @opentelemetry/api @opentelemetry/semantic-conventions
13
+ # Optional SDK packages
14
+ pnpm add @opentelemetry/sdk-node @opentelemetry/sdk-trace-base @opentelemetry/sdk-metrics
15
+ ```
16
+
17
+ ## Features
18
+
19
+ - `OtelAdapter` — lifecycle adapter that instruments requests with spans and metrics
20
+ - Works with any OpenTelemetry-compatible backend (Jaeger, Grafana Tempo, Datadog, etc.)
21
+ - Zero-config console exporter for development
22
+
23
+ ## Quick Example
24
+
25
+ ```typescript
26
+ import { OtelAdapter } from '@forinda/kickjs-otel'
27
+
28
+ bootstrap({
29
+ modules,
30
+ adapters: [
31
+ new OtelAdapter({
32
+ serviceName: 'my-api',
33
+ enabled: true,
34
+ }),
35
+ ],
36
+ })
37
+ ```
38
+
39
+ For production, initialize the OTel SDK before bootstrap:
40
+
41
+ ```typescript
42
+ import { NodeSDK } from '@opentelemetry/sdk-node'
43
+ import { OTLPTraceExporter } from '@opentelemetry/exporter-trace-otlp-http'
44
+
45
+ const sdk = new NodeSDK({
46
+ traceExporter: new OTLPTraceExporter({
47
+ url: 'http://localhost:4318/v1/traces',
48
+ }),
49
+ })
50
+ sdk.start()
51
+ ```
52
+
53
+ ## Documentation
54
+
55
+ [Full documentation](https://forinda.github.io/kick-js/)
56
+
57
+ ## License
58
+
59
+ MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forinda/kickjs-otel",
3
- "version": "1.2.12",
3
+ "version": "1.2.13",
4
4
  "description": "OpenTelemetry adapter for KickJS — automatic tracing, metrics, and export to any OTel backend",
5
5
  "keywords": [
6
6
  "kickjs",
@@ -33,8 +33,8 @@
33
33
  ],
34
34
  "dependencies": {
35
35
  "reflect-metadata": "^0.2.2",
36
- "@forinda/kickjs-core": "1.2.12",
37
- "@forinda/kickjs-http": "1.2.12"
36
+ "@forinda/kickjs-core": "1.2.13",
37
+ "@forinda/kickjs-http": "1.2.13"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "@opentelemetry/api": ">=1.4.0",