@powerlines/plugin-open-telemetry 0.1.168 → 0.1.170

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.
@@ -3,10 +3,10 @@ const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
3
3
  let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
4
4
  let _alloy_js_core = require("@alloy-js/core");
5
5
  let _alloy_js_typescript = require("@alloy-js/typescript");
6
+ let _power_plant_alloy_js_core_components_spacing = require("@power-plant/alloy-js/core/components/spacing");
7
+ let _power_plant_alloy_js_typescript_components_tsdoc = require("@power-plant/alloy-js/typescript/components/tsdoc");
6
8
  let _powerlines_plugin_alloy_core = require("@powerlines/plugin-alloy/core");
7
- let _powerlines_plugin_alloy_core_components_spacing = require("@powerlines/plugin-alloy/core/components/spacing");
8
9
  let _powerlines_plugin_alloy_typescript_components_builtin_file = require("@powerlines/plugin-alloy/typescript/components/builtin-file");
9
- let _powerlines_plugin_alloy_typescript_components_tsdoc = require("@powerlines/plugin-alloy/typescript/components/tsdoc");
10
10
  let defu = require("defu");
11
11
  defu = require_runtime.__toESM(defu, 1);
12
12
 
@@ -102,23 +102,23 @@ function TraceBuiltin(props) {
102
102
  builtinImports: { env: ["env"] },
103
103
  get children() {
104
104
  return [
105
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, {
105
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDoc, {
106
106
  heading: "Configuration for the OTLP HTTP trace exporters.",
107
107
  get children() {
108
- return [(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocParam, {
108
+ return [(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDocParam, {
109
109
  name: "url",
110
110
  children: `The URL of the OTLP collector endpoint. Defaults to http://localhost:4318/v1/traces.`
111
- }), (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocParam, {
111
+ }), (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDocParam, {
112
112
  name: "headers",
113
113
  children: `Additional HTTP headers to send with each export request.`
114
114
  })];
115
115
  }
116
116
  }),
117
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
118
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, {
117
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core_components_spacing.Spacing, {}),
118
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDoc, {
119
119
  heading: "OTLP trace exporter using the `http/json` protocol. Compatible with the Edge runtime. Mirrors `OTLPHttpJsonTraceExporter` from `@vercel/otel`.",
120
120
  get children() {
121
- return (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocParam, {
121
+ return (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDocParam, {
122
122
  name: "config",
123
123
  children: `Optional exporter configuration (url, headers).`
124
124
  });
@@ -147,11 +147,11 @@ export class OTLPHttpJsonTraceExporter implements SpanExporter {
147
147
  return this.impl.forceFlush?.() ?? Promise.resolve();
148
148
  }
149
149
  }`,
150
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
151
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, {
150
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core_components_spacing.Spacing, {}),
151
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDoc, {
152
152
  heading: "OTLP trace exporter using the `http/protobuf` protocol. Compatible with the Edge runtime. Mirrors `OTLPHttpProtoTraceExporter` from `@vercel/otel`.",
153
153
  get children() {
154
- return (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocParam, {
154
+ return (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDocParam, {
155
155
  name: "config",
156
156
  children: `Optional exporter configuration (url, headers). The OTLP collector must support the protobuf encoding.`
157
157
  });
@@ -183,42 +183,42 @@ export class OTLPHttpProtoTraceExporter implements SpanExporter {
183
183
  return this.impl.forceFlush?.() ?? Promise.resolve();
184
184
  }
185
185
  }`,
186
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
187
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, {
186
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core_components_spacing.Spacing, {}),
187
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDoc, {
188
188
  heading: "OpenTelemetry SDK configuration. Mirrors the `@vercel/otel` `Configuration` interface.",
189
189
  get children() {
190
190
  return [
191
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocParam, {
191
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDocParam, {
192
192
  name: "serviceName",
193
193
  children: `The name of your service. Can be overridden by the OTEL_SERVICE_NAME environment variable.`
194
194
  }),
195
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocParam, {
195
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDocParam, {
196
196
  name: "attributes",
197
197
  children: `Additional resource attributes to apply to all spans.`
198
198
  }),
199
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocParam, {
199
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDocParam, {
200
200
  name: "propagators",
201
201
  children: `Propagators for extending inbound and outbound contexts. Defaults to W3C Trace Context + Baggage.`
202
202
  }),
203
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocParam, {
203
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDocParam, {
204
204
  name: "traceSampler",
205
205
  children: `Sampler to decide which requests to trace. Defaults to "always_on".`
206
206
  }),
207
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocParam, {
207
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDocParam, {
208
208
  name: "spanProcessors",
209
209
  children: `Span processors to use. Defaults to "auto" which auto-configures based on environment variables.`
210
210
  }),
211
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocParam, {
211
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDocParam, {
212
212
  name: "traceExporter",
213
213
  children: `Custom trace exporter. Defaults to "auto" which selects the best exporter for the environment.`
214
214
  })
215
215
  ];
216
216
  }
217
217
  }),
218
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, {
218
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDoc, {
219
219
  heading: "Registers the OpenTelemetry SDK with the specified service name or configuration object. Should be called in `instrumentation.ts` before any other code.",
220
220
  get children() {
221
- return (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocParam, {
221
+ return (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDocParam, {
222
222
  name: "optionsOrServiceName",
223
223
  children: `Either a service name string or a full Configuration object.`
224
224
  });
@@ -418,14 +418,14 @@ export class OTLPHttpProtoTraceExporter implements SpanExporter {
418
418
  diag.info("@powerlines/plugin-open-telemetry: started", serviceName, env.RUNTIME);`;
419
419
  }
420
420
  }),
421
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
422
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDoc, {
421
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core_components_spacing.Spacing, {}),
422
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDoc, {
423
423
  heading: "Returns a named tracer from the global OpenTelemetry TracerProvider. Wraps `trace.getTracer()` for convenience.",
424
424
  get children() {
425
- return [(0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocParam, {
425
+ return [(0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDocParam, {
426
426
  name: "name",
427
427
  children: `The name of the tracer (typically the instrumentation library name or component name).`
428
- }), (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_tsdoc.TSDocParam, {
428
+ }), (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_typescript_components_tsdoc.TSDocParam, {
429
429
  name: "version",
430
430
  children: `Optional version of the instrumentation library.`
431
431
  })];
@@ -445,7 +445,7 @@ export class OTLPHttpProtoTraceExporter implements SpanExporter {
445
445
  returnType: "ReturnType<typeof trace.getTracer>",
446
446
  children: _alloy_js_core.code`return trace.getTracer(name, version);`
447
447
  }),
448
- (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_core_components_spacing.Spacing, {}),
448
+ (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core_components_spacing.Spacing, {}),
449
449
  (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
450
450
  get when() {
451
451
  return Boolean(children);
@@ -1,10 +1,10 @@
1
1
  import { createComponent, mergeProps } from "@alloy-js/core/jsx-runtime";
2
2
  import { Show, code, splitProps } from "@alloy-js/core";
3
3
  import { FunctionDeclaration } from "@alloy-js/typescript";
4
+ import { Spacing } from "@power-plant/alloy-js/core/components/spacing";
5
+ import { TSDoc, TSDocParam } from "@power-plant/alloy-js/typescript/components/tsdoc";
4
6
  import { usePowerlines } from "@powerlines/plugin-alloy/core";
5
- import { Spacing } from "@powerlines/plugin-alloy/core/components/spacing";
6
7
  import { BuiltinFile } from "@powerlines/plugin-alloy/typescript/components/builtin-file";
7
- import { TSDoc, TSDocParam } from "@powerlines/plugin-alloy/typescript/components/tsdoc";
8
8
  import defu from "defu";
9
9
 
10
10
  //#region src/components/trace-builtin.tsx
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-open-telemetry",
3
- "version": "0.1.168",
3
+ "version": "0.1.170",
4
4
  "private": false,
5
5
  "description": "A package containing a Powerlines plugin for registering OpenTelemetry integration at runtime.",
6
6
  "keywords": [
@@ -170,36 +170,37 @@
170
170
  "@alloy-js/json": "^0.23.0",
171
171
  "@alloy-js/markdown": "^0.23.0",
172
172
  "@alloy-js/typescript": "^0.23.0",
173
- "@powerlines/plugin-alloy": "0.26.236",
174
- "@powerlines/plugin-automd": "0.1.604",
175
- "@powerlines/plugin-plugin": "0.12.555",
176
- "@storm-software/config-tools": "^1.190.92",
177
- "@stryke/convert": "^0.7.26",
178
- "@stryke/env": "^0.20.113",
179
- "@stryke/fs": "^0.33.96",
180
- "@stryke/json": "^0.15.19",
181
- "@stryke/path": "^0.29.22",
182
- "@stryke/string-format": "^0.17.37",
183
- "@stryke/type-checks": "^0.6.28",
184
- "@stryke/types": "^0.12.23",
173
+ "@power-plant/alloy-js": "^0.0.20",
174
+ "@powerlines/plugin-alloy": "^0.26.238",
175
+ "@powerlines/plugin-automd": "^0.1.606",
176
+ "@powerlines/plugin-plugin": "^0.12.557",
177
+ "@storm-software/config-tools": "^1.190.109",
178
+ "@stryke/convert": "^0.7.27",
179
+ "@stryke/env": "^0.20.114",
180
+ "@stryke/fs": "^0.33.97",
181
+ "@stryke/json": "^0.15.20",
182
+ "@stryke/path": "^0.29.23",
183
+ "@stryke/string-format": "^0.17.38",
184
+ "@stryke/type-checks": "^0.6.29",
185
+ "@stryke/types": "^0.12.24",
185
186
  "automd": "^0.4.3",
186
187
  "c12": "^3.3.4",
187
188
  "defu": "^6.1.7",
188
- "powerlines": "0.47.143"
189
+ "powerlines": "^0.47.145"
189
190
  },
190
191
  "devDependencies": {
191
192
  "@opentelemetry/api": "^1.9.1",
192
193
  "@opentelemetry/api-logs": "^0.220.0",
193
- "@opentelemetry/context-async-hooks": "^2.9.0",
194
+ "@opentelemetry/context-async-hooks": "^2.10.0",
194
195
  "@opentelemetry/core": "^1.30.1",
195
196
  "@opentelemetry/exporter-trace-otlp-http": "^0.220.0",
196
197
  "@opentelemetry/instrumentation": "^0.220.0",
197
198
  "@opentelemetry/otlp-exporter-base": "^0.205.0",
198
199
  "@opentelemetry/otlp-transformer": "^0.205.0",
199
- "@opentelemetry/resources": "^2.9.0",
200
+ "@opentelemetry/resources": "^2.10.0",
200
201
  "@opentelemetry/sdk-logs": "^0.220.0",
201
- "@opentelemetry/sdk-metrics": "^2.9.0",
202
- "@opentelemetry/sdk-trace-base": "^2.9.0",
202
+ "@opentelemetry/sdk-metrics": "^2.10.0",
203
+ "@opentelemetry/sdk-trace-base": "^2.10.0",
203
204
  "@types/node": "^25.9.5",
204
205
  "protobufjs": "^7.6.5"
205
206
  },
@@ -216,5 +217,5 @@
216
217
  "@opentelemetry/sdk-trace-base": ">=2.0.0 <3.0.0"
217
218
  },
218
219
  "publishConfig": { "access": "public" },
219
- "gitHead": "cea2b02d3fb6556ff2e53576b6a17787b4e28d67"
220
+ "gitHead": "d81170b608c0b80e7726e129c3edd1b7b6ca2605"
220
221
  }