@powerlines/plugin-open-telemetry 0.1.52 → 0.1.53
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.
- package/dist/components/trace-builtin.d.cts +1 -2
- package/dist/components/trace-builtin.d.cts.map +1 -1
- package/dist/components/trace-builtin.d.mts +1 -2
- package/dist/components/trace-builtin.d.mts.map +1 -1
- package/dist/components/trace-builtin.mjs.map +1 -1
- package/dist/helpers/automd-generator.d.cts +1 -2
- package/dist/helpers/automd-generator.d.cts.map +1 -1
- package/dist/helpers/automd-generator.d.mts +1 -2
- package/dist/helpers/automd-generator.d.mts.map +1 -1
- package/dist/helpers/automd-generator.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/types/env.d.cts.map +1 -1
- package/dist/types/env.d.mts.map +1 -1
- package/dist/types/plugin.d.cts.map +1 -1
- package/dist/types/plugin.d.mts.map +1 -1
- package/package.json +6 -6
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as _$_alloy_js_core0 from "@alloy-js/core";
|
|
2
1
|
import { BuiltinFileProps } from "@powerlines/plugin-alloy/typescript/components/builtin-file";
|
|
3
2
|
|
|
4
3
|
//#region src/components/trace-builtin.d.ts
|
|
@@ -6,7 +5,7 @@ type TraceBuiltinProps = Omit<BuiltinFileProps, "id">;
|
|
|
6
5
|
/**
|
|
7
6
|
* Generates the trace module for the Powerlines project.
|
|
8
7
|
*/
|
|
9
|
-
declare function TraceBuiltin(props: TraceBuiltinProps):
|
|
8
|
+
declare function TraceBuiltin(props: TraceBuiltinProps): import("@alloy-js/core").Children;
|
|
10
9
|
//#endregion
|
|
11
10
|
export { TraceBuiltin, TraceBuiltinProps };
|
|
12
11
|
//# sourceMappingURL=trace-builtin.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trace-builtin.d.cts","names":[],"sources":["../../src/components/trace-builtin.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"trace-builtin.d.cts","names":[],"sources":["../../src/components/trace-builtin.tsx"],"mappings":";;;KAiCY,iBAAA,GAAoB,IAAI,CAAC,gBAAA;;AAArC;;iBAKgB,YAAA,CAAa,KAAA,EAAO,iBAAiB,4BAAA,QAAA"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as _$_alloy_js_core0 from "@alloy-js/core";
|
|
2
1
|
import { BuiltinFileProps } from "@powerlines/plugin-alloy/typescript/components/builtin-file";
|
|
3
2
|
|
|
4
3
|
//#region src/components/trace-builtin.d.ts
|
|
@@ -6,7 +5,7 @@ type TraceBuiltinProps = Omit<BuiltinFileProps, "id">;
|
|
|
6
5
|
/**
|
|
7
6
|
* Generates the trace module for the Powerlines project.
|
|
8
7
|
*/
|
|
9
|
-
declare function TraceBuiltin(props: TraceBuiltinProps):
|
|
8
|
+
declare function TraceBuiltin(props: TraceBuiltinProps): import("@alloy-js/core").Children;
|
|
10
9
|
//#endregion
|
|
11
10
|
export { TraceBuiltin, TraceBuiltinProps };
|
|
12
11
|
//# sourceMappingURL=trace-builtin.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trace-builtin.d.mts","names":[],"sources":["../../src/components/trace-builtin.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"trace-builtin.d.mts","names":[],"sources":["../../src/components/trace-builtin.tsx"],"mappings":";;;KAiCY,iBAAA,GAAoB,IAAI,CAAC,gBAAA;;AAArC;;iBAKgB,YAAA,CAAa,KAAA,EAAO,iBAAiB,4BAAA,QAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trace-builtin.mjs","names":[],"sources":["../../src/components/trace-builtin.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { code, Show, splitProps } from \"@alloy-js/core\";\nimport { FunctionDeclaration } from \"@alloy-js/typescript\";\nimport { usePowerlines } from \"@powerlines/plugin-alloy/core\";\nimport { Spacing } from \"@powerlines/plugin-alloy/core/components/spacing\";\nimport {\n BuiltinFile,\n BuiltinFileProps\n} from \"@powerlines/plugin-alloy/typescript/components/builtin-file\";\nimport {\n TSDoc,\n TSDocParam\n} from \"@powerlines/plugin-alloy/typescript/components/tsdoc\";\nimport defu from \"defu\";\nimport { OpenTelemetryPluginContext } from \"../types\";\n\nexport type TraceBuiltinProps = Omit<BuiltinFileProps, \"id\">;\n\n/**\n * Generates the trace module for the Powerlines project.\n */\nexport function TraceBuiltin(props: TraceBuiltinProps) {\n const [{ children, imports }, rest] = splitProps(props, [\n \"children\",\n \"imports\"\n ]);\n\n const context = usePowerlines<OpenTelemetryPluginContext>();\n\n return (\n <BuiltinFile\n id=\"trace\"\n description=\"The runtime OpenTelemetry trace module provides registerOTel and getTracer helpers that mirror the @vercel/otel API.\"\n {...rest}\n imports={defu(\n {\n \"@opentelemetry/api\": [\n { name: \"trace\" },\n { name: \"diag\" },\n { name: \"propagation\" },\n { name: \"context\" },\n { name: \"metrics\" },\n { name: \"DiagConsoleLogger\" },\n { name: \"DiagLogLevel\" },\n { name: \"ContextManager\", type: true },\n { name: \"TextMapPropagator\", type: true },\n { name: \"Attributes\", type: true }\n ],\n \"@opentelemetry/api-logs\": [{ name: \"logs\" }],\n \"@opentelemetry/context-async-hooks\": [\n { name: \"AsyncLocalStorageContextManager\" }\n ],\n \"@opentelemetry/core\": [\n { name: \"CompositePropagator\" },\n { name: \"ExportResult\", type: true },\n { name: \"W3CBaggagePropagator\" },\n { name: \"W3CTraceContextPropagator\" },\n { name: \"parseKeyPairsIntoRecord\" }\n ],\n \"@opentelemetry/instrumentation\": [\n { name: \"registerInstrumentations\" },\n { name: \"Instrumentation\", type: true }\n ],\n \"@opentelemetry/resources\": [\n { name: \"resourceFromAttributes\" },\n { name: \"detectResources\" },\n { name: \"envDetector\" }\n ],\n \"@opentelemetry/sdk-logs\": [{ name: \"LoggerProvider\" }],\n \"@opentelemetry/sdk-metrics\": [{ name: \"MeterProvider\" }],\n \"@opentelemetry/sdk-trace-base\": [\n { name: \"BasicTracerProvider\" },\n { name: \"BatchSpanProcessor\" },\n { name: \"RandomIdGenerator\" },\n { name: \"AlwaysOnSampler\" },\n { name: \"AlwaysOffSampler\" },\n { name: \"ParentBasedSampler\" },\n { name: \"TraceIdRatioBasedSampler\" },\n { name: \"ReadableSpan\", type: true },\n { name: \"Sampler\", type: true },\n { name: \"SpanExporter\", type: true },\n { name: \"SpanProcessor\", type: true }\n ],\n \"@powerlines/plugin-open-telemetry\": [\n { name: \"Configuration\", type: true }\n ],\n \"@opentelemetry/exporter-trace-otlp-http\": [\n { name: \"OTLPTraceExporter\" }\n ]\n },\n imports ?? {}\n )}\n builtinImports={{\n env: [\"env\"]\n }}>\n <TSDoc heading=\"Configuration for the OTLP HTTP trace exporters.\">\n <TSDocParam name=\"url\">\n {`The URL of the OTLP collector endpoint. Defaults to http://localhost:4318/v1/traces.`}\n </TSDocParam>\n <TSDocParam name=\"headers\">\n {`Additional HTTP headers to send with each export request.`}\n </TSDocParam>\n </TSDoc>\n <Spacing />\n <TSDoc heading=\"OTLP trace exporter using the `http/json` protocol. Compatible with the Edge runtime. Mirrors `OTLPHttpJsonTraceExporter` from `@vercel/otel`.\">\n <TSDocParam name=\"config\">\n {`Optional exporter configuration (url, headers).`}\n </TSDocParam>\n </TSDoc>\n {code`\nexport class OTLPHttpJsonTraceExporter implements SpanExporter {\n private readonly impl: OTLPTraceExporter;\n\n constructor(config: OTLPExporterConfig = {}) {\n this.impl = new OTLPTraceExporter({\n url: config.url ?? (env.OTEL_EXPORTER_OTLP_TRACES_ENDPOINT ?? \"http://localhost:4318/v1/traces\"),\n headers: (config.headers as Record<string, string>) ?? {},\n });\n }\n\n export(spans: ReadableSpan[], resultCallback: (result: ExportResult) => void): void {\n this.impl.export(spans, resultCallback);\n }\n\n shutdown(): Promise<void> {\n return this.impl.shutdown();\n }\n\n forceFlush(): Promise<void> {\n return this.impl.forceFlush?.() ?? Promise.resolve();\n }\n}`}\n <Spacing />\n <TSDoc heading=\"OTLP trace exporter using the `http/protobuf` protocol. Compatible with the Edge runtime. Mirrors `OTLPHttpProtoTraceExporter` from `@vercel/otel`.\">\n <TSDocParam name=\"config\">\n {`Optional exporter configuration (url, headers). The OTLP collector must support the protobuf encoding.`}\n </TSDocParam>\n </TSDoc>\n {code`\nexport class OTLPHttpProtoTraceExporter implements SpanExporter {\n private readonly impl: OTLPTraceExporter;\n\n constructor(config: OTLPExporterConfig = {}) {\n this.impl = new OTLPTraceExporter({\n url: config.url ?? env.OTEL_EXPORTER_OTLP_TRACES_ENDPOINT,\n headers: {\n \"Content-Type\": \"application/x-protobuf\",\n ...((config.headers as Record<string, string>) ?? {}),\n },\n });\n }\n\n export(spans: ReadableSpan[], resultCallback: (result: ExportResult) => void): void {\n this.impl.export(spans, resultCallback);\n }\n\n shutdown(): Promise<void> {\n return this.impl.shutdown();\n }\n\n forceFlush(): Promise<void> {\n return this.impl.forceFlush?.() ?? Promise.resolve();\n }\n}`}\n <Spacing />\n\n <TSDoc heading=\"OpenTelemetry SDK configuration. Mirrors the `@vercel/otel` `Configuration` interface.\">\n <TSDocParam name=\"serviceName\">\n {`The name of your service. Can be overridden by the OTEL_SERVICE_NAME environment variable.`}\n </TSDocParam>\n <TSDocParam name=\"attributes\">\n {`Additional resource attributes to apply to all spans.`}\n </TSDocParam>\n <TSDocParam name=\"propagators\">\n {`Propagators for extending inbound and outbound contexts. Defaults to W3C Trace Context + Baggage.`}\n </TSDocParam>\n <TSDocParam name=\"traceSampler\">\n {`Sampler to decide which requests to trace. Defaults to \"always_on\".`}\n </TSDocParam>\n <TSDocParam name=\"spanProcessors\">\n {`Span processors to use. Defaults to \"auto\" which auto-configures based on environment variables.`}\n </TSDocParam>\n <TSDocParam name=\"traceExporter\">\n {`Custom trace exporter. Defaults to \"auto\" which selects the best exporter for the environment.`}\n </TSDocParam>\n </TSDoc>\n <TSDoc heading=\"Registers the OpenTelemetry SDK with the specified service name or configuration object. Should be called in `instrumentation.ts` before any other code.\">\n <TSDocParam name=\"optionsOrServiceName\">\n {`Either a service name string or a full Configuration object.`}\n </TSDocParam>\n </TSDoc>\n <FunctionDeclaration\n name=\"registerOTel\"\n export\n parameters={[\n {\n name: \"optionsOrServiceName?\",\n type: \"Configuration | string\"\n }\n ]}\n returnType=\"void\">\n {code`\n let options: Configuration;\n if (!optionsOrServiceName) {\n options = {};\n } else if (typeof optionsOrServiceName === \"string\") {\n options = { serviceName: optionsOrServiceName };\n } else {\n options = optionsOrServiceName;\n }\n\n if (env.OTEL_SDK_DISABLED) {\n return;\n }\n\n // Optional diagnostic logging via OTEL_LOG_LEVEL.\n if (env.OTEL_LOG_LEVEL || env.LOG_LEVEL !== undefined) {\n const logLevelMap: Record<string, DiagLogLevel> = {\n ALL: DiagLogLevel.ALL,\n VERBOSE: DiagLogLevel.VERBOSE,\n DEBUG: DiagLogLevel.DEBUG,\n INFO: DiagLogLevel.INFO,\n WARN: DiagLogLevel.WARN,\n ERROR: DiagLogLevel.ERROR,\n NONE: DiagLogLevel.NONE,\n };\n\n let level: DiagLogLevel | undefined = undefined;\n if (env.OTEL_LOG_LEVEL) {\n level = logLevelMap[env.OTEL_LOG_LEVEL.toUpperCase()];\n } else if (env.LOG_LEVEL !== undefined) {\n level = env.LOG_LEVEL === null ? DiagLogLevel.NONE : logLevelMap[env.LOG_LEVEL.toUpperCase()];\n }\n\n if (level !== undefined) {\n diag.setLogger(new DiagConsoleLogger(), { logLevel: level });\n }\n }\n\n const idGenerator = options.idGenerator ?? new RandomIdGenerator();\n const serviceName = env.OTEL_SERVICE_NAME || options.serviceName || \"${context.config.name}\";\n\n const contextManager: ContextManager =\n options.contextManager ?? new AsyncLocalStorageContextManager();\n contextManager.enable();\n context.setGlobalContextManager(contextManager);\n\n let resource = resourceFromAttributes({\n \"service.name\": serviceName,\n \"process.runtime.name\": env.RUNTIME,\n ...(options.attributes ?? {}),\n });\n\n const autoDetectResources = options.autoDetectResources ?? true;\n if (autoDetectResources) {\n const detectedResource = detectResources({\n detectors: options.resourceDetectors ?? [envDetector],\n });\n resource = resource.merge(detectedResource);\n }\n\n const envPropagators = process.env.OTEL_PROPAGATORS\n ? process.env.OTEL_PROPAGATORS.split(\",\").map((s) => s.trim())\n : undefined;\n const propagatorArgs: Array<TextMapPropagator | string> =\n options.propagators ?? envPropagators ?? [\"auto\"];\n const resolvedPropagators: TextMapPropagator[] = propagatorArgs\n .flatMap((p) => {\n if (p === \"none\") return [];\n if (p === \"auto\" || p === \"tracecontext\") {\n const list: TextMapPropagator[] = [new W3CTraceContextPropagator()];\n if (p === \"auto\") list.push(new W3CBaggagePropagator());\n return list;\n }\n if (p === \"baggage\") return [new W3CBaggagePropagator()];\n if (typeof p !== \"string\") return [p as TextMapPropagator];\n throw new Error(\\`@powerlines/plugin-open-telemetry: Unknown propagator \"\\${p}\"\\`);\n });\n propagation.setGlobalPropagator(\n new CompositePropagator({ propagators: resolvedPropagators })\n );\n\n const samplerName = !options.traceSampler || options.traceSampler === \"auto\"\n ? env.OTEL_TRACES_SAMPLER\n : typeof options.traceSampler === \"string\"\n ? options.traceSampler\n : undefined;\n\n let sampler: Sampler;\n if (options.traceSampler && typeof options.traceSampler !== \"string\") {\n sampler = options.traceSampler as Sampler;\n } else {\n const probability = isNaN(env.OTEL_TRACES_SAMPLER_ARG) || env.OTEL_TRACES_SAMPLER_ARG < 0 || env.OTEL_TRACES_SAMPLER_ARG > 1 ? 1 : env.OTEL_TRACES_SAMPLER_ARG;\n switch (samplerName) {\n case \"always_off\":\n sampler = new AlwaysOffSampler();\n break;\n case \"parentbased_always_on\":\n sampler = new ParentBasedSampler({ root: new AlwaysOnSampler() });\n break;\n case \"parentbased_always_off\":\n sampler = new ParentBasedSampler({ root: new AlwaysOffSampler() });\n break;\n case \"traceidratio\":\n sampler = new TraceIdRatioBasedSampler(probability);\n break;\n case \"parentbased_traceidratio\":\n sampler = new ParentBasedSampler({\n root: new TraceIdRatioBasedSampler(probability),\n });\n break;\n case \"always_on\":\n default:\n sampler = new AlwaysOnSampler();\n }\n }\n\n const spanProcessors: SpanProcessor[] = (options.spanProcessors ?? [\"auto\"]).flatMap((sp) => {\n if (sp !== \"auto\") {\n return [sp as SpanProcessor];\n }\n\n const processors: SpanProcessor[] = [];\n if (\n !options.traceExporter ||\n options.traceExporter === \"auto\" ||\n env.OTEL_EXPORTER_OTLP_TRACES_ENDPOINT\n ) {\n // Dynamic import keeps the exporter optional at runtime.\n diag.debug(\n \"@powerlines/plugin-open-telemetry: Auto-configuring OTLP trace exporter\",\n env.OTEL_EXPORTER_OTLP_TRACES_ENDPOINT\n );\n }\n return processors;\n });\n\n // If a custom traceExporter was provided, wrap it in a BatchSpanProcessor.\n if (options.traceExporter && options.traceExporter !== \"auto\") {\n spanProcessors.push(\n new BatchSpanProcessor(options.traceExporter as SpanExporter)\n );\n }\n\n const tracerProvider = new BasicTracerProvider({\n resource,\n idGenerator,\n sampler,\n spanLimits: options.spanLimits,\n spanProcessors,\n });\n trace.setGlobalTracerProvider(tracerProvider);\n\n if (options.logRecordProcessors) {\n const loggerProvider = new LoggerProvider({\n resource,\n processors: options.logRecordProcessors,\n });\n logs.setGlobalLoggerProvider(loggerProvider);\n }\n\n if (options.metricReaders || options.views) {\n const meterProvider = new MeterProvider({\n resource,\n views: options.views ?? [],\n readers: options.metricReaders ?? [],\n });\n metrics.setGlobalMeterProvider(meterProvider);\n }\n\n const instrumentationArgs: Array<Instrumentation | string> = options.instrumentations ?? [\"auto\"];\n const instrumentations: Instrumentation[] = instrumentationArgs.flatMap(\n (inst) => {\n if (typeof inst !== \"string\") {\n return [inst as Instrumentation];\n }\n\n // \"auto\" and \"fetch\" are resolved by the consumer via their own imports.\n return [];\n }\n );\n registerInstrumentations({ instrumentations });\n\n diag.info(\"@powerlines/plugin-open-telemetry: started\", serviceName, env.RUNTIME);`}\n </FunctionDeclaration>\n <Spacing />\n <TSDoc heading=\"Returns a named tracer from the global OpenTelemetry TracerProvider. Wraps `trace.getTracer()` for convenience.\">\n <TSDocParam name=\"name\">\n {`The name of the tracer (typically the instrumentation library name or component name).`}\n </TSDocParam>\n <TSDocParam name=\"version\">\n {`Optional version of the instrumentation library.`}\n </TSDocParam>\n </TSDoc>\n <FunctionDeclaration\n name=\"getTracer\"\n export\n parameters={[\n { name: \"name\", type: \"string\" },\n { name: \"version\", type: \"string\", optional: true }\n ]}\n returnType=\"ReturnType<typeof trace.getTracer>\">\n {code`return trace.getTracer(name, version);`}\n </FunctionDeclaration>\n <Spacing />\n <Show when={Boolean(children)}>{children}</Show>\n </BuiltinFile>\n );\n}\n"],"mappings":";;;;;;;;;;;;;AA8BA,SAAgB,aAAO,OAAA;CACvB,MAAQ,CAAC,YAET;CAEE,MAAA,UAAA,eAAA;AACA,QAAC,gBAAoB,aAAe,WAAW;EAC/C,IAAA;EACF,aAAgB;EACd,EAAA,MAAS;EACP,IAAC,UAAS;AACT,UAAO,KAAA;IACR,sBAAA;KAAA,iBAEI;KAAA,gBAEC;KAAA,EACJ,MAAA,eACI;KAAC,EACJ,MAAA,WACG;KAAC,EACJ,MAAS,WACP;KAAA,EACE,MAAE,qBACH;KAAE,EACD,MAAI,gBACL;KAAE;MACD,MAAI;MACJ,MAAI;MACL;KAAE;MACD,MAAI;MACJ,MAAI;MACL;KAAE;MACD,MAAI;MACJ,MAAC;MACF;KAAC;IACF,2BAA0B,CAAA,EACxB,MAAI,QACL,CAAC;IACF,sCAA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;;;;;;;;;;;;;;;;;IAsBV,gBAAgB,SAAM,EAAA,CAAA;IAAA,gBAAY,OAAA;KAC9B,SAAQ;KACR,IAAE,WAAU;AACX,aAAA,gBAAiB,YAAW;OACzB,MAAA;OACF,UAAU;OACX,CAAA;;KAEF,CAAC;IAAE,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;IAyBN,gBAAgB,SAAK,EAAA,CAAA;IAAA,gBAAA,OAAA;KACjB,SAAK;KACP,IAAA,WAAS;AACR,aAAA;OAAA,gBAAsB,YAAA;QACjB,MAAI;QACJ,UAAQ;QACT,CAAC;OAAE,gBAAe,YAAA;QACpB,MAAA;QACG,UAAE;QACZ,CAAA;OAAA,gBAAA,YAAA;;QAEQ,UAAA;QACA,CAAA;OAAA,gBAAA,YAAA;QACR,MAAA;;QAEG,CAAA;OAAS,gBAAkB,YAAK;QAC3B,MAAA;QACA,UAAY;QACX,CAAA;OAAA,gBAAgB,YAAA;QACrB,MAAS;QACH,UAAC;QACF,CAAC;OAAA;;KAEN,CAAA;IAAA,gBAAoB,OAAK;KACzB,SAAM;KACP,IAAA,WAAA;;OAEG,MAAO;OACH,UAAA;OACD,CAAC;;KAEN,CAAA;IAAA,gBAAsB,qBAAW;KACnC,MAAA;;KAEI,YAAU,CAAA;MACR,MAAC;MACP,MAAA;MACF,CAAA;;KAEM,IAAA,WAAc;AACd,aAAA,IAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yEAuC2C,QAAA,OAAA,KAAA"}
|
|
1
|
+
{"version":3,"file":"trace-builtin.mjs","names":[],"sources":["../../src/components/trace-builtin.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { code, Show, splitProps } from \"@alloy-js/core\";\nimport { FunctionDeclaration } from \"@alloy-js/typescript\";\nimport { usePowerlines } from \"@powerlines/plugin-alloy/core\";\nimport { Spacing } from \"@powerlines/plugin-alloy/core/components/spacing\";\nimport {\n BuiltinFile,\n BuiltinFileProps\n} from \"@powerlines/plugin-alloy/typescript/components/builtin-file\";\nimport {\n TSDoc,\n TSDocParam\n} from \"@powerlines/plugin-alloy/typescript/components/tsdoc\";\nimport defu from \"defu\";\nimport { OpenTelemetryPluginContext } from \"../types\";\n\nexport type TraceBuiltinProps = Omit<BuiltinFileProps, \"id\">;\n\n/**\n * Generates the trace module for the Powerlines project.\n */\nexport function TraceBuiltin(props: TraceBuiltinProps) {\n const [{ children, imports }, rest] = splitProps(props, [\n \"children\",\n \"imports\"\n ]);\n\n const context = usePowerlines<OpenTelemetryPluginContext>();\n\n return (\n <BuiltinFile\n id=\"trace\"\n description=\"The runtime OpenTelemetry trace module provides registerOTel and getTracer helpers that mirror the @vercel/otel API.\"\n {...rest}\n imports={defu(\n {\n \"@opentelemetry/api\": [\n { name: \"trace\" },\n { name: \"diag\" },\n { name: \"propagation\" },\n { name: \"context\" },\n { name: \"metrics\" },\n { name: \"DiagConsoleLogger\" },\n { name: \"DiagLogLevel\" },\n { name: \"ContextManager\", type: true },\n { name: \"TextMapPropagator\", type: true },\n { name: \"Attributes\", type: true }\n ],\n \"@opentelemetry/api-logs\": [{ name: \"logs\" }],\n \"@opentelemetry/context-async-hooks\": [\n { name: \"AsyncLocalStorageContextManager\" }\n ],\n \"@opentelemetry/core\": [\n { name: \"CompositePropagator\" },\n { name: \"ExportResult\", type: true },\n { name: \"W3CBaggagePropagator\" },\n { name: \"W3CTraceContextPropagator\" },\n { name: \"parseKeyPairsIntoRecord\" }\n ],\n \"@opentelemetry/instrumentation\": [\n { name: \"registerInstrumentations\" },\n { name: \"Instrumentation\", type: true }\n ],\n \"@opentelemetry/resources\": [\n { name: \"resourceFromAttributes\" },\n { name: \"detectResources\" },\n { name: \"envDetector\" }\n ],\n \"@opentelemetry/sdk-logs\": [{ name: \"LoggerProvider\" }],\n \"@opentelemetry/sdk-metrics\": [{ name: \"MeterProvider\" }],\n \"@opentelemetry/sdk-trace-base\": [\n { name: \"BasicTracerProvider\" },\n { name: \"BatchSpanProcessor\" },\n { name: \"RandomIdGenerator\" },\n { name: \"AlwaysOnSampler\" },\n { name: \"AlwaysOffSampler\" },\n { name: \"ParentBasedSampler\" },\n { name: \"TraceIdRatioBasedSampler\" },\n { name: \"ReadableSpan\", type: true },\n { name: \"Sampler\", type: true },\n { name: \"SpanExporter\", type: true },\n { name: \"SpanProcessor\", type: true }\n ],\n \"@powerlines/plugin-open-telemetry\": [\n { name: \"Configuration\", type: true }\n ],\n \"@opentelemetry/exporter-trace-otlp-http\": [\n { name: \"OTLPTraceExporter\" }\n ]\n },\n imports ?? {}\n )}\n builtinImports={{\n env: [\"env\"]\n }}>\n <TSDoc heading=\"Configuration for the OTLP HTTP trace exporters.\">\n <TSDocParam name=\"url\">\n {`The URL of the OTLP collector endpoint. Defaults to http://localhost:4318/v1/traces.`}\n </TSDocParam>\n <TSDocParam name=\"headers\">\n {`Additional HTTP headers to send with each export request.`}\n </TSDocParam>\n </TSDoc>\n <Spacing />\n <TSDoc heading=\"OTLP trace exporter using the `http/json` protocol. Compatible with the Edge runtime. Mirrors `OTLPHttpJsonTraceExporter` from `@vercel/otel`.\">\n <TSDocParam name=\"config\">\n {`Optional exporter configuration (url, headers).`}\n </TSDocParam>\n </TSDoc>\n {code`\nexport class OTLPHttpJsonTraceExporter implements SpanExporter {\n private readonly impl: OTLPTraceExporter;\n\n constructor(config: OTLPExporterConfig = {}) {\n this.impl = new OTLPTraceExporter({\n url: config.url ?? (env.OTEL_EXPORTER_OTLP_TRACES_ENDPOINT ?? \"http://localhost:4318/v1/traces\"),\n headers: (config.headers as Record<string, string>) ?? {},\n });\n }\n\n export(spans: ReadableSpan[], resultCallback: (result: ExportResult) => void): void {\n this.impl.export(spans, resultCallback);\n }\n\n shutdown(): Promise<void> {\n return this.impl.shutdown();\n }\n\n forceFlush(): Promise<void> {\n return this.impl.forceFlush?.() ?? Promise.resolve();\n }\n}`}\n <Spacing />\n <TSDoc heading=\"OTLP trace exporter using the `http/protobuf` protocol. Compatible with the Edge runtime. Mirrors `OTLPHttpProtoTraceExporter` from `@vercel/otel`.\">\n <TSDocParam name=\"config\">\n {`Optional exporter configuration (url, headers). The OTLP collector must support the protobuf encoding.`}\n </TSDocParam>\n </TSDoc>\n {code`\nexport class OTLPHttpProtoTraceExporter implements SpanExporter {\n private readonly impl: OTLPTraceExporter;\n\n constructor(config: OTLPExporterConfig = {}) {\n this.impl = new OTLPTraceExporter({\n url: config.url ?? env.OTEL_EXPORTER_OTLP_TRACES_ENDPOINT,\n headers: {\n \"Content-Type\": \"application/x-protobuf\",\n ...((config.headers as Record<string, string>) ?? {}),\n },\n });\n }\n\n export(spans: ReadableSpan[], resultCallback: (result: ExportResult) => void): void {\n this.impl.export(spans, resultCallback);\n }\n\n shutdown(): Promise<void> {\n return this.impl.shutdown();\n }\n\n forceFlush(): Promise<void> {\n return this.impl.forceFlush?.() ?? Promise.resolve();\n }\n}`}\n <Spacing />\n\n <TSDoc heading=\"OpenTelemetry SDK configuration. Mirrors the `@vercel/otel` `Configuration` interface.\">\n <TSDocParam name=\"serviceName\">\n {`The name of your service. Can be overridden by the OTEL_SERVICE_NAME environment variable.`}\n </TSDocParam>\n <TSDocParam name=\"attributes\">\n {`Additional resource attributes to apply to all spans.`}\n </TSDocParam>\n <TSDocParam name=\"propagators\">\n {`Propagators for extending inbound and outbound contexts. Defaults to W3C Trace Context + Baggage.`}\n </TSDocParam>\n <TSDocParam name=\"traceSampler\">\n {`Sampler to decide which requests to trace. Defaults to \"always_on\".`}\n </TSDocParam>\n <TSDocParam name=\"spanProcessors\">\n {`Span processors to use. Defaults to \"auto\" which auto-configures based on environment variables.`}\n </TSDocParam>\n <TSDocParam name=\"traceExporter\">\n {`Custom trace exporter. Defaults to \"auto\" which selects the best exporter for the environment.`}\n </TSDocParam>\n </TSDoc>\n <TSDoc heading=\"Registers the OpenTelemetry SDK with the specified service name or configuration object. Should be called in `instrumentation.ts` before any other code.\">\n <TSDocParam name=\"optionsOrServiceName\">\n {`Either a service name string or a full Configuration object.`}\n </TSDocParam>\n </TSDoc>\n <FunctionDeclaration\n name=\"registerOTel\"\n export\n parameters={[\n {\n name: \"optionsOrServiceName?\",\n type: \"Configuration | string\"\n }\n ]}\n returnType=\"void\">\n {code`\n let options: Configuration;\n if (!optionsOrServiceName) {\n options = {};\n } else if (typeof optionsOrServiceName === \"string\") {\n options = { serviceName: optionsOrServiceName };\n } else {\n options = optionsOrServiceName;\n }\n\n if (env.OTEL_SDK_DISABLED) {\n return;\n }\n\n // Optional diagnostic logging via OTEL_LOG_LEVEL.\n if (env.OTEL_LOG_LEVEL || env.LOG_LEVEL !== undefined) {\n const logLevelMap: Record<string, DiagLogLevel> = {\n ALL: DiagLogLevel.ALL,\n VERBOSE: DiagLogLevel.VERBOSE,\n DEBUG: DiagLogLevel.DEBUG,\n INFO: DiagLogLevel.INFO,\n WARN: DiagLogLevel.WARN,\n ERROR: DiagLogLevel.ERROR,\n NONE: DiagLogLevel.NONE,\n };\n\n let level: DiagLogLevel | undefined = undefined;\n if (env.OTEL_LOG_LEVEL) {\n level = logLevelMap[env.OTEL_LOG_LEVEL.toUpperCase()];\n } else if (env.LOG_LEVEL !== undefined) {\n level = env.LOG_LEVEL === null ? DiagLogLevel.NONE : logLevelMap[env.LOG_LEVEL.toUpperCase()];\n }\n\n if (level !== undefined) {\n diag.setLogger(new DiagConsoleLogger(), { logLevel: level });\n }\n }\n\n const idGenerator = options.idGenerator ?? new RandomIdGenerator();\n const serviceName = env.OTEL_SERVICE_NAME || options.serviceName || \"${context.config.name}\";\n\n const contextManager: ContextManager =\n options.contextManager ?? new AsyncLocalStorageContextManager();\n contextManager.enable();\n context.setGlobalContextManager(contextManager);\n\n let resource = resourceFromAttributes({\n \"service.name\": serviceName,\n \"process.runtime.name\": env.RUNTIME,\n ...(options.attributes ?? {}),\n });\n\n const autoDetectResources = options.autoDetectResources ?? true;\n if (autoDetectResources) {\n const detectedResource = detectResources({\n detectors: options.resourceDetectors ?? [envDetector],\n });\n resource = resource.merge(detectedResource);\n }\n\n const envPropagators = process.env.OTEL_PROPAGATORS\n ? process.env.OTEL_PROPAGATORS.split(\",\").map((s) => s.trim())\n : undefined;\n const propagatorArgs: Array<TextMapPropagator | string> =\n options.propagators ?? envPropagators ?? [\"auto\"];\n const resolvedPropagators: TextMapPropagator[] = propagatorArgs\n .flatMap((p) => {\n if (p === \"none\") return [];\n if (p === \"auto\" || p === \"tracecontext\") {\n const list: TextMapPropagator[] = [new W3CTraceContextPropagator()];\n if (p === \"auto\") list.push(new W3CBaggagePropagator());\n return list;\n }\n if (p === \"baggage\") return [new W3CBaggagePropagator()];\n if (typeof p !== \"string\") return [p as TextMapPropagator];\n throw new Error(\\`@powerlines/plugin-open-telemetry: Unknown propagator \"\\${p}\"\\`);\n });\n propagation.setGlobalPropagator(\n new CompositePropagator({ propagators: resolvedPropagators })\n );\n\n const samplerName = !options.traceSampler || options.traceSampler === \"auto\"\n ? env.OTEL_TRACES_SAMPLER\n : typeof options.traceSampler === \"string\"\n ? options.traceSampler\n : undefined;\n\n let sampler: Sampler;\n if (options.traceSampler && typeof options.traceSampler !== \"string\") {\n sampler = options.traceSampler as Sampler;\n } else {\n const probability = isNaN(env.OTEL_TRACES_SAMPLER_ARG) || env.OTEL_TRACES_SAMPLER_ARG < 0 || env.OTEL_TRACES_SAMPLER_ARG > 1 ? 1 : env.OTEL_TRACES_SAMPLER_ARG;\n switch (samplerName) {\n case \"always_off\":\n sampler = new AlwaysOffSampler();\n break;\n case \"parentbased_always_on\":\n sampler = new ParentBasedSampler({ root: new AlwaysOnSampler() });\n break;\n case \"parentbased_always_off\":\n sampler = new ParentBasedSampler({ root: new AlwaysOffSampler() });\n break;\n case \"traceidratio\":\n sampler = new TraceIdRatioBasedSampler(probability);\n break;\n case \"parentbased_traceidratio\":\n sampler = new ParentBasedSampler({\n root: new TraceIdRatioBasedSampler(probability),\n });\n break;\n case \"always_on\":\n default:\n sampler = new AlwaysOnSampler();\n }\n }\n\n const spanProcessors: SpanProcessor[] = (options.spanProcessors ?? [\"auto\"]).flatMap((sp) => {\n if (sp !== \"auto\") {\n return [sp as SpanProcessor];\n }\n\n const processors: SpanProcessor[] = [];\n if (\n !options.traceExporter ||\n options.traceExporter === \"auto\" ||\n env.OTEL_EXPORTER_OTLP_TRACES_ENDPOINT\n ) {\n // Dynamic import keeps the exporter optional at runtime.\n diag.debug(\n \"@powerlines/plugin-open-telemetry: Auto-configuring OTLP trace exporter\",\n env.OTEL_EXPORTER_OTLP_TRACES_ENDPOINT\n );\n }\n return processors;\n });\n\n // If a custom traceExporter was provided, wrap it in a BatchSpanProcessor.\n if (options.traceExporter && options.traceExporter !== \"auto\") {\n spanProcessors.push(\n new BatchSpanProcessor(options.traceExporter as SpanExporter)\n );\n }\n\n const tracerProvider = new BasicTracerProvider({\n resource,\n idGenerator,\n sampler,\n spanLimits: options.spanLimits,\n spanProcessors,\n });\n trace.setGlobalTracerProvider(tracerProvider);\n\n if (options.logRecordProcessors) {\n const loggerProvider = new LoggerProvider({\n resource,\n processors: options.logRecordProcessors,\n });\n logs.setGlobalLoggerProvider(loggerProvider);\n }\n\n if (options.metricReaders || options.views) {\n const meterProvider = new MeterProvider({\n resource,\n views: options.views ?? [],\n readers: options.metricReaders ?? [],\n });\n metrics.setGlobalMeterProvider(meterProvider);\n }\n\n const instrumentationArgs: Array<Instrumentation | string> = options.instrumentations ?? [\"auto\"];\n const instrumentations: Instrumentation[] = instrumentationArgs.flatMap(\n (inst) => {\n if (typeof inst !== \"string\") {\n return [inst as Instrumentation];\n }\n\n // \"auto\" and \"fetch\" are resolved by the consumer via their own imports.\n return [];\n }\n );\n registerInstrumentations({ instrumentations });\n\n diag.info(\"@powerlines/plugin-open-telemetry: started\", serviceName, env.RUNTIME);`}\n </FunctionDeclaration>\n <Spacing />\n <TSDoc heading=\"Returns a named tracer from the global OpenTelemetry TracerProvider. Wraps `trace.getTracer()` for convenience.\">\n <TSDocParam name=\"name\">\n {`The name of the tracer (typically the instrumentation library name or component name).`}\n </TSDocParam>\n <TSDocParam name=\"version\">\n {`Optional version of the instrumentation library.`}\n </TSDocParam>\n </TSDoc>\n <FunctionDeclaration\n name=\"getTracer\"\n export\n parameters={[\n { name: \"name\", type: \"string\" },\n { name: \"version\", type: \"string\", optional: true }\n ]}\n returnType=\"ReturnType<typeof trace.getTracer>\">\n {code`return trace.getTracer(name, version);`}\n </FunctionDeclaration>\n <Spacing />\n <Show when={Boolean(children)}>{children}</Show>\n </BuiltinFile>\n );\n}\n"],"mappings":";;;;;;;;;;;;;AA8BA,SAAgB,aAAO,OAAA;CACvB,MAAQ,CAAC,YAET;CAEE,MAAA,UAAA,cAAA;CACA,OAAC,gBAAoB,aAAe,WAAW;EAC/C,IAAA;EACF,aAAgB;CACd,GAAA,MAAS;EACP,IAAC,UAAS;GACT,OAAO,KAAA;IACR,sBAAA;KAAA,gBAEI;KAAA,eAEA;KAAC,EACJ,MAAA,cACG;KAAE,EACJ,MAAA,UACE;KAAE,EACJ,MAAS,UACP;KAAA,EACE,MAAE,oBACJ;KAAG,EACD,MAAI,eACN;KAAG;MACD,MAAI;MACJ,MAAI;KACN;KAAG;MACD,MAAI;MACJ,MAAI;KACN;KAAG;MACD,MAAI;MACJ,MAAC;KACH;IAAC;IACD,2BAA0B,CAAA,EACxB,MAAI,OACN,CAAC;IACD,sCAAyB,CAAA,EACvB,MAAI,kCACN,CAAC;IACD,uBAAa;KAAA,EACX,MAAI,sBACN;KAAG;MACD,MAAC;MACD,MAAE;KACJ;KAAG,EACD,MAAI,uBACN;KAAG,EAC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,YAAW;OACzB,MAAA;OACF,UAAU;MACX,CAAA;KACD;IACF,CAAC;IAAG,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;IAyBN,gBAAgB,SAAK,CAAA,CAAA;IAAA,gBAAA,OAAA;KACjB,SAAK;KACP,IAAA,WAAS;MACR,OAAA;OAAA,gBAAsB,YAAA;QACjB,MAAI;QACJ,UAAQ;OAChB,CAAO;OAAG,gBAAe,YAAA;QACpB,MAAA;QACG,UAAE;OACZ,CAAA;OAAA,gBAAA,YAAA;;QAEQ,UAAA;OACA,CAAA;OAAA,gBAAA,YAAA;QACR,MAAA;;OAEG,CAAA;OAAS,gBAAkB,YAAK;QAC3B,MAAA;QACA,UAAY;OACZ,CAAC;OAAA,gBAAgB,YAAA;QACrB,MAAS;QACH,UAAC;OACH,CAAC;MAAC;KACN;IACA,CAAA;IAAA,gBAAoB,OAAK;KACzB,SAAM;KACP,IAAA,WAAA;;OAEG,MAAO;OACH,UAAA;MACN,CAAK;KACL;IACA,CAAA;IAAA,gBAAsB,qBAAW;KACnC,MAAA;;KAEI,YAAU,CAAA;MACR,MAAC;MACP,MAAA;KACF,CAAA;;KAEM,IAAA,WAAc;MACd,OAAA,IAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yEAuC2C,QAAA,OAAA,KAAA"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as _$automd from "automd";
|
|
2
1
|
import { UnresolvedContext } from "powerlines";
|
|
3
2
|
|
|
4
3
|
//#region src/helpers/automd-generator.d.ts
|
|
@@ -8,7 +7,7 @@ import { UnresolvedContext } from "powerlines";
|
|
|
8
7
|
* @param context - The generator context.
|
|
9
8
|
* @returns The generated documentation content.
|
|
10
9
|
*/
|
|
11
|
-
declare const trace: (context: UnresolvedContext) =>
|
|
10
|
+
declare const trace: (context: UnresolvedContext) => import("automd").Generator;
|
|
12
11
|
//#endregion
|
|
13
12
|
export { trace };
|
|
14
13
|
//# sourceMappingURL=automd-generator.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"automd-generator.d.cts","names":[],"sources":["../../src/helpers/automd-generator.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"automd-generator.d.cts","names":[],"sources":["../../src/helpers/automd-generator.ts"],"mappings":";;;;;AA6BA;;;;cAAa,KAAA,GAAS,OAAA,EAAS,iBAAiB,sBAAA,SAAA"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as _$automd from "automd";
|
|
2
1
|
import { UnresolvedContext } from "powerlines";
|
|
3
2
|
|
|
4
3
|
//#region src/helpers/automd-generator.d.ts
|
|
@@ -8,7 +7,7 @@ import { UnresolvedContext } from "powerlines";
|
|
|
8
7
|
* @param context - The generator context.
|
|
9
8
|
* @returns The generated documentation content.
|
|
10
9
|
*/
|
|
11
|
-
declare const trace: (context: UnresolvedContext) =>
|
|
10
|
+
declare const trace: (context: UnresolvedContext) => import("automd").Generator;
|
|
12
11
|
//#endregion
|
|
13
12
|
export { trace };
|
|
14
13
|
//# sourceMappingURL=automd-generator.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"automd-generator.d.mts","names":[],"sources":["../../src/helpers/automd-generator.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"automd-generator.d.mts","names":[],"sources":["../../src/helpers/automd-generator.ts"],"mappings":";;;;;AA6BA;;;;cAAa,KAAA,GAAS,OAAA,EAAS,iBAAiB,sBAAA,SAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"automd-generator.mjs","names":[],"sources":["../../src/helpers/automd-generator.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { joinPaths } from \"@stryke/path/join-paths\";\nimport { defineGenerator } from \"automd\";\nimport { UnresolvedContext } from \"powerlines\";\nimport { getDocsOutputPath } from \"powerlines/plugin-utils\";\n\n/**\n * AutoMD generator to generate feature flags documentation\n *\n * @param context - The generator context.\n * @returns The generated documentation content.\n */\nexport const trace = (context: UnresolvedContext) =>\n defineGenerator({\n name: \"trace\",\n async generate() {\n const traceDocFile = joinPaths(\n getDocsOutputPath(context.config.root),\n \"trace.md\"\n );\n\n if (!context.fs.existsSync(traceDocFile)) {\n return {\n contents: \"\"\n };\n }\n\n const contents = await context.fs.read(traceDocFile);\n\n return {\n contents: contents || \"\"\n };\n }\n });\n"],"mappings":";;;;;;;;;;;AA6BA,MAAa,SAAQ,YAAU,gBAAiB;CAC9C,MAAA;CACA,MAAM,WAAS;EACb,MAAM,eAAW,UAAA,kBAAA,QAAA,OAAA,
|
|
1
|
+
{"version":3,"file":"automd-generator.mjs","names":[],"sources":["../../src/helpers/automd-generator.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { joinPaths } from \"@stryke/path/join-paths\";\nimport { defineGenerator } from \"automd\";\nimport { UnresolvedContext } from \"powerlines\";\nimport { getDocsOutputPath } from \"powerlines/plugin-utils\";\n\n/**\n * AutoMD generator to generate feature flags documentation\n *\n * @param context - The generator context.\n * @returns The generated documentation content.\n */\nexport const trace = (context: UnresolvedContext) =>\n defineGenerator({\n name: \"trace\",\n async generate() {\n const traceDocFile = joinPaths(\n getDocsOutputPath(context.config.root),\n \"trace.md\"\n );\n\n if (!context.fs.existsSync(traceDocFile)) {\n return {\n contents: \"\"\n };\n }\n\n const contents = await context.fs.read(traceDocFile);\n\n return {\n contents: contents || \"\"\n };\n }\n });\n"],"mappings":";;;;;;;;;;;AA6BA,MAAa,SAAQ,YAAU,gBAAiB;CAC9C,MAAA;CACA,MAAM,WAAS;EACb,MAAM,eAAW,UAAA,kBAAA,QAAA,OAAA,IAAA,GAAA,UAAA;EACjB,IAAE,CAAA,QAAM,GAAA,WAAe,YAAS,GAC9B,OAAE,EACA,UAAS,GACX;EAGF,OAAI,EACF,UAAI,MAFY,QAAW,GAAA,KAAA,YAAe,KAE3B,GACjB;CACF"}
|
package/dist/index.d.cts
CHANGED
|
@@ -13,5 +13,5 @@ declare module "powerlines" {
|
|
|
13
13
|
*/
|
|
14
14
|
declare const plugin: <TContext extends OpenTelemetryPluginContext = OpenTelemetryPluginContext>(options?: OpenTelemetryPluginOptions) => Plugin<TContext>[];
|
|
15
15
|
//#endregion
|
|
16
|
-
export { AttributesFromHeaderFunc, AttributesFromHeaders, Configuration, FetchInstrumentationConfig, InstrumentationConfiguration, InstrumentationOptionOrName, OTLPExporterConfig, OpenTelemetryEnv, OpenTelemetryPluginContext, OpenTelemetryPluginOptions, OpenTelemetryPluginResolvedConfig, OpenTelemetryPluginUserConfig, PropagatorOrName, SampleOrName, SpanExporterOrName, SpanProcessorOrName, plugin as default, plugin };
|
|
16
|
+
export { type AttributesFromHeaderFunc, type AttributesFromHeaders, type Configuration, type FetchInstrumentationConfig, type InstrumentationConfiguration, type InstrumentationOptionOrName, type OTLPExporterConfig, type OpenTelemetryEnv, type OpenTelemetryPluginContext, type OpenTelemetryPluginOptions, type OpenTelemetryPluginResolvedConfig, type OpenTelemetryPluginUserConfig, type PropagatorOrName, type SampleOrName, type SpanExporterOrName, type SpanProcessorOrName, plugin as default, plugin };
|
|
17
17
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.tsx"],"mappings":";;;;;;YAiCY,MAAA;IACR,aAAA,GAAgB,
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.tsx"],"mappings":";;;;;;YAiCY,MAAA;IACR,aAAA,GAAgB,0BAA0B;EAAA;AAAA;;;;cAOjC,MAAA,oBACM,0BAAA,GAA6B,0BAAA,EAE9C,OAAA,GAAS,0BAAA,KA2BJ,MAAA,CAAO,QAAA"}
|
package/dist/index.d.mts
CHANGED
|
@@ -13,5 +13,5 @@ declare module "powerlines" {
|
|
|
13
13
|
*/
|
|
14
14
|
declare const plugin: <TContext extends OpenTelemetryPluginContext = OpenTelemetryPluginContext>(options?: OpenTelemetryPluginOptions) => Plugin<TContext>[];
|
|
15
15
|
//#endregion
|
|
16
|
-
export { AttributesFromHeaderFunc, AttributesFromHeaders, Configuration, FetchInstrumentationConfig, InstrumentationConfiguration, InstrumentationOptionOrName, OTLPExporterConfig, OpenTelemetryEnv, OpenTelemetryPluginContext, OpenTelemetryPluginOptions, OpenTelemetryPluginResolvedConfig, OpenTelemetryPluginUserConfig, PropagatorOrName, SampleOrName, SpanExporterOrName, SpanProcessorOrName, plugin as default, plugin };
|
|
16
|
+
export { type AttributesFromHeaderFunc, type AttributesFromHeaders, type Configuration, type FetchInstrumentationConfig, type InstrumentationConfiguration, type InstrumentationOptionOrName, type OTLPExporterConfig, type OpenTelemetryEnv, type OpenTelemetryPluginContext, type OpenTelemetryPluginOptions, type OpenTelemetryPluginResolvedConfig, type OpenTelemetryPluginUserConfig, type PropagatorOrName, type SampleOrName, type SpanExporterOrName, type SpanProcessorOrName, plugin as default, plugin };
|
|
17
17
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.tsx"],"mappings":";;;;;;YAiCY,MAAA;IACR,aAAA,GAAgB,
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.tsx"],"mappings":";;;;;;YAiCY,MAAA;IACR,aAAA,GAAgB,0BAA0B;EAAA;AAAA;;;;cAOjC,MAAA,oBACM,0BAAA,GAA6B,0BAAA,EAE9C,OAAA,GAAS,0BAAA,KA2BJ,MAAA,CAAO,QAAA"}
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"sources":["../src/index.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { render } from \"@powerlines/plugin-alloy/render\";\nimport automd from \"@powerlines/plugin-automd\";\nimport env from \"@powerlines/plugin-env\";\nimport defu from \"defu\";\nimport { Plugin } from \"powerlines\";\nimport { TraceBuiltin } from \"./components/trace-builtin\";\nimport { trace } from \"./helpers/automd-generator\";\nimport type {\n OpenTelemetryPluginContext,\n OpenTelemetryPluginOptions\n} from \"./types/plugin\";\n\nexport type * from \"./types\";\n\ndeclare module \"powerlines\" {\n interface Config {\n openTelemetry?: OpenTelemetryPluginOptions;\n }\n}\n\n/**\n * A Powerlines plugin to inject environment variables into the source code.\n */\nexport const plugin = <\n TContext extends OpenTelemetryPluginContext = OpenTelemetryPluginContext\n>(\n options: OpenTelemetryPluginOptions = {}\n) => {\n return [\n env(options.env),\n {\n name: \"open-telemetry\",\n async prepare() {\n this.debug(\n `Preparing the OpenTelemetry runtime artifacts for the Powerlines project.`\n );\n\n return render(this, <TraceBuiltin />);\n }\n },\n {\n name: \"open-telemetry:automd-generator\",\n config() {\n return {\n automd: defu(options.automd ?? {}, {\n generators: {\n trace: trace(this)\n }\n })\n };\n }\n },\n automd(options.automd)\n ] as Plugin<TContext>[];\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../src/index.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { render } from \"@powerlines/plugin-alloy/render\";\nimport automd from \"@powerlines/plugin-automd\";\nimport env from \"@powerlines/plugin-env\";\nimport defu from \"defu\";\nimport { Plugin } from \"powerlines\";\nimport { TraceBuiltin } from \"./components/trace-builtin\";\nimport { trace } from \"./helpers/automd-generator\";\nimport type {\n OpenTelemetryPluginContext,\n OpenTelemetryPluginOptions\n} from \"./types/plugin\";\n\nexport type * from \"./types\";\n\ndeclare module \"powerlines\" {\n interface Config {\n openTelemetry?: OpenTelemetryPluginOptions;\n }\n}\n\n/**\n * A Powerlines plugin to inject environment variables into the source code.\n */\nexport const plugin = <\n TContext extends OpenTelemetryPluginContext = OpenTelemetryPluginContext\n>(\n options: OpenTelemetryPluginOptions = {}\n) => {\n return [\n env(options.env),\n {\n name: \"open-telemetry\",\n async prepare() {\n this.debug(\n `Preparing the OpenTelemetry runtime artifacts for the Powerlines project.`\n );\n\n return render(this, <TraceBuiltin />);\n }\n },\n {\n name: \"open-telemetry:automd-generator\",\n config() {\n return {\n automd: defu(options.automd ?? {}, {\n generators: {\n trace: trace(this)\n }\n })\n };\n }\n },\n automd(options.automd)\n ] as Plugin<TContext>[];\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;;CA8BA,OAAO;EAAA,IAAO,QAAQ,GAAA;EAAM;;GAE5B,MAAQ,UAAQ;IACd,KAAS,MAAC,2EAAO;IACf,OAAA,OAAgB,MAAA,gBAAA,cAA0B,CAAA,CAAA,CAAA;GAC5C;EACF;EAAA;;GAEE,SAAA;IACG,OAAA,EACH,QAAA,KAAA,QAAA,UAAA,CAAA,GAAA,EACK,YAAe,EACX,OAAQ,MAAA,IAAA,EAClB,EACC,CAAO,EACJ;GACH;EACA;EAAE,OAAI,QAAY,MAAA;CAAA;AACpB"}
|
package/dist/types/env.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env.d.cts","names":[],"sources":["../../src/types/env.ts"],"mappings":";;;;;AA+BA;;;;;;;;;UAAiB,gBAAA,SAAyB,
|
|
1
|
+
{"version":3,"file":"env.d.cts","names":[],"sources":["../../src/types/env.ts"],"mappings":";;;;;AA+BA;;;;;;;;;UAAiB,gBAAA,SAAyB,YAAY;EA2C3C;;;EAAA,SAvCA,iBAAA;EA0ET;;AAAO;;;EAAP,SAnES,kCAAA;;;;;;WAOA,mBAAA;;;;;;WAWA,uBAAA;;;;;;WAOA,mBAAA;;;;;;WAOA,gBAAA;;;;;;WAOA,qBAAA;;;;;;WAOA,cAAA;;;;;;WAcA,iBAAA;;;;;;EAOT,OAAA;AAAA"}
|
package/dist/types/env.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env.d.mts","names":[],"sources":["../../src/types/env.ts"],"mappings":";;;;;AA+BA;;;;;;;;;UAAiB,gBAAA,SAAyB,
|
|
1
|
+
{"version":3,"file":"env.d.mts","names":[],"sources":["../../src/types/env.ts"],"mappings":";;;;;AA+BA;;;;;;;;;UAAiB,gBAAA,SAAyB,YAAY;EA2C3C;;;EAAA,SAvCA,iBAAA;EA0ET;;AAAO;;;EAAP,SAnES,kCAAA;;;;;;WAOA,mBAAA;;;;;;WAWA,uBAAA;;;;;;WAOA,mBAAA;;;;;;WAOA,gBAAA;;;;;;WAOA,qBAAA;;;;;;WAOA,cAAA;;;;;;WAcA,iBAAA;;;;;;EAOT,OAAA;AAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;;;;;;;;;;;AA2DA;UAAiB,kBAAA;EACf,OAAA,GAAU,
|
|
1
|
+
{"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;;;;;;;;;;;AA2DA;UAAiB,kBAAA;EACf,OAAA,GAAU,MAAM;EAChB,GAAA;AAAA;AAAA,KAKU,gBAAA,GACR,iBAAiB;AAAA,KAMT,YAAA,GACR,OAAO;AAAA,KASC,mBAAA,GAAsB,aAAa;AAAA,KAEnC,kBAAA,GAAqB,YAAY;AAAA,KAEjC,2BAAA,GAA8B,eAAe;AAAA,UAIxC,0BAAA;;EAEf,UAAA,GAAa,KAAA,UAAe,MAAA;EA1BT;EA4BnB,oBAAA,GAAuB,KAAA,UAAe,MAAA;EAtBhB;EAwBtB,wBAAA,GAA2B,KAAA,UAAe,MAAA;EAvBjC;EAyBT,oBAAA;AAAA;AAAA,UAGe,4BAAA;EACf,KAAA,GAAQ,0BAA0B;AAAA;AAAA,KAKxB,wBAAA,uBACV,OAAA,EAAS,OAAA,EACT,MAAA,EAAQ,aAAA,CAAc,OAAA,MACnB,UAAA;AAAA,KAEO,qBAAA,GACR,MAAA,mBACA,wBAAwB;;;;AA9BiB;UAsC5B,aAAA;EApCsB;;;AAAkB;EAyCvD,WAAA;EArCyC;;;;;;;EA8CzC,UAAA,GAAa,UAA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AoCd,aAAA,GAAgB,YAAA;EAtBD;EAyBf,KAAA,GAAQ,WAAA;AAAA;AAAA,UAKO,0BAAA,SAAmC,aAAA;EAX5B;;;;EAgBtB,MAAA,GAAS,mBAAA;EAzFT;;;;EA+FA,KAAA,GAAQ,kBAAA;EA5ER;;;EAiFA,GAAA,GAAM,gBAAA;AAAA;AAAA,KAGI,6BAAA,GAAgC,qBAAA,GAC1C,qBAAA,GACA,mBAAA;EACE,aAAA,EAAe,0BAAA;AAAA;AAAA,KAGP,iCAAA,GAAoC,yBAAA,GAC9C,yBAAA,GACA,uBAAA;EACE,aAAA,EAAe,0BAAA;AAAA;AAAA,UAGF,0BAAA,yBACS,iCAAA,GACtB,iCAAA,UAGA,kBAAA,CAAmB,eAAA,GACnB,kBAAA,CAAmB,eAAA,GACnB,gBAAA,CAAiB,eAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-open-telemetry",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.53",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A package containing a Powerlines plugin for registering OpenTelemetry integration at runtime.",
|
|
6
6
|
"keywords": [
|
|
@@ -87,9 +87,9 @@
|
|
|
87
87
|
"@alloy-js/json": "^0.23.0",
|
|
88
88
|
"@alloy-js/markdown": "^0.23.0",
|
|
89
89
|
"@alloy-js/typescript": "^0.23.0",
|
|
90
|
-
"@powerlines/plugin-alloy": "^0.26.
|
|
91
|
-
"@powerlines/plugin-automd": "^0.1.
|
|
92
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
90
|
+
"@powerlines/plugin-alloy": "^0.26.124",
|
|
91
|
+
"@powerlines/plugin-automd": "^0.1.502",
|
|
92
|
+
"@powerlines/plugin-plugin": "^0.12.453",
|
|
93
93
|
"@storm-software/config-tools": "^1.190.20",
|
|
94
94
|
"@stryke/convert": "^0.7.7",
|
|
95
95
|
"@stryke/env": "^0.20.93",
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"@stryke/types": "^0.12.4",
|
|
102
102
|
"automd": "^0.4.3",
|
|
103
103
|
"defu": "^6.1.7",
|
|
104
|
-
"powerlines": "^0.47.
|
|
104
|
+
"powerlines": "^0.47.41",
|
|
105
105
|
"c12": "^3.3.4"
|
|
106
106
|
},
|
|
107
107
|
"devDependencies": {
|
|
@@ -123,5 +123,5 @@
|
|
|
123
123
|
"@opentelemetry/sdk-trace-base": ">=2.0.0 <3.0.0"
|
|
124
124
|
},
|
|
125
125
|
"publishConfig": { "access": "public" },
|
|
126
|
-
"gitHead": "
|
|
126
|
+
"gitHead": "b5c7361d0ca942652f98baf11488435c7918fd65"
|
|
127
127
|
}
|