@intentius/chant-lexicon-otel 0.81.0
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/README.md +49 -0
- package/dist/catalog.d.ts +18 -0
- package/dist/catalog.d.ts.map +1 -0
- package/dist/codegen/docs-cli.d.ts +3 -0
- package/dist/codegen/docs-cli.d.ts.map +1 -0
- package/dist/codegen/docs.d.ts +8 -0
- package/dist/codegen/docs.d.ts.map +1 -0
- package/dist/codegen/generate-cli.d.ts +3 -0
- package/dist/codegen/generate-cli.d.ts.map +1 -0
- package/dist/codegen/generate.d.ts +19 -0
- package/dist/codegen/generate.d.ts.map +1 -0
- package/dist/codegen/package.d.ts +7 -0
- package/dist/codegen/package.d.ts.map +1 -0
- package/dist/collector.d.ts +29 -0
- package/dist/collector.d.ts.map +1 -0
- package/dist/components/common.d.ts +144 -0
- package/dist/components/common.d.ts.map +1 -0
- package/dist/components/exporters.d.ts +86 -0
- package/dist/components/exporters.d.ts.map +1 -0
- package/dist/components/extensions.d.ts +32 -0
- package/dist/components/extensions.d.ts.map +1 -0
- package/dist/components/index.d.ts +6 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/processors.d.ts +118 -0
- package/dist/components/processors.d.ts.map +1 -0
- package/dist/components/receivers.d.ts +118 -0
- package/dist/components/receivers.d.ts.map +1 -0
- package/dist/define.d.ts +136 -0
- package/dist/define.d.ts.map +1 -0
- package/dist/detect.d.ts +2 -0
- package/dist/detect.d.ts.map +1 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/integrity.json +25 -0
- package/dist/lint/audit-catalog.d.ts +13 -0
- package/dist/lint/audit-catalog.d.ts.map +1 -0
- package/dist/lint/post-synth/index.d.ts +3 -0
- package/dist/lint/post-synth/index.d.ts.map +1 -0
- package/dist/lint/post-synth/otel-helpers.d.ts +22 -0
- package/dist/lint/post-synth/otel-helpers.d.ts.map +1 -0
- package/dist/lint/post-synth/otel101.d.ts +8 -0
- package/dist/lint/post-synth/otel101.d.ts.map +1 -0
- package/dist/lint/post-synth/otel102.d.ts +8 -0
- package/dist/lint/post-synth/otel102.d.ts.map +1 -0
- package/dist/lint/post-synth/otel103.d.ts +8 -0
- package/dist/lint/post-synth/otel103.d.ts.map +1 -0
- package/dist/lint/post-synth/otel104.d.ts +8 -0
- package/dist/lint/post-synth/otel104.d.ts.map +1 -0
- package/dist/lint/post-synth/otel105.d.ts +8 -0
- package/dist/lint/post-synth/otel105.d.ts.map +1 -0
- package/dist/lint/post-synth/otel106.d.ts +8 -0
- package/dist/lint/post-synth/otel106.d.ts.map +1 -0
- package/dist/lint/post-synth/otel107.d.ts +8 -0
- package/dist/lint/post-synth/otel107.d.ts.map +1 -0
- package/dist/lint/post-synth/otel108.d.ts +8 -0
- package/dist/lint/post-synth/otel108.d.ts.map +1 -0
- package/dist/lint/post-synth/otel109.d.ts +8 -0
- package/dist/lint/post-synth/otel109.d.ts.map +1 -0
- package/dist/lint/rules/component-id-syntax.d.ts +14 -0
- package/dist/lint/rules/component-id-syntax.d.ts.map +1 -0
- package/dist/lint/rules/index.d.ts +6 -0
- package/dist/lint/rules/index.d.ts.map +1 -0
- package/dist/lint/rules/literal-credential.d.ts +13 -0
- package/dist/lint/rules/literal-credential.d.ts.map +1 -0
- package/dist/lint/rules/otel-ast.d.ts +14 -0
- package/dist/lint/rules/otel-ast.d.ts.map +1 -0
- package/dist/lsp/completions.d.ts +4 -0
- package/dist/lsp/completions.d.ts.map +1 -0
- package/dist/lsp/hover.d.ts +4 -0
- package/dist/lsp/hover.d.ts.map +1 -0
- package/dist/manifest.json +8 -0
- package/dist/meta.json +102 -0
- package/dist/model.d.ts +53 -0
- package/dist/model.d.ts.map +1 -0
- package/dist/okf/index.md +40 -0
- package/dist/okf/rules/OTEL001.md +15 -0
- package/dist/okf/rules/OTEL002.md +11 -0
- package/dist/okf/rules/OTEL101.md +11 -0
- package/dist/okf/rules/OTEL102.md +11 -0
- package/dist/okf/rules/OTEL103.md +11 -0
- package/dist/okf/rules/OTEL104.md +11 -0
- package/dist/okf/rules/OTEL105.md +11 -0
- package/dist/okf/rules/OTEL106.md +11 -0
- package/dist/okf/rules/OTEL107.md +11 -0
- package/dist/okf/rules/OTEL108.md +11 -0
- package/dist/okf/rules/OTEL109.md +11 -0
- package/dist/okf/types/AttributesProcessor.md +9 -0
- package/dist/okf/types/BatchProcessor.md +9 -0
- package/dist/okf/types/DebugExporter.md +9 -0
- package/dist/okf/types/FileLogReceiver.md +9 -0
- package/dist/okf/types/GoogleCloudExporter.md +9 -0
- package/dist/okf/types/HealthCheckExtension.md +9 -0
- package/dist/okf/types/HostMetricsReceiver.md +9 -0
- package/dist/okf/types/K8sAttributesProcessor.md +9 -0
- package/dist/okf/types/MemoryLimiterProcessor.md +9 -0
- package/dist/okf/types/OtlpExporter.md +9 -0
- package/dist/okf/types/OtlpHttpExporter.md +9 -0
- package/dist/okf/types/OtlpReceiver.md +9 -0
- package/dist/okf/types/Pipeline.md +13 -0
- package/dist/okf/types/PprofExtension.md +9 -0
- package/dist/okf/types/PrometheusExporter.md +9 -0
- package/dist/okf/types/PrometheusReceiver.md +9 -0
- package/dist/okf/types/ResourceDetectionProcessor.md +9 -0
- package/dist/okf/types/ResourceProcessor.md +9 -0
- package/dist/okf/types/Service.md +9 -0
- package/dist/okf/types/ZPagesExtension.md +9 -0
- package/dist/package-cli.d.ts +3 -0
- package/dist/package-cli.d.ts.map +1 -0
- package/dist/pipeline.d.ts +66 -0
- package/dist/pipeline.d.ts.map +1 -0
- package/dist/platform.d.ts +57 -0
- package/dist/platform.d.ts.map +1 -0
- package/dist/plugin.d.ts +11 -0
- package/dist/plugin.d.ts.map +1 -0
- package/dist/rules/component-id-syntax.ts +68 -0
- package/dist/rules/literal-credential.ts +62 -0
- package/dist/rules/otel-ast.ts +30 -0
- package/dist/rules/otel-helpers.ts +70 -0
- package/dist/rules/otel101.ts +17 -0
- package/dist/rules/otel102.ts +17 -0
- package/dist/rules/otel103.ts +17 -0
- package/dist/rules/otel104.ts +17 -0
- package/dist/rules/otel105.ts +17 -0
- package/dist/rules/otel106.ts +17 -0
- package/dist/rules/otel107.ts +17 -0
- package/dist/rules/otel108.ts +17 -0
- package/dist/rules/otel109.ts +17 -0
- package/dist/serializer.d.ts +16 -0
- package/dist/serializer.d.ts.map +1 -0
- package/dist/skill-defs.d.ts +3 -0
- package/dist/skill-defs.d.ts.map +1 -0
- package/dist/skills/chant-otel-custom-components.md +51 -0
- package/dist/skills/chant-otel-platforms.md +34 -0
- package/dist/skills/chant-otel.md +60 -0
- package/dist/topology.d.ts +56 -0
- package/dist/topology.d.ts.map +1 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/validate-cli.d.ts +3 -0
- package/dist/validate-cli.d.ts.map +1 -0
- package/dist/validate-config.d.ts +30 -0
- package/dist/validate-config.d.ts.map +1 -0
- package/dist/validate.d.ts +11 -0
- package/dist/validate.d.ts.map +1 -0
- package/dist/yaml.d.ts +27 -0
- package/dist/yaml.d.ts.map +1 -0
- package/package.json +74 -0
- package/src/catalog.ts +56 -0
- package/src/codegen/docs-cli.ts +4 -0
- package/src/codegen/docs.ts +90 -0
- package/src/codegen/generate-cli.ts +8 -0
- package/src/codegen/generate.ts +50 -0
- package/src/codegen/package.ts +41 -0
- package/src/collector.ts +147 -0
- package/src/components/common.ts +151 -0
- package/src/components/exporters.ts +141 -0
- package/src/components/extensions.ts +51 -0
- package/src/components/index.ts +5 -0
- package/src/components/processors.ts +208 -0
- package/src/components/receivers.ts +177 -0
- package/src/define.test.ts +131 -0
- package/src/define.ts +249 -0
- package/src/detect.ts +11 -0
- package/src/generated/lexicon-otel.json +102 -0
- package/src/index.ts +73 -0
- package/src/lint/audit-catalog.ts +102 -0
- package/src/lint/post-synth/index.ts +23 -0
- package/src/lint/post-synth/otel-helpers.ts +70 -0
- package/src/lint/post-synth/otel101.ts +17 -0
- package/src/lint/post-synth/otel102.ts +17 -0
- package/src/lint/post-synth/otel103.ts +17 -0
- package/src/lint/post-synth/otel104.ts +17 -0
- package/src/lint/post-synth/otel105.ts +17 -0
- package/src/lint/post-synth/otel106.ts +17 -0
- package/src/lint/post-synth/otel107.ts +17 -0
- package/src/lint/post-synth/otel108.ts +17 -0
- package/src/lint/post-synth/otel109.ts +17 -0
- package/src/lint/post-synth/post-synth.test.ts +184 -0
- package/src/lint/rules/component-id-syntax.ts +68 -0
- package/src/lint/rules/index.ts +9 -0
- package/src/lint/rules/literal-credential.ts +62 -0
- package/src/lint/rules/otel-ast.ts +30 -0
- package/src/lint/rules/rules.test.ts +70 -0
- package/src/lsp/completions.test.ts +23 -0
- package/src/lsp/completions.ts +15 -0
- package/src/lsp/hover.test.ts +20 -0
- package/src/lsp/hover.ts +30 -0
- package/src/model.ts +88 -0
- package/src/package-cli.ts +17 -0
- package/src/pipeline.ts +89 -0
- package/src/platform.test.ts +79 -0
- package/src/platform.ts +143 -0
- package/src/plugin.test.ts +55 -0
- package/src/plugin.ts +111 -0
- package/src/serializer.test.ts +187 -0
- package/src/serializer.ts +31 -0
- package/src/skill-defs.ts +36 -0
- package/src/skills/chant-otel-custom-components.md +51 -0
- package/src/skills/chant-otel-platforms.md +34 -0
- package/src/skills/chant-otel.md +60 -0
- package/src/topology.test.ts +80 -0
- package/src/topology.ts +122 -0
- package/src/validate-cli.ts +7 -0
- package/src/validate-config.ts +232 -0
- package/src/validate.ts +82 -0
- package/src/yaml.test.ts +56 -0
- package/src/yaml.ts +145 -0
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Built-in receivers: otlp, prometheus, hostmetrics, filelog.
|
|
3
|
+
*/
|
|
4
|
+
import type { Duration, GRPCServerSettings, HTTPServerSettings, TLSClientSettings } from "./common.js";
|
|
5
|
+
export interface OtlpReceiverConfig {
|
|
6
|
+
protocols?: {
|
|
7
|
+
grpc?: GRPCServerSettings | null;
|
|
8
|
+
http?: (HTTPServerSettings & {
|
|
9
|
+
traces_url_path?: string;
|
|
10
|
+
metrics_url_path?: string;
|
|
11
|
+
logs_url_path?: string;
|
|
12
|
+
}) | null;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
/** Receives OTLP over gRPC (default port 4317) and HTTP (default port 4318). */
|
|
16
|
+
export declare const OtlpReceiver: import("../index.js").ComponentClass<"receiver", "otlp", OtlpReceiverConfig>;
|
|
17
|
+
export interface PrometheusStaticConfig {
|
|
18
|
+
targets: string[];
|
|
19
|
+
labels?: Record<string, string>;
|
|
20
|
+
}
|
|
21
|
+
/** One Prometheus scrape job. Service-discovery and relabel blocks pass through as written. */
|
|
22
|
+
export interface PrometheusScrapeConfig {
|
|
23
|
+
job_name: string;
|
|
24
|
+
scrape_interval?: Duration;
|
|
25
|
+
scrape_timeout?: Duration;
|
|
26
|
+
metrics_path?: string;
|
|
27
|
+
scheme?: "http" | "https";
|
|
28
|
+
honor_labels?: boolean;
|
|
29
|
+
honor_timestamps?: boolean;
|
|
30
|
+
params?: Record<string, string[]>;
|
|
31
|
+
static_configs?: PrometheusStaticConfig[];
|
|
32
|
+
kubernetes_sd_configs?: Array<Record<string, unknown>>;
|
|
33
|
+
file_sd_configs?: Array<Record<string, unknown>>;
|
|
34
|
+
relabel_configs?: Array<Record<string, unknown>>;
|
|
35
|
+
metric_relabel_configs?: Array<Record<string, unknown>>;
|
|
36
|
+
tls_config?: Record<string, unknown>;
|
|
37
|
+
authorization?: {
|
|
38
|
+
type?: string;
|
|
39
|
+
credentials_file?: string;
|
|
40
|
+
};
|
|
41
|
+
bearer_token_file?: string;
|
|
42
|
+
sample_limit?: number;
|
|
43
|
+
}
|
|
44
|
+
export interface PrometheusReceiverConfig {
|
|
45
|
+
config: {
|
|
46
|
+
global?: {
|
|
47
|
+
scrape_interval?: Duration;
|
|
48
|
+
scrape_timeout?: Duration;
|
|
49
|
+
evaluation_interval?: Duration;
|
|
50
|
+
external_labels?: Record<string, string>;
|
|
51
|
+
};
|
|
52
|
+
scrape_configs: PrometheusScrapeConfig[];
|
|
53
|
+
};
|
|
54
|
+
trim_metric_suffixes?: boolean;
|
|
55
|
+
use_start_time_metric?: boolean;
|
|
56
|
+
start_time_metric_regex?: string;
|
|
57
|
+
target_allocator?: {
|
|
58
|
+
endpoint: string;
|
|
59
|
+
interval?: Duration;
|
|
60
|
+
collector_id?: string;
|
|
61
|
+
tls?: TLSClientSettings;
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
/** Scrapes Prometheus endpoints with Prometheus's own scrape config. */
|
|
65
|
+
export declare const PrometheusReceiver: import("../index.js").ComponentClass<"receiver", "prometheus", PrometheusReceiverConfig>;
|
|
66
|
+
export type HostMetricsScraper = "cpu" | "disk" | "load" | "filesystem" | "memory" | "network" | "paging" | "processes" | "process" | "system";
|
|
67
|
+
export interface HostMetricsReceiverConfig {
|
|
68
|
+
collection_interval?: Duration;
|
|
69
|
+
initial_delay?: Duration;
|
|
70
|
+
/** Host root when the collector runs in a container, e.g. `/hostfs`. */
|
|
71
|
+
root_path?: string;
|
|
72
|
+
/** Scraper name to its settings; `{}` enables a scraper with its defaults. */
|
|
73
|
+
scrapers: Partial<Record<HostMetricsScraper, Record<string, unknown>>>;
|
|
74
|
+
}
|
|
75
|
+
/** Scrapes CPU, memory, disk, filesystem, network and process metrics from the host. */
|
|
76
|
+
export declare const HostMetricsReceiver: import("../index.js").ComponentClass<"receiver", "hostmetrics", HostMetricsReceiverConfig>;
|
|
77
|
+
/** A stanza operator (`regex_parser`, `json_parser`, `move`, …). Its other keys depend on `type`. */
|
|
78
|
+
export interface FileLogOperator {
|
|
79
|
+
type: string;
|
|
80
|
+
id?: string;
|
|
81
|
+
output?: string | string[];
|
|
82
|
+
[key: string]: unknown;
|
|
83
|
+
}
|
|
84
|
+
export interface FileLogReceiverConfig {
|
|
85
|
+
include: string[];
|
|
86
|
+
exclude?: string[];
|
|
87
|
+
start_at?: "beginning" | "end";
|
|
88
|
+
include_file_name?: boolean;
|
|
89
|
+
include_file_path?: boolean;
|
|
90
|
+
include_file_name_resolved?: boolean;
|
|
91
|
+
include_file_path_resolved?: boolean;
|
|
92
|
+
poll_interval?: Duration;
|
|
93
|
+
max_concurrent_files?: number;
|
|
94
|
+
max_log_size?: string;
|
|
95
|
+
fingerprint_size?: string;
|
|
96
|
+
encoding?: string;
|
|
97
|
+
force_flush_period?: Duration;
|
|
98
|
+
delete_after_read?: boolean;
|
|
99
|
+
/** The id of a storage extension, so offsets survive a restart. */
|
|
100
|
+
storage?: string;
|
|
101
|
+
multiline?: {
|
|
102
|
+
line_start_pattern?: string;
|
|
103
|
+
line_end_pattern?: string;
|
|
104
|
+
omit_pattern?: boolean;
|
|
105
|
+
};
|
|
106
|
+
operators?: FileLogOperator[];
|
|
107
|
+
attributes?: Record<string, string>;
|
|
108
|
+
resource?: Record<string, string>;
|
|
109
|
+
retry_on_failure?: {
|
|
110
|
+
enabled?: boolean;
|
|
111
|
+
initial_interval?: Duration;
|
|
112
|
+
max_interval?: Duration;
|
|
113
|
+
max_elapsed_time?: Duration;
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
/** Tails log files and parses them with stanza operators. */
|
|
117
|
+
export declare const FileLogReceiver: import("../index.js").ComponentClass<"receiver", "filelog", FileLogReceiverConfig>;
|
|
118
|
+
//# sourceMappingURL=receivers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"receivers.d.ts","sourceRoot":"","sources":["../../src/components/receivers.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,EAAE,QAAQ,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAIpG,MAAM,WAAW,kBAAkB;IACjC,SAAS,CAAC,EAAE;QACV,IAAI,CAAC,EAAE,kBAAkB,GAAG,IAAI,CAAC;QACjC,IAAI,CAAC,EACD,CAAC,kBAAkB,GAAG;YACpB,eAAe,CAAC,EAAE,MAAM,CAAC;YACzB,gBAAgB,CAAC,EAAE,MAAM,C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AC;QAAC,gBAAgB,CAAC,EAAE,QAAQ,CAAC;QAAC,YAAY,CAAC,EAAE,QAAQ,CAAC;QAAC,gBAAgB,CAAC,EAAE,QAAQ,CAAA;KAAE,CAAC;CAC7H;AAED,6DAA6D;AAC7D,eAAO,MAAM,eAAe,2EAM1B,CAAC"}
|
package/dist/define.d.ts
ADDED
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `defineComponent()`, the one way a collector component type enters this
|
|
3
|
+
* lexicon.
|
|
4
|
+
*
|
|
5
|
+
* The built-in receivers, processors, exporters and extensions are defined
|
|
6
|
+
* through it, and so is a component a team or plugin adds for something chant
|
|
7
|
+
* doesn't ship (a vendor exporter, an in-house processor). Both produce the
|
|
8
|
+
* same kind of class, register in the same table, serialize through the same
|
|
9
|
+
* code and are checked by the same post-synth checks, so there is no second
|
|
10
|
+
* path for a custom component to fall off.
|
|
11
|
+
*
|
|
12
|
+
* ## Schema pinning
|
|
13
|
+
*
|
|
14
|
+
* Every definition carries a `pin`: the source its config type was written
|
|
15
|
+
* against and the version of that source. Built-ins share `COLLECTOR_PIN`,
|
|
16
|
+
* which moves only when this package does, so the chant lexicon version pins
|
|
17
|
+
* them. A custom definition must name its own pin, typically the npm package
|
|
18
|
+
* (or Go module) that ships the component and the release its type follows,
|
|
19
|
+
* optionally with a digest of the schema document. chant records the pin; it
|
|
20
|
+
* does not fetch or verify the schema. The pin shows up in three places:
|
|
21
|
+
*
|
|
22
|
+
* - `collectorTopology()` reports it for every component, built-in or not.
|
|
23
|
+
* - The serializer writes a `# chant:` comment line per custom component at
|
|
24
|
+
* the top of the emitted YAML, so the file says which schema each
|
|
25
|
+
* non-built-in component was checked against. The collector ignores it.
|
|
26
|
+
* - OTEL109 fails a build whose custom component has no usable pin.
|
|
27
|
+
*/
|
|
28
|
+
import type { Declarable } from "@intentius/chant/declarable";
|
|
29
|
+
import { type ComponentKind } from "./model.js";
|
|
30
|
+
/** Where a component's config schema comes from, and which version of it the type follows. */
|
|
31
|
+
export interface SchemaPin {
|
|
32
|
+
/** The package, Go module or URL that defines the component's config, e.g. `@acme/otel-datadog`. */
|
|
33
|
+
source: string;
|
|
34
|
+
/** The version of `source` the TypeScript config type was written against. */
|
|
35
|
+
version: string;
|
|
36
|
+
/** Optional digest of the schema document itself, e.g. `sha256:…`. Recorded as given. */
|
|
37
|
+
digest?: string;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* The collector distribution the built-in config types follow. Bumping it is a
|
|
41
|
+
* lexicon change like any other, released with this package.
|
|
42
|
+
*/
|
|
43
|
+
export declare const COLLECTOR_PIN: SchemaPin;
|
|
44
|
+
/** A zod-compatible schema: anything with `safeParse`. Keeps zod optional. */
|
|
45
|
+
export interface SafeParseSchema {
|
|
46
|
+
safeParse(value: unknown): {
|
|
47
|
+
success: boolean;
|
|
48
|
+
error?: {
|
|
49
|
+
issues?: Array<{
|
|
50
|
+
path?: ReadonlyArray<PropertyKey>;
|
|
51
|
+
message: string;
|
|
52
|
+
}>;
|
|
53
|
+
message?: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
/** A config check: a function returning problems, or a zod-compatible schema. */
|
|
58
|
+
export type ConfigValidator<C> = ((config: C) => string[]) | SafeParseSchema;
|
|
59
|
+
export interface ComponentDefinition<K extends ComponentKind = ComponentKind, T extends string = string, C = Record<string, unknown>> {
|
|
60
|
+
kind: K;
|
|
61
|
+
/** The collector type, the part of the id before `/`. */
|
|
62
|
+
type: T;
|
|
63
|
+
/** Where the config schema comes from. Required for a custom component. */
|
|
64
|
+
pin: SchemaPin;
|
|
65
|
+
/** True only for the components this package ships. */
|
|
66
|
+
builtin: boolean;
|
|
67
|
+
/** One line for hover and docs. */
|
|
68
|
+
description?: string;
|
|
69
|
+
/** Extra checks on the config beyond what its TypeScript type enforces (OTEL107). */
|
|
70
|
+
validate?: ConfigValidator<C>;
|
|
71
|
+
/** Where this component sends or listens, for `collectorTopology()`. */
|
|
72
|
+
endpoints?: (config: C) => string[];
|
|
73
|
+
}
|
|
74
|
+
/** What a custom component supplies. `builtin` is always false for these. */
|
|
75
|
+
export type CustomComponentOptions<K extends ComponentKind, T extends string, C> = Omit<ComponentDefinition<K, T, C>, "builtin">;
|
|
76
|
+
/** Constructor props: the component's own config plus the optional instance `name`. */
|
|
77
|
+
export type ComponentProps<C> = C & {
|
|
78
|
+
/** The instance name. The component id becomes `type/name`; without it the id is just `type`. */
|
|
79
|
+
name?: string;
|
|
80
|
+
};
|
|
81
|
+
/** A declared collector component. */
|
|
82
|
+
export interface OTelComponent<K extends ComponentKind = ComponentKind, T extends string = string, C = Record<string, unknown>> extends Declarable {
|
|
83
|
+
readonly props: ComponentProps<C>;
|
|
84
|
+
readonly componentKind: K;
|
|
85
|
+
readonly componentType: T;
|
|
86
|
+
/** The collector id, `type` or `type/name`. */
|
|
87
|
+
readonly componentId: string;
|
|
88
|
+
}
|
|
89
|
+
type CtorArgs<C> = {} extends C ? [props?: ComponentProps<C>] : [props: ComponentProps<C>];
|
|
90
|
+
export interface ComponentClass<K extends ComponentKind = ComponentKind, T extends string = string, C = Record<string, unknown>> {
|
|
91
|
+
new (...args: CtorArgs<C>): OTelComponent<K, T, C>;
|
|
92
|
+
readonly definition: ComponentDefinition<K, T, C>;
|
|
93
|
+
}
|
|
94
|
+
/** The chant entity type for a component, e.g. `OTel::Exporter::otlp`. */
|
|
95
|
+
export declare function componentEntityType(kind: ComponentKind, type: string): string;
|
|
96
|
+
/** The definition behind an entity type, if one has been registered in this process. */
|
|
97
|
+
export declare function definitionFor(entityType: string): ComponentDefinition | undefined;
|
|
98
|
+
/** The definition for a collector `kind` + `type`, e.g. the built-in `exporter` `otlp`. */
|
|
99
|
+
export declare function definitionOf(kind: ComponentKind, type: string): ComponentDefinition | undefined;
|
|
100
|
+
/** Every registered definition, built-ins first in registration order. */
|
|
101
|
+
export declare function registeredDefinitions(): ComponentDefinition[];
|
|
102
|
+
/** Internal: how the built-ins in `./components` are defined. */
|
|
103
|
+
export declare function defineBuiltin<C, K extends ComponentKind = ComponentKind, T extends string = string>(def: Omit<ComponentDefinition<K, T, C>, "builtin" | "pin">): ComponentClass<K, T, C>;
|
|
104
|
+
/**
|
|
105
|
+
* Define a collector component chant doesn't ship.
|
|
106
|
+
*
|
|
107
|
+
* @example
|
|
108
|
+
* ```ts
|
|
109
|
+
* interface DatadogExporterConfig {
|
|
110
|
+
* api: { key: string; site?: string };
|
|
111
|
+
* traces?: { span_name_as_resource_name?: boolean };
|
|
112
|
+
* }
|
|
113
|
+
*
|
|
114
|
+
* export const DatadogExporter = defineComponent<DatadogExporterConfig>()({
|
|
115
|
+
* kind: "exporter",
|
|
116
|
+
* type: "datadog",
|
|
117
|
+
* pin: { source: "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/datadogexporter", version: "v0.130.0" },
|
|
118
|
+
* validate: (c) => (c.api.key.startsWith("${env:") ? [] : ["api.key should come from ${env:...}"]),
|
|
119
|
+
* endpoints: (c) => [`https://api.${c.api.site ?? "datadoghq.com"}`],
|
|
120
|
+
* });
|
|
121
|
+
*
|
|
122
|
+
* export const dd = new DatadogExporter({ api: { key: "${env:DD_API_KEY}" } });
|
|
123
|
+
* ```
|
|
124
|
+
*
|
|
125
|
+
* The curried form lets you name the config type while `kind` and `type` are
|
|
126
|
+
* still inferred from the literal you pass.
|
|
127
|
+
*/
|
|
128
|
+
export declare function defineComponent<C>(): <K extends ComponentKind, T extends string>(options: CustomComponentOptions<K, T, C>) => ComponentClass<K, T, C>;
|
|
129
|
+
/** True when `value` is a declared collector component (built-in or custom). */
|
|
130
|
+
export declare function isOTelComponent(value: unknown): value is OTelComponent;
|
|
131
|
+
/** Run a definition's validator, normalising both validator forms to a list of messages. */
|
|
132
|
+
export declare function runValidator<C>(validator: ConfigValidator<C> | undefined, config: C): string[];
|
|
133
|
+
/** A pin is usable when it names a source and a version. */
|
|
134
|
+
export declare function isUsablePin(pin: unknown): pin is SchemaPin;
|
|
135
|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AC,CAAC,CAG3B;AAED,gFAAgF;AAChF,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,aAAa,CAQtE;AAED,4FAA4F;AAC5F,wBAAgB,YAAY,CAAC,CAAC,EAAE,SAAS,EAAE,eAAe,CAAC,CAAC,CAAC,GAAG,SAAS,EAAE,MAAM,EAAE,CAAC,GAAG,MAAM,EAAE,CAW9F;AAED,4DAA4D;AAC5D,wBAAgB,WAAW,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,SAAS,CAI1D"}
|
package/dist/detect.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"detect.d.ts","sourceRoot":"","sources":["../src/detect.ts"],"names":[],"mappings":"AAQA,wBAAgB,cAAc,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO,CAErD"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { otelPlugin } from "./plugin.js";
|
|
2
|
+
export { otelSerializer } from "./serializer.js";
|
|
3
|
+
export * from "./components/index.js";
|
|
4
|
+
export { Pipeline, Service, PIPELINE_TYPE, SERVICE_TYPE, isPipelineEntity, isServiceEntity, type ComponentRef, type PipelineProps, type PipelineEntity, type ServiceProps, type ServiceEntity, type ServiceTelemetry, } from "./pipeline.js";
|
|
5
|
+
export { defineComponent, definitionFor, definitionOf, registeredDefinitions, componentEntityType, isOTelComponent, COLLECTOR_PIN, type SchemaPin, type SafeParseSchema, type ConfigValidator, type ComponentDefinition, type CustomComponentOptions, type ComponentProps, type ComponentClass, type OTelComponent, } from "./define.js";
|
|
6
|
+
export * from "./model.js";
|
|
7
|
+
export { buildCollectorConfig, collectorYaml, componentConfig, type BuiltCollector } from "./collector.js";
|
|
8
|
+
export { emitCollectorYaml, type EmitOptions } from "./yaml.js";
|
|
9
|
+
export { validateCollectorConfig, validateCollectorEntities, type CollectorIssue, type CollectorIssueCode, } from "./validate-config.js";
|
|
10
|
+
export { collectorTopology, collectorTopologyOf, type CollectorTopology, type TopologyPipeline, type TopologyComponent, type TopologyExporter, } from "./topology.js";
|
|
11
|
+
export { otlpCollector, collectorEndpoints, COLLECTOR_IMAGE, COLLECTOR_CONFIG_PATH, type OtlpCollectorOptions, type CollectorPort, type CollectorEndpoints, } from "./platform.js";
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAG9C,cAAc,cAAc,CAAC;AAG7B,OAAO,EACL,QAAQ,EACR,OAAO,EACP,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,eAAe,EACf,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,gBAAgB,GACtB,MAAM,YAAY,CAAC;AAGpB,OAAO,EACL,eAAe,EACf,aAAa,EACb,YAAY,EACZ,qBAAqB,EACrB,mBAAmB,EACnB,eAAe,EACf,aAAa,EACb,KAAK,SAAS,EACd,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,aAAa,GACnB,MAAM,UAAU,CAAC;AAGlB,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,oBAAoB,EAAE,aAAa,EAAE,eAAe,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AACxG,OAAO,EAAE,iBAAiB,EAAE,KAAK,WAAW,EAAE,MAAM,QAAQ,CAAC;AAC7D,OAAO,EACL,uBAAuB,EACvB,yBAAyB,EACzB,KAAK,cAAc,EACnB,KAAK,kBAAkB,GACxB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EACnB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,GACtB,MAAM,YAAY,CAAC;AAGpB,OAAO,EACL,aAAa,EACb,kBAAkB,EAClB,eAAe,EACf,qBAAqB,EACrB,KAAK,oBAAoB,EACzB,KAAK,aAAa,EAClB,KAAK,kBAAkB,GACxB,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"algorithm": "sha256",
|
|
3
|
+
"artifacts": {
|
|
4
|
+
"manifest.json": "cadef98bd77da449fc3bc1d7075ef6fb0279f8abcf6bfa8d184021d45f77ec37",
|
|
5
|
+
"meta.json": "71cb0ffb29568f7c915c02f0883149af2e972228502885a847ec2989feca4a0a",
|
|
6
|
+
"types/index.d.ts": "a1070fd1cb3e8d8a9002fc5a75a80b3bdda02965be351e8aed2dbc2f63d36e3c",
|
|
7
|
+
"rules/component-id-syntax.ts": "95f507614d2626159140d906bce9d086e8ecba18ede22f5ddfbda13ac1c08169",
|
|
8
|
+
"rules/literal-credential.ts": "7a48049b25a157cb36942399d5fcec810e9aba4c6fc318fb5b098296eb37069c",
|
|
9
|
+
"rules/otel-ast.ts": "cf286102f778bd010d130ad8de6adc279de517fffffcd49d7cfb3c419b4bec66",
|
|
10
|
+
"rules/otel-helpers.ts": "10012bfd7e90d5db57e759b3a34ce2e6c22a66b545f5952683537c90793d4d03",
|
|
11
|
+
"rules/otel101.ts": "28315d1431075fd830fdfd9bcc599e46d92db287f438ce3b7cfede004c54e8e0",
|
|
12
|
+
"rules/otel102.ts": "4b3612bc28097e46b33d6f7b187903fe1ecba4e5bda88189e9b1a5aaf37062a8",
|
|
13
|
+
"rules/otel103.ts": "2f5f5b343c46535450da7845e811a0bcdcf49842cf336358e42c2716edd2506c",
|
|
14
|
+
"rules/otel104.ts": "f7f3a7110cb9d1565b5d39ee18caa0029cfe3a1fafb6118dfcdaf70ea81fd75d",
|
|
15
|
+
"rules/otel105.ts": "f1eaf43ac59ff300f970eda637addfc6c60d16860f8b675b0f0a84f8af316561",
|
|
16
|
+
"rules/otel106.ts": "7b6b5c5f1a1c15a114624c0b9f45af9db02b8b792c616c0e909136083ac93e6d",
|
|
17
|
+
"rules/otel107.ts": "db5d7c8a23d510159e203ed101ce71b23f1e0319b60ee4b1445fe7a0d973d978",
|
|
18
|
+
"rules/otel108.ts": "5eddca667b3ec563a1a7bc745139738d438c4307b4861b999a4d8cff975856b6",
|
|
19
|
+
"rules/otel109.ts": "db025b5f09cc8c5199b420fdfd6e4bae0dd5abd1860903d8c9b4d625162a32b9",
|
|
20
|
+
"skills/chant-otel.md": "16c6ccce89122de3f767f089ebcce7ca6c64ce3ef3db4f5329aa8f754eb72212",
|
|
21
|
+
"skills/chant-otel-custom-components.md": "82e53bb482281f79b428e66fb80a1c194ead74a1a34a88bbebb11c6ad5493258",
|
|
22
|
+
"skills/chant-otel-platforms.md": "c90836952dc5c88d668b890152a5063bdb656bce73fc7fa3233a3ea58ad85686"
|
|
23
|
+
},
|
|
24
|
+
"composite": "e0471742992c66477de5028c98d123f3320ab62028051d33189f02d0e1f7b97f"
|
|
25
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The otel lexicon's chant audit catalog, contributed via
|
|
3
|
+
* `otelPlugin.auditCatalog()` (#687, #1346).
|
|
4
|
+
*
|
|
5
|
+
* OTEL101-OTEL106 read the emitted collector YAML, so they are `yamlBased`.
|
|
6
|
+
* OTEL107-OTEL109 read the declared entities (a component's definition, its
|
|
7
|
+
* schema pin), which a standalone YAML file does not carry, so they are
|
|
8
|
+
* constructed with `yamlBased: false`. The two source-level lint rules are
|
|
9
|
+
* listed too, for a reader who meets them in a lint report.
|
|
10
|
+
*/
|
|
11
|
+
import { type RuleMeta } from "@intentius/chant/audit/catalog";
|
|
12
|
+
export declare const otelAuditCatalog: Record<string, RuleMeta>;
|
|
13
|
+
//# sourceMappingURL=audit-catalog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audit-catalog.d.ts","sourceRoot":"","sources":["../../src/lint/audit-catalog.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAW1E,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CA+ErD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lint/post-synth/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAWvE,eAAO,MAAM,eAAe,EAAE,cAAc,EAU3C,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared plumbing for the otel post-synth checks: find the collector configs
|
|
3
|
+
* in a build's output, and run the plain-function checks over them.
|
|
4
|
+
*/
|
|
5
|
+
import type { PostSynthContext, PostSynthDiagnostic } from "@intentius/chant/lint/post-synth";
|
|
6
|
+
import { type CollectorConfig } from "../../model.js";
|
|
7
|
+
import { type CollectorIssueCode } from "../../validate-config.js";
|
|
8
|
+
/**
|
|
9
|
+
* Every collector config in the output: the otel lexicon's own, and any YAML
|
|
10
|
+
* document shaped like one. Parsed with js-yaml rather than `ctx.docs`,
|
|
11
|
+
* because collector configs are written with flow lists (`[otlp, batch]`)
|
|
12
|
+
* that core's small YAML reader keeps as strings.
|
|
13
|
+
*/
|
|
14
|
+
export declare function collectorConfigs(ctx: PostSynthContext): Array<{
|
|
15
|
+
source: string;
|
|
16
|
+
config: CollectorConfig;
|
|
17
|
+
}>;
|
|
18
|
+
/** Diagnostics for one config-level code (OTEL101-OTEL106) across every collector config in the output. */
|
|
19
|
+
export declare function configDiagnostics(ctx: PostSynthContext, code: CollectorIssueCode): PostSynthDiagnostic[];
|
|
20
|
+
/** Diagnostics for one entity-level code (OTEL107-OTEL109) over the build's otel entities. */
|
|
21
|
+
export declare function entityDiagnostics(ctx: PostSynthContext, code: CollectorIssueCode): PostSynthDiagnostic[];
|
|
22
|
+
//# sourceMappingURL=otel-helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"otel-helpers.d.ts","sourceRoot":"","sources":["../../../src/lint/post-synth/otel-helpers.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAI9F,OAAO,EAA4B,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AAC7E,OAAO,EAAsD,KAAK,kBAAkB,EAAuB,MAAM,uBAAuB,CAAC;AAEzI;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,gBAAgB,GAAG,KAAK,CAAC;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,eAAe,CAAA;CAAE,CAAC,CAwB1G;AAYD,2GAA2G;AAC3G,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,gBAAgB,EAAE,IAAI,EAAE,kBAAkB,GAAG,mBAAmB,EAAE,CAMxG;AAED,8FAA8F;AAC9F,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,gBAAgB,EAAE,IAAI,EAAE,kBAAkB,GAAG,mBAAmB,EAAE,CAKxG"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OTEL101: A pipeline uses a receiver, processor or exporter that is not declared
|
|
3
|
+
*
|
|
4
|
+
* The collector refuses to start on this. Typed entity references cannot go wrong this way, so it mostly catches id strings (`"otlp/backend"`) and hand-edited or parsed configs. A connector id is accepted in receivers and exporters.
|
|
5
|
+
*/
|
|
6
|
+
import type { PostSynthCheck } from "@intentius/chant/lint/post-synth";
|
|
7
|
+
export declare const otel101: PostSynthCheck;
|
|
8
|
+
//# sourceMappingURL=otel101.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"otel101.d.ts","sourceRoot":"","sources":["../../../src/lint/post-synth/otel101.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAyC,MAAM,kCAAkC,CAAC;AAG9G,eAAO,MAAM,OAAO,EAAE,cAOrB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OTEL102: A pipeline has no receivers or no exporters
|
|
3
|
+
*
|
|
4
|
+
* A pipeline with no receivers takes in nothing, and one with no exporters sends what it takes in nowhere. The collector rejects both at start.
|
|
5
|
+
*/
|
|
6
|
+
import type { PostSynthCheck } from "@intentius/chant/lint/post-synth";
|
|
7
|
+
export declare const otel102: PostSynthCheck;
|
|
8
|
+
//# sourceMappingURL=otel102.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"otel102.d.ts","sourceRoot":"","sources":["../../../src/lint/post-synth/otel102.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAyC,MAAM,kCAAkC,CAAC;AAG9G,eAAO,MAAM,OAAO,EAAE,cAOrB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OTEL103: A declared component is never used
|
|
3
|
+
*
|
|
4
|
+
* A receiver, processor or exporter no pipeline lists, or an extension missing from service.extensions, is ignored by the collector. Usually it means a pipeline was meant to list it. A warning, since the config still runs.
|
|
5
|
+
*/
|
|
6
|
+
import type { PostSynthCheck } from "@intentius/chant/lint/post-synth";
|
|
7
|
+
export declare const otel103: PostSynthCheck;
|
|
8
|
+
//# sourceMappingURL=otel103.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"otel103.d.ts","sourceRoot":"","sources":["../../../src/lint/post-synth/otel103.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAyC,MAAM,kCAAkC,CAAC;AAG9G,eAAO,MAAM,OAAO,EAAE,cAOrB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OTEL104: service.extensions enables an extension that is not declared
|
|
3
|
+
*
|
|
4
|
+
* The collector refuses to start when service.extensions names an id with no entry under extensions.
|
|
5
|
+
*/
|
|
6
|
+
import type { PostSynthCheck } from "@intentius/chant/lint/post-synth";
|
|
7
|
+
export declare const otel104: PostSynthCheck;
|
|
8
|
+
//# sourceMappingURL=otel104.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"otel104.d.ts","sourceRoot":"","sources":["../../../src/lint/post-synth/otel104.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAyC,MAAM,kCAAkC,CAAC;AAG9G,eAAO,MAAM,OAAO,EAAE,cAOrB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OTEL105: memory_limiter is not the first processor in a pipeline
|
|
3
|
+
*
|
|
4
|
+
* The collector's own guidance puts memory_limiter first, so it can refuse data before any other processor buffers it. Later in the chain it limits too late to protect the process.
|
|
5
|
+
*/
|
|
6
|
+
import type { PostSynthCheck } from "@intentius/chant/lint/post-synth";
|
|
7
|
+
export declare const otel105: PostSynthCheck;
|
|
8
|
+
//# sourceMappingURL=otel105.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"otel105.d.ts","sourceRoot":"","sources":["../../../src/lint/post-synth/otel105.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAyC,MAAM,kCAAkC,CAAC;AAG9G,eAAO,MAAM,OAAO,EAAE,cAOrB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OTEL106: A pipeline id or component reference is not valid collector syntax
|
|
3
|
+
*
|
|
4
|
+
* A pipeline id is a signal (traces, metrics, logs) optionally followed by /name, and every reference is type or type/name. Anything else is a config error at collector start.
|
|
5
|
+
*/
|
|
6
|
+
import type { PostSynthCheck } from "@intentius/chant/lint/post-synth";
|
|
7
|
+
export declare const otel106: PostSynthCheck;
|
|
8
|
+
//# sourceMappingURL=otel106.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"otel106.d.ts","sourceRoot":"","sources":["../../../src/lint/post-synth/otel106.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAyC,MAAM,kCAAkC,CAAC;AAG9G,eAAO,MAAM,OAAO,EAAE,cAOrB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OTEL107: A component's config breaks its definition's rules
|
|
3
|
+
*
|
|
4
|
+
* Each component definition, built-in or custom, can check its own config beyond what the TypeScript type says: memory_limiter needs a limit, filelog needs an include, and so on. A custom component supplies its checks through defineComponent's validate.
|
|
5
|
+
*/
|
|
6
|
+
import type { PostSynthCheck } from "@intentius/chant/lint/post-synth";
|
|
7
|
+
export declare const otel107: PostSynthCheck;
|
|
8
|
+
//# sourceMappingURL=otel107.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"otel107.d.ts","sourceRoot":"","sources":["../../../src/lint/post-synth/otel107.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAyC,MAAM,kCAAkC,CAAC;AAG9G,eAAO,MAAM,OAAO,EAAE,cAOrB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OTEL108: Two components or two pipelines declare the same id
|
|
3
|
+
*
|
|
4
|
+
* The collector config is keyed by id, so the second declaration would silently replace the first. The serializer keeps the first and this check fails the build.
|
|
5
|
+
*/
|
|
6
|
+
import type { PostSynthCheck } from "@intentius/chant/lint/post-synth";
|
|
7
|
+
export declare const otel108: PostSynthCheck;
|
|
8
|
+
//# sourceMappingURL=otel108.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"otel108.d.ts","sourceRoot":"","sources":["../../../src/lint/post-synth/otel108.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAyC,MAAM,kCAAkC,CAAC;AAG9G,eAAO,MAAM,OAAO,EAAE,cAOrB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OTEL109: A custom component has no schema pin
|
|
3
|
+
*
|
|
4
|
+
* defineComponent requires a pin naming the source and version its config type follows, so a reader can tell which schema the component was checked against. This check fails a build whose custom component lost its pin, for instance through an untyped call.
|
|
5
|
+
*/
|
|
6
|
+
import type { PostSynthCheck } from "@intentius/chant/lint/post-synth";
|
|
7
|
+
export declare const otel109: PostSynthCheck;
|
|
8
|
+
//# sourceMappingURL=otel109.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"otel109.d.ts","sourceRoot":"","sources":["../../../src/lint/post-synth/otel109.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAyC,MAAM,kCAAkC,CAAC;AAG9G,eAAO,MAAM,OAAO,EAAE,cAOrB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { LintRule } from "@intentius/chant/lint/rule";
|
|
2
|
+
/**
|
|
3
|
+
* OTEL001: a component id or instance name the collector can't parse.
|
|
4
|
+
*
|
|
5
|
+
* A pipeline may name a component by id string (`"otlp/backend"`), and every
|
|
6
|
+
* component takes an instance `name`. Both end up in the collector's
|
|
7
|
+
* `type[/name]` syntax, where a space, an empty name or a stray `/` is a
|
|
8
|
+
* config error at collector start. This catches the literal cases in source,
|
|
9
|
+
* before a build: a string in a `Pipeline`'s receivers, processors or
|
|
10
|
+
* exporters that isn't `type` or `type/name`, and a component `name` that is
|
|
11
|
+
* empty, contains whitespace or starts with `/`.
|
|
12
|
+
*/
|
|
13
|
+
export declare const componentIdSyntaxRule: LintRule;
|
|
14
|
+
//# sourceMappingURL=component-id-syntax.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component-id-syntax.d.ts","sourceRoot":"","sources":["../../../src/lint/rules/component-id-syntax.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAA+B,MAAM,4BAA4B,CAAC;AAIxF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,qBAAqB,EAAE,QAmDnC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { LintRule } from "@intentius/chant/lint/rule";
|
|
2
|
+
export { componentIdSyntaxRule } from "./component-id-syntax.js";
|
|
3
|
+
export { literalCredentialRule } from "./literal-credential.js";
|
|
4
|
+
/** All lint rules provided by this lexicon (imported by plugin.ts's lintRules()). */
|
|
5
|
+
export declare const rules: LintRule[];
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lint/rules/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAI3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAE7D,qFAAqF;AACrF,eAAO,MAAM,KAAK,EAAE,QAAQ,EAAmD,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { LintRule } from "@intentius/chant/lint/rule";
|
|
2
|
+
/**
|
|
3
|
+
* OTEL002: a credential written as a literal in a component's config.
|
|
4
|
+
*
|
|
5
|
+
* Exporters authenticate with headers (`authorization`, `api-key`, vendor
|
|
6
|
+
* headers) or keys (`api_key`, `password`, `key_pem`). A literal value there
|
|
7
|
+
* is a secret in the repository and in the emitted YAML. The collector reads
|
|
8
|
+
* `${env:NAME}` and `${file:/path}` at start-up, so the declaration never
|
|
9
|
+
* needs the value itself. Any string containing `${` is treated as such a
|
|
10
|
+
* reference, and keys ending in `_file` name a path and are left alone.
|
|
11
|
+
*/
|
|
12
|
+
export declare const literalCredentialRule: LintRule;
|
|
13
|
+
//# sourceMappingURL=literal-credential.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"literal-credential.d.ts","sourceRoot":"","sources":["../../../src/lint/rules/literal-credential.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAA+B,MAAM,4BAA4B,CAAC;AAMxF;;;;;;;;;GASG;AACH,eAAO,MAAM,qBAAqB,EAAE,QA4CnC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as ts from "typescript";
|
|
2
|
+
/** The constructor name of a `new X(...)` or `X(...)` expression, if it is a plain or dotted name. */
|
|
3
|
+
export declare function calleeName(node: ts.CallExpression | ts.NewExpression): string | undefined;
|
|
4
|
+
/** Built-in and custom collector component classes follow this naming, e.g. `OtlpExporter`. */
|
|
5
|
+
export declare const COMPONENT_CLASS: RegExp;
|
|
6
|
+
/** A property's key as text, for identifier and string-literal keys. */
|
|
7
|
+
export declare function propertyName(prop: ts.ObjectLiteralElementLike): string | undefined;
|
|
8
|
+
/** The text of a string literal or substitution-free template, else undefined. */
|
|
9
|
+
export declare function literalText(node: ts.Expression): string | undefined;
|
|
10
|
+
export declare function position(source: ts.SourceFile, node: ts.Node): {
|
|
11
|
+
line: number;
|
|
12
|
+
column: number;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=otel-ast.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"otel-ast.d.ts","sourceRoot":"","sources":["../../../src/lint/rules/otel-ast.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,sGAAsG;AACtG,wBAAgB,UAAU,CAAC,IAAI,EAAE,EAAE,CAAC,cAAc,GAAG,EAAE,CAAC,aAAa,GAAG,MAAM,GAAG,SAAS,CAKzF;AAED,+FAA+F;AAC/F,eAAO,MAAM,eAAe,QAA6C,CAAC;AAE1E,wEAAwE;AACxE,wBAAgB,YAAY,CAAC,IAAI,EAAE,EAAE,CAAC,wBAAwB,GAAG,MAAM,GAAG,SAAS,CAIlF;AAED,kFAAkF;AAClF,wBAAgB,WAAW,CAAC,IAAI,EAAE,EAAE,CAAC,UAAU,GAAG,MAAM,GAAG,SAAS,CAGnE;AAED,wBAAgB,QAAQ,CAAC,MAAM,EAAE,EAAE,CAAC,UAAU,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAG/F"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { CompletionContext, CompletionItem } from "@intentius/chant/lsp/types";
|
|
2
|
+
/** Completions for the otel entity classes: the built-in components, Pipeline and Service. */
|
|
3
|
+
export declare function completions(ctx: CompletionContext): CompletionItem[];
|
|
4
|
+
//# sourceMappingURL=completions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"completions.d.ts","sourceRoot":"","sources":["../../src/lsp/completions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAWpF,8FAA8F;AAC9F,wBAAgB,WAAW,CAAC,GAAG,EAAE,iBAAiB,GAAG,cAAc,EAAE,CAEpE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hover.d.ts","sourceRoot":"","sources":["../../src/lsp/hover.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAY1E,mFAAmF;AACnF,wBAAgB,KAAK,CAAC,GAAG,EAAE,YAAY,GAAG,SAAS,GAAG,SAAS,CAE9D"}
|