@vymalo/opencode-otel 0.12.0 → 0.14.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/dist/config.d.ts +29 -17
- package/dist/config.js +210 -197
- package/dist/config.js.map +1 -1
- package/dist/deferred.d.ts +22 -0
- package/dist/deferred.js +29 -0
- package/dist/deferred.js.map +1 -0
- package/dist/export-logging.d.ts +28 -0
- package/dist/export-logging.js +74 -0
- package/dist/export-logging.js.map +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/instruments.d.ts +22 -22
- package/dist/instruments.js +95 -94
- package/dist/instruments.js.map +1 -1
- package/dist/lib.d.ts +5 -1
- package/dist/lib.js +6 -1
- package/dist/lib.js.map +1 -1
- package/dist/logging.d.ts +6 -6
- package/dist/logging.js +59 -62
- package/dist/logging.js.map +1 -1
- package/dist/opencode.d.ts +16 -14
- package/dist/opencode.js +165 -122
- package/dist/opencode.js.map +1 -1
- package/dist/propagation.d.ts +13 -13
- package/dist/propagation.js +50 -48
- package/dist/propagation.js.map +1 -1
- package/dist/providers.d.ts +46 -35
- package/dist/providers.js +217 -158
- package/dist/providers.js.map +1 -1
- package/dist/recorder.d.ts +150 -69
- package/dist/recorder.js +788 -539
- package/dist/recorder.js.map +1 -1
- package/dist/token-source.d.ts +59 -0
- package/dist/token-source.js +125 -0
- package/dist/token-source.js.map +1 -0
- package/dist/types.d.ts +92 -64
- package/dist/types.js +1 -0
- package/dist/types.js.map +1 -1
- package/dist/vcs.d.ts +63 -0
- package/dist/vcs.js +188 -0
- package/dist/vcs.js.map +1 -0
- package/package.json +3 -3
package/dist/providers.js
CHANGED
|
@@ -6,174 +6,233 @@ import { BatchLogRecordProcessor, ConsoleLogRecordExporter, LoggerProvider } fro
|
|
|
6
6
|
import { AggregationTemporality, ConsoleMetricExporter, MeterProvider, PeriodicExportingMetricReader } from "@opentelemetry/sdk-metrics";
|
|
7
7
|
import { BatchSpanProcessor, ConsoleSpanExporter, TracerProvider } from "@opentelemetry/sdk-trace";
|
|
8
8
|
import { signalUrl } from "./config.js";
|
|
9
|
+
import { withFailureLogging } from "./export-logging.js";
|
|
10
|
+
import { createTokenSource } from "./token-source.js";
|
|
9
11
|
const INSTRUMENTATION_SCOPE = "@vymalo/opencode-otel";
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Build the exporter's `url` + `headers`. With a credential helper configured,
|
|
14
|
+
* `headers` is an async factory the exporter calls before every export — which
|
|
15
|
+
* is what lets a five-minute OIDC token be refreshed underneath a long-running
|
|
16
|
+
* session instead of going stale at the first expiry.
|
|
17
|
+
*/
|
|
18
|
+
function otlpArgs(config, signal, tokenSource) {
|
|
19
|
+
const url = signalUrl(config, signal);
|
|
20
|
+
if (!url) {
|
|
21
|
+
return undefined;
|
|
22
|
+
}
|
|
23
|
+
if (!tokenSource) {
|
|
24
|
+
return {
|
|
25
|
+
url,
|
|
26
|
+
headers: config.headers
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
url,
|
|
31
|
+
headers: async () => ({
|
|
32
|
+
...config.headers,
|
|
33
|
+
...await tokenSource.headers()
|
|
34
|
+
})
|
|
35
|
+
};
|
|
13
36
|
}
|
|
14
37
|
const defaultFactories = {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
40
|
-
const args = otlpArgs(config, "logs");
|
|
41
|
-
return args ? new OTLPLogExporter(args) : undefined;
|
|
42
|
-
}
|
|
38
|
+
trace: (config, tokenSource) => {
|
|
39
|
+
if (config.exporters.traces === "console") {
|
|
40
|
+
return new ConsoleSpanExporter();
|
|
41
|
+
}
|
|
42
|
+
const args = otlpArgs(config, "traces", tokenSource);
|
|
43
|
+
return args ? new OTLPTraceExporter(args) : undefined;
|
|
44
|
+
},
|
|
45
|
+
metric: (config, tokenSource) => {
|
|
46
|
+
if (config.exporters.metrics === "console") {
|
|
47
|
+
return new ConsoleMetricExporter();
|
|
48
|
+
}
|
|
49
|
+
const args = otlpArgs(config, "metrics", tokenSource);
|
|
50
|
+
return args ? new OTLPMetricExporter({
|
|
51
|
+
...args,
|
|
52
|
+
temporalityPreference: config.metricTemporality === "cumulative" ? AggregationTemporality.CUMULATIVE : AggregationTemporality.DELTA
|
|
53
|
+
}) : undefined;
|
|
54
|
+
},
|
|
55
|
+
log: (config, tokenSource) => {
|
|
56
|
+
if (config.exporters.logs === "console") {
|
|
57
|
+
return new ConsoleLogRecordExporter();
|
|
58
|
+
}
|
|
59
|
+
const args = otlpArgs(config, "logs", tokenSource);
|
|
60
|
+
return args ? new OTLPLogExporter(args) : undefined;
|
|
61
|
+
}
|
|
43
62
|
};
|
|
44
63
|
/**
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
64
|
+
* Build the resource every signal is stamped with.
|
|
65
|
+
*
|
|
66
|
+
* Deliberately identifies the **machine and the project**, never the developer:
|
|
67
|
+
* no git author email, no account id. An operator who wants per-person
|
|
68
|
+
* attribution adds it explicitly via `resourceAttributes` /
|
|
69
|
+
* `OTEL_RESOURCE_ATTRIBUTES`, which keeps that choice visible in config.
|
|
70
|
+
*/
|
|
52
71
|
export function buildResource(config, context) {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
72
|
+
const attributes = {
|
|
73
|
+
"service.name": config.serviceName,
|
|
74
|
+
"telemetry.sdk.language": "nodejs"
|
|
75
|
+
};
|
|
76
|
+
if (context.version) {
|
|
77
|
+
attributes["service.version"] = context.version;
|
|
78
|
+
}
|
|
79
|
+
if (config.environment) {
|
|
80
|
+
attributes["deployment.environment.name"] = config.environment;
|
|
81
|
+
}
|
|
82
|
+
if (context.hostname) {
|
|
83
|
+
attributes["host.name"] = context.hostname;
|
|
84
|
+
}
|
|
85
|
+
if (context.projectName) {
|
|
86
|
+
attributes["opencode.project.name"] = context.projectName;
|
|
87
|
+
}
|
|
88
|
+
if (context.directory) {
|
|
89
|
+
attributes["opencode.directory"] = context.directory;
|
|
90
|
+
}
|
|
91
|
+
if (context.worktree) {
|
|
92
|
+
attributes["opencode.worktree"] = context.worktree;
|
|
93
|
+
}
|
|
94
|
+
if (context.branch) {
|
|
95
|
+
attributes["vcs.ref.head.name"] = context.branch;
|
|
96
|
+
// Deprecated in semconv 1.43 in favour of `vcs.ref.head.name`, but it is
|
|
97
|
+
// what `opencode-otel-plugin` emits and what existing dashboards key on.
|
|
98
|
+
// Kept as an alias so a collector receiving both plugins stays coherent;
|
|
99
|
+
// due for removal once those dashboards move.
|
|
100
|
+
attributes["vcs.repository.ref.name"] = context.branch;
|
|
101
|
+
}
|
|
102
|
+
const vcs = context.vcs;
|
|
103
|
+
if (vcs) {
|
|
104
|
+
if (vcs.url) {
|
|
105
|
+
attributes["vcs.repository.url.full"] = vcs.url;
|
|
106
|
+
}
|
|
107
|
+
if (vcs.name) {
|
|
108
|
+
attributes["vcs.repository.name"] = vcs.name;
|
|
109
|
+
}
|
|
110
|
+
if (vcs.owner) {
|
|
111
|
+
attributes["vcs.owner.name"] = vcs.owner;
|
|
112
|
+
}
|
|
113
|
+
if (vcs.provider) {
|
|
114
|
+
attributes["vcs.provider.name"] = vcs.provider;
|
|
115
|
+
}
|
|
116
|
+
if (vcs.revision) {
|
|
117
|
+
attributes["vcs.ref.head.revision"] = vcs.revision;
|
|
118
|
+
}
|
|
119
|
+
if (vcs.refType) {
|
|
120
|
+
attributes["vcs.ref.head.type"] = vcs.refType;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
// Operator-supplied attributes win — they are the escape hatch, and silently
|
|
124
|
+
// ignoring them would make the escape hatch useless.
|
|
125
|
+
return resourceFromAttributes({
|
|
126
|
+
...attributes,
|
|
127
|
+
...config.resourceAttributes
|
|
128
|
+
});
|
|
81
129
|
}
|
|
82
130
|
/**
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
131
|
+
* Construct the enabled providers. Each signal is independent: a failure to
|
|
132
|
+
* build one leaves the others running, because partial telemetry is strictly
|
|
133
|
+
* better than an exception escaping into the host's plugin loader.
|
|
134
|
+
*/
|
|
87
135
|
export function createProviders(config, resource, logger, factories = {}) {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
136
|
+
const make = {
|
|
137
|
+
...defaultFactories,
|
|
138
|
+
...factories
|
|
139
|
+
};
|
|
140
|
+
const flushers = [];
|
|
141
|
+
const shutdowns = [];
|
|
142
|
+
const tokenSource = config.tokenCommand.length > 0 ? createTokenSource({
|
|
143
|
+
command: config.tokenCommand,
|
|
144
|
+
header: config.tokenHeader,
|
|
145
|
+
prefix: config.tokenPrefix,
|
|
146
|
+
refreshMs: config.tokenRefreshMs,
|
|
147
|
+
timeoutMs: config.tokenTimeoutMs,
|
|
148
|
+
logger
|
|
149
|
+
}) : undefined;
|
|
150
|
+
// A rejected export is the symptom of a dead credential, so drop the cached
|
|
151
|
+
// token and let the next export re-run the helper rather than retrying with
|
|
152
|
+
// something the collector has already refused.
|
|
153
|
+
const onFailure = tokenSource ? () => tokenSource.invalidate() : undefined;
|
|
154
|
+
const observe = (exporter, signal) => withFailureLogging(exporter, signal, logger, { onFailure });
|
|
155
|
+
let tracer;
|
|
156
|
+
let meter;
|
|
157
|
+
let otelLogger;
|
|
158
|
+
if (config.exporters.traces !== "none") {
|
|
159
|
+
try {
|
|
160
|
+
const built = make.trace(config, tokenSource);
|
|
161
|
+
if (built) {
|
|
162
|
+
const exporter = observe(built, "traces");
|
|
163
|
+
const provider = new TracerProvider({
|
|
164
|
+
resource,
|
|
165
|
+
spanProcessors: [new BatchSpanProcessor({
|
|
166
|
+
exporter,
|
|
167
|
+
scheduledDelayMillis: config.traceExportIntervalMs
|
|
168
|
+
})]
|
|
169
|
+
});
|
|
170
|
+
tracer = provider.getTracer(INSTRUMENTATION_SCOPE);
|
|
171
|
+
flushers.push(() => provider.forceFlush());
|
|
172
|
+
shutdowns.push(() => provider.shutdown());
|
|
173
|
+
}
|
|
174
|
+
} catch (error) {
|
|
175
|
+
logger.warn("otel_traces_init_failed", { error: describeError(error) });
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
if (config.exporters.metrics !== "none") {
|
|
179
|
+
try {
|
|
180
|
+
const built = make.metric(config, tokenSource);
|
|
181
|
+
if (built) {
|
|
182
|
+
const exporter = observe(built, "metrics");
|
|
183
|
+
const provider = new MeterProvider({
|
|
184
|
+
resource,
|
|
185
|
+
readers: [new PeriodicExportingMetricReader({
|
|
186
|
+
exporter,
|
|
187
|
+
exportIntervalMillis: config.metricExportIntervalMs
|
|
188
|
+
})]
|
|
189
|
+
});
|
|
190
|
+
meter = provider.getMeter(INSTRUMENTATION_SCOPE);
|
|
191
|
+
flushers.push(() => provider.forceFlush());
|
|
192
|
+
shutdowns.push(() => provider.shutdown());
|
|
193
|
+
}
|
|
194
|
+
} catch (error) {
|
|
195
|
+
logger.warn("otel_metrics_init_failed", { error: describeError(error) });
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
if (config.exporters.logs !== "none") {
|
|
199
|
+
try {
|
|
200
|
+
const built = make.log(config, tokenSource);
|
|
201
|
+
if (built) {
|
|
202
|
+
const exporter = observe(built, "logs");
|
|
203
|
+
const provider = new LoggerProvider({
|
|
204
|
+
resource,
|
|
205
|
+
processors: [new BatchLogRecordProcessor({
|
|
206
|
+
exporter,
|
|
207
|
+
scheduledDelayMillis: config.logExportIntervalMs
|
|
208
|
+
})]
|
|
209
|
+
});
|
|
210
|
+
otelLogger = provider.getLogger(INSTRUMENTATION_SCOPE);
|
|
211
|
+
flushers.push(() => provider.forceFlush());
|
|
212
|
+
shutdowns.push(() => provider.shutdown());
|
|
213
|
+
}
|
|
214
|
+
} catch (error) {
|
|
215
|
+
logger.warn("otel_logs_init_failed", { error: describeError(error) });
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
const runAll = async (tasks) => {
|
|
219
|
+
// `allSettled`, not `all`: one unreachable collector must not stop the
|
|
220
|
+
// other signals from draining.
|
|
221
|
+
await Promise.allSettled(tasks.map((task) => task()));
|
|
222
|
+
};
|
|
223
|
+
return {
|
|
224
|
+
tracer,
|
|
225
|
+
meter,
|
|
226
|
+
otelLogger,
|
|
227
|
+
forceFlush: () => runAll(flushers),
|
|
228
|
+
shutdown: () => runAll(shutdowns)
|
|
229
|
+
};
|
|
172
230
|
}
|
|
173
231
|
export function describeError(error) {
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
232
|
+
if (error instanceof Error) {
|
|
233
|
+
return error.message;
|
|
234
|
+
}
|
|
235
|
+
return String(error);
|
|
178
236
|
}
|
|
237
|
+
|
|
179
238
|
//# sourceMappingURL=providers.js.map
|
package/dist/providers.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"
|
|
1
|
+
{"mappings":"AACA,SAAS,uBAAuB;AAChC,SAAS,0BAA0B;AACnC,SAAS,yBAAyB;AAClC,SAIE,8BACK;AACP,SACE,yBACA,0BAEA,sBACK;AACP,SACE,wBACA,uBACA,eACA,qCAEK;AACP,SACE,oBACA,qBAEA,sBACK;AAIP,SAAS,iBAAiB;AAC1B,SAA4B,0BAA0B;AAEtD,SAAS,yBAA2C;AAIpD,MAAM,wBAAwB;;;;;;;AAoC9B,SAAS,SAAS,QAA4B,QAAoB,aAA2B;CAC3F,MAAM,MAAM,UAAU,QAAQ,MAAM;CACpC,IAAI,CAAC,KAAK;EACR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