@principal-ai/storybook-addon-otel 0.3.1 → 0.3.2

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/collector.js +9 -0
  2. package/package.json +6 -1
package/collector.js ADDED
@@ -0,0 +1,9 @@
1
+ /**
2
+ * TelemetryCollector Export (for manual instrumentation in stories)
3
+ *
4
+ * This file exports only the collector without the decorator registration,
5
+ * preventing the "loaded twice" issue when importing in stories.
6
+ */
7
+
8
+ // Re-export the collector from the compiled version
9
+ export { TelemetryCollector } from './dist/collector.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@principal-ai/storybook-addon-otel",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "Storybook addon for capturing and visualizing OpenTelemetry data from story interactions",
5
5
  "main": "preset.js",
6
6
  "files": [
@@ -15,6 +15,7 @@
15
15
  "preset.js",
16
16
  "preview.js",
17
17
  "manager.js",
18
+ "collector.js",
18
19
  "README.md"
19
20
  ],
20
21
  "exports": {
@@ -30,6 +31,10 @@
30
31
  "./manager": {
31
32
  "default": "./manager.js"
32
33
  },
34
+ "./collector": {
35
+ "types": "./dist/collector.d.ts",
36
+ "default": "./collector.js"
37
+ },
33
38
  "./package.json": "./package.json"
34
39
  },
35
40
  "scripts": {