@monocle.sh/adonisjs-agent 1.2.1 → 1.2.3
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/LICENSE.md +53 -0
- package/dist/monocle_provider.mjs +16 -15
- package/dist/src/define_config.mjs +1 -1
- package/dist/src/instrumentations/mail/instrumentation.mjs +43 -8
- package/dist/src/monocle.d.mts +8 -6
- package/dist/src/monocle.mjs +39 -18
- package/dist/src/types/config.d.mts +1 -1
- package/package.json +19 -20
- package/LICENSE +0 -15
package/LICENSE.md
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
## Elastic License 2.0 (ELv2)
|
|
2
|
+
|
|
3
|
+
### Acceptance
|
|
4
|
+
|
|
5
|
+
By using the software, you agree to all of the terms and conditions below.
|
|
6
|
+
|
|
7
|
+
### Copyright License
|
|
8
|
+
|
|
9
|
+
The licensor grants you a non-exclusive, royalty-free, worldwide, non-sublicensable, non-transferable license to use, copy, distribute, make available, and prepare derivative works of the software, in each case subject to the limitations and conditions below.
|
|
10
|
+
|
|
11
|
+
### Limitations
|
|
12
|
+
|
|
13
|
+
You may not provide the software to third parties as a hosted or managed service, where the service provides users with access to any substantial set of the features or functionality of the software.
|
|
14
|
+
|
|
15
|
+
You may not move, change, disable, or circumvent the license key functionality in the software, and you may not remove or obscure any functionality in the software that is protected by the license key.
|
|
16
|
+
|
|
17
|
+
You may not alter, remove, or obscure any licensing, copyright, or other notices of the licensor in the software. Any use of the licensor's trademarks is subject to applicable law.
|
|
18
|
+
|
|
19
|
+
### Patents
|
|
20
|
+
|
|
21
|
+
The licensor grants you a license, under any patent claims the licensor can license, or becomes able to license, to make, have made, use, sell, offer for sale, import and have imported the software, in each case subject to the limitations and conditions in this license. This license does not cover any patent claims that you cause to be infringed by modifications or additions to the software. If you or your company make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company.
|
|
22
|
+
|
|
23
|
+
### Notices
|
|
24
|
+
|
|
25
|
+
You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms.
|
|
26
|
+
|
|
27
|
+
If you modify the software, you must include in any modified copies of the software prominent notices stating that you have modified the software.
|
|
28
|
+
|
|
29
|
+
### No Other Rights
|
|
30
|
+
|
|
31
|
+
These terms do not imply any licenses other than those expressly granted in these terms.
|
|
32
|
+
|
|
33
|
+
### Termination
|
|
34
|
+
|
|
35
|
+
If you use the software in violation of these terms, such use is not licensed, and your licenses will automatically terminate. If the licensor provides you with a notice of your violation, and you cease all violation of this license no later than 30 days after you receive that notice, your licenses will be reinstated retroactively. However, if you violate these terms after such reinstatement, any additional violation of these terms will cause your licenses to terminate automatically and permanently.
|
|
36
|
+
|
|
37
|
+
### No Liability
|
|
38
|
+
|
|
39
|
+
_As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim._
|
|
40
|
+
|
|
41
|
+
### Definitions
|
|
42
|
+
|
|
43
|
+
The **licensor** is the entity offering these terms, and the **software** is the software the licensor makes available under these terms, including any portion of it.
|
|
44
|
+
|
|
45
|
+
**You** refers to the individual or entity agreeing to these terms.
|
|
46
|
+
|
|
47
|
+
**Your company** is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all organizations that have control over, are under the control of, or are under common control with that organization. **Control** means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise. Control can be direct or indirect.
|
|
48
|
+
|
|
49
|
+
**Your licenses** are all the licenses granted to you for the software under these terms.
|
|
50
|
+
|
|
51
|
+
**Use** means anything you do with the software requiring one of your licenses.
|
|
52
|
+
|
|
53
|
+
**Trademark** means trademarks, service marks, and similar rights.
|
|
@@ -14,29 +14,30 @@ var OtelProvider = class {
|
|
|
14
14
|
this.app = app;
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
|
-
* Hook into ExceptionHandler to record exceptions
|
|
17
|
+
* Hook into ExceptionHandler to record exceptions as LogRecords.
|
|
18
18
|
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
19
|
+
* Our ExceptionReporter emits a structured LogRecord (with
|
|
20
|
+
* `monocle.log.source = 'exception_reporter'`) into otel_logs.
|
|
21
|
+
* The original report() also logs via Pino, which the OTEL Pino
|
|
22
|
+
* instrumentation converts to a second LogRecord. The `/logs`
|
|
23
|
+
* view filters out `monocle.log.source = 'exception_reporter'`
|
|
24
|
+
* entries since they already appear in `/exceptions`.
|
|
22
25
|
*
|
|
23
|
-
* This respects the AdonisJS `ignoreExceptions`, `ignoreStatuses`,
|
|
24
|
-
* configuration from the ExceptionHandler.
|
|
26
|
+
* This respects the AdonisJS `ignoreExceptions`, `ignoreStatuses`,
|
|
27
|
+
* and `ignoreCodes` configuration from the ExceptionHandler.
|
|
25
28
|
*/
|
|
26
29
|
#registerExceptionHandler() {
|
|
27
30
|
const originalReport = ExceptionHandler.prototype.report;
|
|
28
31
|
const reporter = new ExceptionReporter();
|
|
29
32
|
ExceptionHandler.macro("report", async function(error, ctx) {
|
|
30
33
|
const span = getCurrentSpan();
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
});
|
|
39
|
-
}
|
|
34
|
+
const httpError = toHttpError(error);
|
|
35
|
+
const shouldReport = this.shouldReport(httpError);
|
|
36
|
+
await reporter.report({
|
|
37
|
+
span,
|
|
38
|
+
error,
|
|
39
|
+
shouldReport
|
|
40
|
+
});
|
|
40
41
|
return originalReport.call(this, error, ctx);
|
|
41
42
|
});
|
|
42
43
|
}
|
|
@@ -52,7 +52,7 @@ function extractUserResponseHook(httpConfig) {
|
|
|
52
52
|
* Returns undefined if no API key is provided (telemetry will be disabled).
|
|
53
53
|
*/
|
|
54
54
|
function defineConfig(config) {
|
|
55
|
-
const isDev = config.dev
|
|
55
|
+
const isDev = config.dev;
|
|
56
56
|
if (!isDev && !config.apiKey) return;
|
|
57
57
|
if (isDev) process.env.OTEL_EXPORTER_OTLP_PROTOCOL = "http/json";
|
|
58
58
|
const endpoint = isDev ? config.endpoint || "http://localhost:4200" : config.endpoint || "https://ingest.monocle.sh";
|
|
@@ -5,6 +5,7 @@ import { SpanKind, SpanStatusCode, context, trace } from "@opentelemetry/api";
|
|
|
5
5
|
import { pathToFileURL } from "node:url";
|
|
6
6
|
import { InstrumentationBase } from "@opentelemetry/instrumentation";
|
|
7
7
|
//#region src/instrumentations/mail/instrumentation.ts
|
|
8
|
+
const mailerPatchState = Symbol("monocle.mail.patchState");
|
|
8
9
|
/**
|
|
9
10
|
* OpenTelemetry instrumentation for AdonisJS Mail.
|
|
10
11
|
*
|
|
@@ -54,10 +55,16 @@ var MailInstrumentation = class extends InstrumentationBase {
|
|
|
54
55
|
};
|
|
55
56
|
}
|
|
56
57
|
/**
|
|
58
|
+
* Apply attributes to a span.
|
|
59
|
+
*/
|
|
60
|
+
setSpanAttributes(span, attributes) {
|
|
61
|
+
for (const [key, value] of Object.entries(attributes)) span.setAttribute(key, value);
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
57
64
|
* Wraps an async function with an OpenTelemetry span.
|
|
58
65
|
*/
|
|
59
66
|
async wrapWithSpan(options) {
|
|
60
|
-
const { spanName, attributes, fn, onSuccess } = options;
|
|
67
|
+
const { spanName, attributes, fn, onSuccess, onSettled } = options;
|
|
61
68
|
const span = this.tracer.startSpan(spanName, {
|
|
62
69
|
kind: SpanKind.CLIENT,
|
|
63
70
|
attributes
|
|
@@ -77,6 +84,7 @@ var MailInstrumentation = class extends InstrumentationBase {
|
|
|
77
84
|
});
|
|
78
85
|
throw error;
|
|
79
86
|
} finally {
|
|
87
|
+
await onSettled?.(span);
|
|
80
88
|
span.end();
|
|
81
89
|
}
|
|
82
90
|
});
|
|
@@ -93,6 +101,9 @@ var MailInstrumentation = class extends InstrumentationBase {
|
|
|
93
101
|
fn: () => original.call(this, mail, sendConfig),
|
|
94
102
|
onSuccess: (span, response) => {
|
|
95
103
|
if (response?.messageId) span.setAttribute(EmailAttributes.MESSAGE_ID, response.messageId);
|
|
104
|
+
},
|
|
105
|
+
onSettled: (span) => {
|
|
106
|
+
instrumentation.setSpanAttributes(span, instrumentation.extractMessageAttributes(mail.message, this.name, "send"));
|
|
96
107
|
}
|
|
97
108
|
});
|
|
98
109
|
};
|
|
@@ -111,6 +122,28 @@ var MailInstrumentation = class extends InstrumentationBase {
|
|
|
111
122
|
};
|
|
112
123
|
}
|
|
113
124
|
/**
|
|
125
|
+
* Patch a Mailer class prototype with tracing wrappers.
|
|
126
|
+
*/
|
|
127
|
+
patchMailerClass(mailerClass) {
|
|
128
|
+
const patchedMailerClass = mailerClass;
|
|
129
|
+
const existingPatch = patchedMailerClass.prototype[mailerPatchState];
|
|
130
|
+
this.mailerClass = mailerClass;
|
|
131
|
+
this.patched = true;
|
|
132
|
+
if (existingPatch) {
|
|
133
|
+
this.originalSendCompiled = existingPatch.sendCompiled;
|
|
134
|
+
this.originalSendLaterCompiled = existingPatch.sendLaterCompiled;
|
|
135
|
+
return;
|
|
136
|
+
}
|
|
137
|
+
this.originalSendCompiled = patchedMailerClass.prototype.sendCompiled;
|
|
138
|
+
this.originalSendLaterCompiled = patchedMailerClass.prototype.sendLaterCompiled;
|
|
139
|
+
patchedMailerClass.prototype[mailerPatchState] = {
|
|
140
|
+
sendCompiled: this.originalSendCompiled,
|
|
141
|
+
sendLaterCompiled: this.originalSendLaterCompiled
|
|
142
|
+
};
|
|
143
|
+
patchedMailerClass.prototype.sendCompiled = this.#createSendCompiledWrapper(this.originalSendCompiled);
|
|
144
|
+
patchedMailerClass.prototype.sendLaterCompiled = this.#createSendLaterCompiledWrapper(this.originalSendLaterCompiled);
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
114
147
|
* Patches Mailer.prototype methods with tracing wrappers.
|
|
115
148
|
*
|
|
116
149
|
* Note: InstrumentationBase constructor calls enable() synchronously
|
|
@@ -132,11 +165,8 @@ var MailInstrumentation = class extends InstrumentationBase {
|
|
|
132
165
|
return;
|
|
133
166
|
}
|
|
134
167
|
try {
|
|
135
|
-
|
|
136
|
-
this.
|
|
137
|
-
this.originalSendLaterCompiled = this.mailerClass.prototype.sendLaterCompiled;
|
|
138
|
-
this.mailerClass.prototype.sendCompiled = this.#createSendCompiledWrapper(this.originalSendCompiled);
|
|
139
|
-
this.mailerClass.prototype.sendLaterCompiled = this.#createSendLaterCompiledWrapper(this.originalSendLaterCompiled);
|
|
168
|
+
const mailModule = await import(pathToFileURL(mailerPath).href);
|
|
169
|
+
this.patchMailerClass(mailModule.Mailer);
|
|
140
170
|
} catch {
|
|
141
171
|
this.patched = false;
|
|
142
172
|
}
|
|
@@ -146,8 +176,13 @@ var MailInstrumentation = class extends InstrumentationBase {
|
|
|
146
176
|
*/
|
|
147
177
|
disable() {
|
|
148
178
|
if (!this.patched || !this.mailerClass) return;
|
|
149
|
-
|
|
150
|
-
|
|
179
|
+
const patchedMailerClass = this.mailerClass;
|
|
180
|
+
const existingPatch = patchedMailerClass.prototype[mailerPatchState];
|
|
181
|
+
if (existingPatch?.sendCompiled) patchedMailerClass.prototype.sendCompiled = existingPatch.sendCompiled;
|
|
182
|
+
else if (this.originalSendCompiled) this.mailerClass.prototype.sendCompiled = this.originalSendCompiled;
|
|
183
|
+
if (existingPatch?.sendLaterCompiled) patchedMailerClass.prototype.sendLaterCompiled = existingPatch.sendLaterCompiled;
|
|
184
|
+
else if (this.originalSendLaterCompiled) this.mailerClass.prototype.sendLaterCompiled = this.originalSendLaterCompiled;
|
|
185
|
+
delete patchedMailerClass.prototype[mailerPatchState];
|
|
151
186
|
this.patched = false;
|
|
152
187
|
this.mailerClass = void 0;
|
|
153
188
|
this.originalSendCompiled = void 0;
|
package/dist/src/monocle.d.mts
CHANGED
|
@@ -7,19 +7,21 @@ import { CaptureExceptionContext, CaptureMessageContext, MessageLevel, MonocleUs
|
|
|
7
7
|
declare class Monocle {
|
|
8
8
|
#private;
|
|
9
9
|
/**
|
|
10
|
-
* Capture an exception and record it
|
|
11
|
-
* If
|
|
10
|
+
* Capture an exception and record it as a LogRecord.
|
|
11
|
+
* If a span is active, it is also marked with ERROR status.
|
|
12
|
+
*
|
|
13
|
+
* Works with or without an active span — exceptions in event
|
|
14
|
+
* handlers, cron jobs, or background tasks are no longer dropped.
|
|
12
15
|
*
|
|
13
16
|
* This method is async to allow for source context extraction.
|
|
14
17
|
* You can choose to await it or fire-and-forget.
|
|
15
18
|
*/
|
|
16
19
|
static captureException(error: unknown, ctx?: CaptureExceptionContext): Promise<void>;
|
|
17
20
|
/**
|
|
18
|
-
* Capture a message and record it
|
|
19
|
-
* If no span is active, the message is silently ignored.
|
|
21
|
+
* Capture a message and record it as a LogRecord.
|
|
20
22
|
*
|
|
21
|
-
* Messages are stored using the same format as exceptions for
|
|
22
|
-
* They are identified by exception.type = 'CapturedMessage'.
|
|
23
|
+
* Messages are stored using the same format as exceptions for
|
|
24
|
+
* unified querying. They are identified by exception.type = 'CapturedMessage'.
|
|
23
25
|
*
|
|
24
26
|
* This method is async to allow for source context extraction.
|
|
25
27
|
* You can choose to await it or fire-and-forget.
|
package/dist/src/monocle.mjs
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { ExceptionReporter } from "./exception_reporter.mjs";
|
|
2
|
+
import { randomUUID } from "node:crypto";
|
|
2
3
|
import { trace } from "@opentelemetry/api";
|
|
4
|
+
import { SeverityNumber, logs } from "@opentelemetry/api-logs";
|
|
3
5
|
import { setUser } from "@adonisjs/otel/helpers";
|
|
4
6
|
import { extractContextLines } from "@monocle.sh/otel-utils";
|
|
5
7
|
//#region src/monocle.ts
|
|
6
8
|
const DEFAULT_CONTEXT_LINES = 7;
|
|
9
|
+
const LOGGER_NAME = "@monocle.sh/agent";
|
|
7
10
|
/**
|
|
8
11
|
* Internal patterns to filter from stack traces.
|
|
9
12
|
* These are frames from the Monocle SDK itself.
|
|
@@ -17,11 +20,18 @@ const INTERNAL_FRAME_PATTERNS = [
|
|
|
17
20
|
* Monocle helper class for manual instrumentation.
|
|
18
21
|
*/
|
|
19
22
|
var Monocle = class {
|
|
23
|
+
static #buildUserAttributes(user) {
|
|
24
|
+
const attributes = {};
|
|
25
|
+
if (!user) return attributes;
|
|
26
|
+
if (user.id) attributes["user.id"] = user.id;
|
|
27
|
+
if (user.email) attributes["user.email"] = user.email;
|
|
28
|
+
if (user.name) attributes["user.name"] = user.name;
|
|
29
|
+
return attributes;
|
|
30
|
+
}
|
|
20
31
|
static #applyUserToSpan(span, user) {
|
|
21
32
|
if (!user) return;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
if (user.name) span.setAttribute("user.name", user.name);
|
|
33
|
+
const attrs = this.#buildUserAttributes(user);
|
|
34
|
+
for (const [key, value] of Object.entries(attrs)) span.setAttribute(key, value);
|
|
25
35
|
}
|
|
26
36
|
static #buildContextAttributes(ctx) {
|
|
27
37
|
const attributes = {};
|
|
@@ -46,41 +56,43 @@ var Monocle = class {
|
|
|
46
56
|
}).join("\n");
|
|
47
57
|
}
|
|
48
58
|
/**
|
|
49
|
-
* Capture an exception and record it
|
|
50
|
-
* If
|
|
59
|
+
* Capture an exception and record it as a LogRecord.
|
|
60
|
+
* If a span is active, it is also marked with ERROR status.
|
|
61
|
+
*
|
|
62
|
+
* Works with or without an active span — exceptions in event
|
|
63
|
+
* handlers, cron jobs, or background tasks are no longer dropped.
|
|
51
64
|
*
|
|
52
65
|
* This method is async to allow for source context extraction.
|
|
53
66
|
* You can choose to await it or fire-and-forget.
|
|
54
67
|
*/
|
|
55
68
|
static async captureException(error, ctx) {
|
|
56
69
|
const span = trace.getActiveSpan();
|
|
57
|
-
|
|
70
|
+
const extraAttributes = {
|
|
71
|
+
...this.#buildUserAttributes(ctx?.user),
|
|
72
|
+
...this.#buildContextAttributes(ctx)
|
|
73
|
+
};
|
|
74
|
+
if (span) this.#applyUserToSpan(span, ctx?.user);
|
|
58
75
|
await new ExceptionReporter().report({
|
|
59
76
|
span,
|
|
60
77
|
error,
|
|
61
|
-
shouldReport: true
|
|
78
|
+
shouldReport: true,
|
|
79
|
+
extraAttributes
|
|
62
80
|
});
|
|
63
|
-
this.#applyUserToSpan(span, ctx?.user);
|
|
64
|
-
const contextAttrs = this.#buildContextAttributes(ctx);
|
|
65
|
-
for (const [key, value] of Object.entries(contextAttrs)) span.setAttribute(key, value);
|
|
66
81
|
}
|
|
67
82
|
/**
|
|
68
|
-
* Capture a message and record it
|
|
69
|
-
* If no span is active, the message is silently ignored.
|
|
83
|
+
* Capture a message and record it as a LogRecord.
|
|
70
84
|
*
|
|
71
|
-
* Messages are stored using the same format as exceptions for
|
|
72
|
-
* They are identified by exception.type = 'CapturedMessage'.
|
|
85
|
+
* Messages are stored using the same format as exceptions for
|
|
86
|
+
* unified querying. They are identified by exception.type = 'CapturedMessage'.
|
|
73
87
|
*
|
|
74
88
|
* This method is async to allow for source context extraction.
|
|
75
89
|
* You can choose to await it or fire-and-forget.
|
|
76
90
|
*/
|
|
77
91
|
static async captureMessage(message, levelOrContext) {
|
|
78
92
|
const span = trace.getActiveSpan();
|
|
79
|
-
if (!span) return;
|
|
80
93
|
const ctx = typeof levelOrContext === "string" ? { level: levelOrContext } : levelOrContext;
|
|
81
94
|
const level = ctx?.level ?? "info";
|
|
82
|
-
this.#applyUserToSpan(span, ctx?.user);
|
|
83
|
-
span.setAttribute("monocle.exception.should_report", true);
|
|
95
|
+
if (span) this.#applyUserToSpan(span, ctx?.user);
|
|
84
96
|
const syntheticError = new Error(message);
|
|
85
97
|
let frames = [];
|
|
86
98
|
if (syntheticError.stack) try {
|
|
@@ -91,11 +103,20 @@ var Monocle = class {
|
|
|
91
103
|
"exception.type": "CapturedMessage",
|
|
92
104
|
"exception.message": message,
|
|
93
105
|
"monocle.message.level": level,
|
|
106
|
+
"monocle.exception.should_report": "true",
|
|
107
|
+
...this.#buildUserAttributes(ctx?.user),
|
|
94
108
|
...this.#buildContextAttributes(ctx)
|
|
95
109
|
};
|
|
96
110
|
if (syntheticError.stack) attributes["exception.stacktrace"] = this.#filterInternalStack(syntheticError.stack);
|
|
97
111
|
if (frames.length > 0) attributes["monocle.exception.frames"] = JSON.stringify(frames);
|
|
98
|
-
|
|
112
|
+
attributes["monocle.log.source"] = "exception_reporter";
|
|
113
|
+
attributes["monocle.exception.occurrence_id"] = randomUUID();
|
|
114
|
+
logs.getLogger(LOGGER_NAME).emit({
|
|
115
|
+
severityNumber: SeverityNumber.ERROR,
|
|
116
|
+
severityText: "ERROR",
|
|
117
|
+
body: message,
|
|
118
|
+
attributes
|
|
119
|
+
});
|
|
99
120
|
}
|
|
100
121
|
/**
|
|
101
122
|
* Set user information on the current active span.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BullMQInstrumentationConfig } from "@monocle.sh/instrumentation-bullmq";
|
|
2
1
|
import { BentoCacheInstrumentationConfig } from "@bentocache/otel/types";
|
|
3
2
|
import { DestinationMap, OtelConfig } from "@adonisjs/otel/types";
|
|
3
|
+
import { BullMQInstrumentationConfig } from "@monocle.sh/instrumentation-bullmq";
|
|
4
4
|
|
|
5
5
|
//#region src/types/config.d.ts
|
|
6
6
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@monocle.sh/adonisjs-agent",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "Monocle agent for AdonisJS - sends telemetry to Monocle cloud",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"adonisjs",
|
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
"opentelemetry",
|
|
10
10
|
"tracing"
|
|
11
11
|
],
|
|
12
|
-
"homepage": "https://github.com/
|
|
12
|
+
"homepage": "https://github.com/monocle-sh/js/tree/main/packages/agents/adonisjs",
|
|
13
13
|
"license": "ISC",
|
|
14
14
|
"author": "Julien Ripouteau <julien@ripouteau.com>",
|
|
15
15
|
"repository": {
|
|
16
16
|
"type": "git",
|
|
17
|
-
"url": "git+https://github.com/
|
|
18
|
-
"directory": "packages/
|
|
17
|
+
"url": "git+https://github.com/monocle-sh/js.git",
|
|
18
|
+
"directory": "packages/agents/adonisjs"
|
|
19
19
|
},
|
|
20
20
|
"files": [
|
|
21
21
|
"dist"
|
|
@@ -41,32 +41,33 @@
|
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@adonisjs/otel": "^1.2.3",
|
|
43
43
|
"@bentocache/otel": "^0.1.2",
|
|
44
|
-
"@opentelemetry/api": "^1.9.
|
|
45
|
-
"@opentelemetry/
|
|
46
|
-
"@opentelemetry/
|
|
47
|
-
"@opentelemetry/exporter-
|
|
44
|
+
"@opentelemetry/api": "^1.9.1",
|
|
45
|
+
"@opentelemetry/api-logs": "^0.214.0",
|
|
46
|
+
"@opentelemetry/core": "^2.6.1",
|
|
47
|
+
"@opentelemetry/exporter-metrics-otlp-http": "^0.214.0",
|
|
48
|
+
"@opentelemetry/exporter-trace-otlp-http": "^0.214.0",
|
|
48
49
|
"@opentelemetry/host-metrics": "^0.38.3",
|
|
49
|
-
"@opentelemetry/instrumentation": "^0.
|
|
50
|
-
"@opentelemetry/sdk-metrics": "^2.6.
|
|
51
|
-
"@opentelemetry/sdk-trace-base": "^2.6.
|
|
50
|
+
"@opentelemetry/instrumentation": "^0.214.0",
|
|
51
|
+
"@opentelemetry/sdk-metrics": "^2.6.1",
|
|
52
|
+
"@opentelemetry/sdk-trace-base": "^2.6.1",
|
|
52
53
|
"@opentelemetry/semantic-conventions": "^1.40.0",
|
|
53
54
|
"@sindresorhus/is": "^7.2.0",
|
|
54
55
|
"error-stack-parser-es": "^1.0.5",
|
|
55
56
|
"import-in-the-middle": "^3.0.0",
|
|
56
|
-
"@monocle.sh/instrumentation-bullmq": "^0.3.
|
|
57
|
-
"@monocle.sh/instrumentation-mcp": "^1.0.
|
|
58
|
-
"@monocle.sh/instrumentation-vercel-ai": "^1.1.
|
|
59
|
-
"@monocle.sh/otel-utils": "^1.0.
|
|
57
|
+
"@monocle.sh/instrumentation-bullmq": "^0.3.1",
|
|
58
|
+
"@monocle.sh/instrumentation-mcp": "^1.0.1",
|
|
59
|
+
"@monocle.sh/instrumentation-vercel-ai": "^1.1.1",
|
|
60
|
+
"@monocle.sh/otel-utils": "^1.0.2"
|
|
60
61
|
},
|
|
61
62
|
"devDependencies": {
|
|
62
|
-
"@adonisjs/core": "^7.
|
|
63
|
+
"@adonisjs/core": "^7.3.0",
|
|
63
64
|
"@adonisjs/tsconfig": "^2.0.0",
|
|
64
65
|
"@japa/assert": "^4.2.0",
|
|
65
66
|
"@japa/file-system": "^3.0.0",
|
|
66
67
|
"@japa/runner": "^5.3.0",
|
|
67
68
|
"@japa/snapshot": "^2.0.10",
|
|
68
69
|
"@poppinss/ts-exec": "^1.4.4",
|
|
69
|
-
"
|
|
70
|
+
"tsdown": "^0.21.7"
|
|
70
71
|
},
|
|
71
72
|
"peerDependencies": {
|
|
72
73
|
"@adonisjs/core": "^6.2.0 || ^7.0.0",
|
|
@@ -81,8 +82,6 @@
|
|
|
81
82
|
"build": "tsdown",
|
|
82
83
|
"dev": "tsdown",
|
|
83
84
|
"typecheck": "tsgo --noEmit",
|
|
84
|
-
"test": "node --import @poppinss/ts-exec bin/test.ts"
|
|
85
|
-
"quick:test": "node --import @poppinss/ts-exec bin/test.ts",
|
|
86
|
-
"release": "release-it"
|
|
85
|
+
"test": "node --import @poppinss/ts-exec bin/test.ts"
|
|
87
86
|
}
|
|
88
87
|
}
|
package/LICENSE
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
ISC License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2024-present, Julien Ripouteau
|
|
4
|
-
|
|
5
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
-
purpose with or without fee is hereby granted, provided that the above
|
|
7
|
-
copyright notice and this permission notice appear in all copies.
|
|
8
|
-
|
|
9
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
10
|
-
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
11
|
-
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
12
|
-
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
13
|
-
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
14
|
-
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
15
|
-
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|