@eggjs/tracer 4.0.0-beta.35 → 4.0.0-beta.36

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/agent.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { TracerBoot } from './boot.ts';
2
- export default TracerBoot;
1
+ import { TracerBoot } from "./boot.js";
2
+ export { TracerBoot as default };
package/dist/agent.js CHANGED
@@ -1,3 +1,7 @@
1
1
  import { TracerBoot } from "./boot.js";
2
- export default TracerBoot;
3
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWdlbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvYWdlbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLFdBQVcsQ0FBQztBQUV2QyxlQUFlLFVBQVUsQ0FBQyJ9
2
+
3
+ //#region src/agent.ts
4
+ var agent_default = TracerBoot;
5
+
6
+ //#endregion
7
+ export { agent_default as default };
@@ -1,2 +1,2 @@
1
- import TracerApplication from './application.ts';
2
- export default TracerApplication;
1
+ import TracerApplication from "./application.js";
2
+ export { TracerApplication as default };
@@ -1,3 +1,7 @@
1
1
  import TracerApplication from "./application.js";
2
- export default TracerApplication;
3
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWdlbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvYXBwL2V4dGVuZC9hZ2VudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLGlCQUFpQixNQUFNLGtCQUFrQixDQUFDO0FBRWpELGVBQWUsaUJBQWlCLENBQUMifQ==
2
+
3
+ //#region src/app/extend/agent.ts
4
+ var agent_default = TracerApplication;
5
+
6
+ //#endregion
7
+ export { agent_default as default };
@@ -1,6 +1,10 @@
1
- import { Application } from 'egg';
2
- import type { Tracer } from '../../lib/tracer.ts';
3
- export declare const isReady: unique symbol;
4
- export default class TracerApplication extends Application {
5
- get tracer(): Tracer;
1
+ import { Tracer } from "../../lib/tracer.js";
2
+ import { Application } from "egg";
3
+
4
+ //#region src/app/extend/application.d.ts
5
+ declare const isReady: unique symbol;
6
+ declare class TracerApplication extends Application {
7
+ get tracer(): Tracer;
6
8
  }
9
+ //#endregion
10
+ export { TracerApplication as default, isReady };
@@ -1,18 +1,18 @@
1
- import { debuglog } from 'node:util';
2
- import { Application } from 'egg';
3
- const debug = debuglog('egg/tracer/app/extend/application');
4
- const cacheTracer = Symbol('before_ready_tracer');
5
- export const isReady = Symbol('egg_tracer_is_ready');
6
- export default class TracerApplication extends Application {
7
- get tracer() {
8
- if (this[isReady]) {
9
- return new this.config.tracer.Class(this.createAnonymousContext());
10
- }
11
- if (!this[cacheTracer]) {
12
- this[cacheTracer] = new this.config.tracer.Class(this.createAnonymousContext());
13
- }
14
- debug('use cached tracer before ready, type: %o', this.type);
15
- return this[cacheTracer];
16
- }
17
- }
18
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBwbGljYXRpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvYXBwL2V4dGVuZC9hcHBsaWNhdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sV0FBVyxDQUFDO0FBRXJDLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSxLQUFLLENBQUM7QUFJbEMsTUFBTSxLQUFLLEdBQUcsUUFBUSxDQUFDLG1DQUFtQyxDQUFDLENBQUM7QUFFNUQsTUFBTSxXQUFXLEdBQWtCLE1BQU0sQ0FBQyxxQkFBcUIsQ0FBQyxDQUFDO0FBQ2pFLE1BQU0sQ0FBQyxNQUFNLE9BQU8sR0FBa0IsTUFBTSxDQUFDLHFCQUFxQixDQUFDLENBQUM7QUFFcEUsTUFBTSxDQUFDLE9BQU8sT0FBTyxpQkFBa0IsU0FBUSxXQUFXO0lBQ3hELElBQUksTUFBTTtRQUNSLElBQUksSUFBSSxDQUFDLE9BQU8sQ0FBQyxFQUFFLENBQUM7WUFDbEIsT0FBTyxJQUFJLElBQUksQ0FBQyxNQUFNLENBQUMsTUFBTSxDQUFDLEtBQUssQ0FBQyxJQUFJLENBQUMsc0JBQXNCLEVBQUUsQ0FBQyxDQUFDO1FBQ3JFLENBQUM7UUFFRCxJQUFJLENBQUMsSUFBSSxDQUFDLFdBQVcsQ0FBQyxFQUFFLENBQUM7WUFDdkIsSUFBSSxDQUFDLFdBQVcsQ0FBQyxHQUFHLElBQUksSUFBSSxDQUFDLE1BQU0sQ0FBQyxNQUFNLENBQUMsS0FBSyxDQUFDLElBQUksQ0FBQyxzQkFBc0IsRUFBRSxDQUFDLENBQUM7UUFDbEYsQ0FBQztRQUVELEtBQUssQ0FBQywwQ0FBMEMsRUFBRSxJQUFJLENBQUMsSUFBSSxDQUFDLENBQUM7UUFDN0QsT0FBTyxJQUFJLENBQUMsV0FBVyxDQUFXLENBQUM7SUFDckMsQ0FBQztDQUNGIn0=
1
+ import { debuglog } from "node:util";
2
+ import { Application } from "egg";
3
+
4
+ //#region src/app/extend/application.ts
5
+ const debug = debuglog("egg/tracer/app/extend/application");
6
+ const cacheTracer = Symbol("before_ready_tracer");
7
+ const isReady = Symbol("egg_tracer_is_ready");
8
+ var TracerApplication = class extends Application {
9
+ get tracer() {
10
+ if (this[isReady]) return new this.config.tracer.Class(this.createAnonymousContext());
11
+ if (!this[cacheTracer]) this[cacheTracer] = new this.config.tracer.Class(this.createAnonymousContext());
12
+ debug("use cached tracer before ready, type: %o", this.type);
13
+ return this[cacheTracer];
14
+ }
15
+ };
16
+
17
+ //#endregion
18
+ export { TracerApplication as default, isReady };
@@ -1,6 +1,10 @@
1
- import { Context } from 'egg';
2
- import type { Tracer } from '../../lib/tracer.ts';
3
- export default class TracerContext extends Context {
4
- get tracer(): Tracer;
5
- get traceId(): string;
1
+ import { Tracer } from "../../lib/tracer.js";
2
+ import { Context } from "egg";
3
+
4
+ //#region src/app/extend/context.d.ts
5
+ declare class TracerContext extends Context {
6
+ get tracer(): Tracer;
7
+ get traceId(): string;
6
8
  }
9
+ //#endregion
10
+ export { TracerContext as default };
@@ -1,14 +1,16 @@
1
- import { Context } from 'egg';
2
- const TRACER = Symbol('context tracer');
3
- export default class TracerContext extends Context {
4
- get tracer() {
5
- if (!this[TRACER]) {
6
- this[TRACER] = new this.app.config.tracer.Class(this);
7
- }
8
- return this[TRACER];
9
- }
10
- get traceId() {
11
- return this.tracer.traceId;
12
- }
13
- }
14
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGV4dC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9hcHAvZXh0ZW5kL2NvbnRleHQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLE9BQU8sRUFBRSxNQUFNLEtBQUssQ0FBQztBQUk5QixNQUFNLE1BQU0sR0FBa0IsTUFBTSxDQUFDLGdCQUFnQixDQUFDLENBQUM7QUFFdkQsTUFBTSxDQUFDLE9BQU8sT0FBTyxhQUFjLFNBQVEsT0FBTztJQUNoRCxJQUFJLE1BQU07UUFDUixJQUFJLENBQUMsSUFBSSxDQUFDLE1BQU0sQ0FBQyxFQUFFLENBQUM7WUFDbEIsSUFBSSxDQUFDLE1BQU0sQ0FBQyxHQUFHLElBQUksSUFBSSxDQUFDLEdBQUcsQ0FBQyxNQUFNLENBQUMsTUFBTSxDQUFDLEtBQUssQ0FBQyxJQUFJLENBQUMsQ0FBQztRQUN4RCxDQUFDO1FBQ0QsT0FBTyxJQUFJLENBQUMsTUFBTSxDQUFXLENBQUM7SUFDaEMsQ0FBQztJQUVELElBQUksT0FBTztRQUNULE9BQU8sSUFBSSxDQUFDLE1BQU0sQ0FBQyxPQUFPLENBQUM7SUFDN0IsQ0FBQztDQUNGIn0=
1
+ import { Context } from "egg";
2
+
3
+ //#region src/app/extend/context.ts
4
+ const TRACER = Symbol("context tracer");
5
+ var TracerContext = class extends Context {
6
+ get tracer() {
7
+ if (!this[TRACER]) this[TRACER] = new this.app.config.tracer.Class(this);
8
+ return this[TRACER];
9
+ }
10
+ get traceId() {
11
+ return this.tracer.traceId;
12
+ }
13
+ };
14
+
15
+ //#endregion
16
+ export { TracerContext as default };
package/dist/app.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { TracerBoot } from './boot.ts';
2
- export default TracerBoot;
1
+ import { TracerBoot } from "./boot.js";
2
+ export { TracerBoot as default };
package/dist/app.js CHANGED
@@ -1,3 +1,7 @@
1
1
  import { TracerBoot } from "./boot.js";
2
- export default TracerBoot;
3
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBwLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2FwcC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sV0FBVyxDQUFDO0FBRXZDLGVBQWUsVUFBVSxDQUFDIn0=
2
+
3
+ //#region src/app.ts
4
+ var app_default = TracerBoot;
5
+
6
+ //#endregion
7
+ export { app_default as default };
package/dist/boot.d.ts CHANGED
@@ -1,6 +1,10 @@
1
- import type { ILifecycleBoot, Application } from 'egg';
2
- export declare class TracerBoot implements ILifecycleBoot {
3
- private readonly app;
4
- constructor(app: Application);
5
- didLoad(): Promise<void>;
1
+ import { Application, ILifecycleBoot } from "egg";
2
+
3
+ //#region src/boot.d.ts
4
+ declare class TracerBoot implements ILifecycleBoot {
5
+ private readonly app;
6
+ constructor(app: Application);
7
+ didLoad(): Promise<void>;
6
8
  }
9
+ //#endregion
10
+ export { TracerBoot };
package/dist/boot.js CHANGED
@@ -1,14 +1,18 @@
1
- import { debuglog } from 'node:util';
2
1
  import { isReady } from "./app/extend/application.js";
3
- const debug = debuglog('egg/tracer/boot');
4
- export class TracerBoot {
5
- app;
6
- constructor(app) {
7
- this.app = app;
8
- }
9
- async didLoad() {
10
- debug('didLoad %o', this.app.type);
11
- this.app[isReady] = true;
12
- }
13
- }
14
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYm9vdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9ib290LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxXQUFXLENBQUM7QUFJckMsT0FBTyxFQUFFLE9BQU8sRUFBRSxNQUFNLDZCQUE2QixDQUFDO0FBRXRELE1BQU0sS0FBSyxHQUFHLFFBQVEsQ0FBQyxpQkFBaUIsQ0FBQyxDQUFDO0FBRTFDLE1BQU0sT0FBTyxVQUFVO0lBQ0osR0FBRyxDQUFDO0lBQ3JCLFlBQVksR0FBZ0I7UUFDMUIsSUFBSSxDQUFDLEdBQUcsR0FBRyxHQUFHLENBQUM7SUFDakIsQ0FBQztJQUVELEtBQUssQ0FBQyxPQUFPO1FBQ1gsS0FBSyxDQUFDLFlBQVksRUFBRSxJQUFJLENBQUMsR0FBRyxDQUFDLElBQUksQ0FBQyxDQUFDO1FBQ25DLElBQUksQ0FBQyxHQUFHLENBQUMsT0FBTyxDQUFDLEdBQUcsSUFBSSxDQUFDO0lBQzNCLENBQUM7Q0FDRiJ9
2
+ import { debuglog } from "node:util";
3
+
4
+ //#region src/boot.ts
5
+ const debug = debuglog("egg/tracer/boot");
6
+ var TracerBoot = class {
7
+ app;
8
+ constructor(app) {
9
+ this.app = app;
10
+ }
11
+ async didLoad() {
12
+ debug("didLoad %o", this.app.type);
13
+ this.app[isReady] = true;
14
+ }
15
+ };
16
+
17
+ //#endregion
18
+ export { TracerBoot };
@@ -1,8 +1,11 @@
1
- import { Tracer } from '../lib/tracer.ts';
2
- export interface TracerConfig {
3
- Class: typeof Tracer;
1
+ import { Tracer } from "../lib/tracer.js";
2
+
3
+ //#region src/config/config.default.d.ts
4
+ interface TracerConfig {
5
+ Class: typeof Tracer;
4
6
  }
5
7
  declare const _default: {
6
- tracer: TracerConfig;
8
+ tracer: TracerConfig;
7
9
  };
8
- export default _default;
10
+ //#endregion
11
+ export { TracerConfig, _default as default };
@@ -1,7 +1,7 @@
1
1
  import { Tracer } from "../lib/tracer.js";
2
- export default {
3
- tracer: {
4
- Class: Tracer,
5
- },
6
- };
7
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlnLmRlZmF1bHQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvY29uZmlnL2NvbmZpZy5kZWZhdWx0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxNQUFNLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQU0xQyxlQUFlO0lBQ2IsTUFBTSxFQUFFO1FBQ04sS0FBSyxFQUFFLE1BQU07S0FDRTtDQUNsQixDQUFDIn0=
2
+
3
+ //#region src/config/config.default.ts
4
+ var config_default_default = { tracer: { Class: Tracer } };
5
+
6
+ //#endregion
7
+ export { config_default_default as default };
package/dist/index.d.ts CHANGED
@@ -1,17 +1,20 @@
1
- import { type EggPluginFactory } from 'egg';
2
- import './types.ts';
3
- import { Tracer } from './lib/tracer.ts';
4
- export { Tracer };
1
+ import { Tracer } from "./lib/tracer.js";
2
+ import "./types.js";
3
+ import { EggPluginFactory } from "egg";
4
+
5
+ //#region src/index.d.ts
6
+
5
7
  /**
6
- * Usage:
7
- * ```ts
8
- * // config/plugin.ts
9
- * import tracerPlugin from '@eggjs/tracer';
10
- *
11
- * export default {
12
- * ...tracerPlugin(),
13
- * };
14
- * ```
15
- */
8
+ * Usage:
9
+ * ```ts
10
+ * // config/plugin.ts
11
+ * import tracerPlugin from '@eggjs/tracer';
12
+ *
13
+ * export default {
14
+ * ...tracerPlugin(),
15
+ * };
16
+ * ```
17
+ */
16
18
  declare const _default: EggPluginFactory;
17
- export default _default;
19
+ //#endregion
20
+ export { Tracer, _default as default };
package/dist/index.js CHANGED
@@ -1,21 +1,23 @@
1
- import { definePluginFactory } from 'egg';
2
- import "./types.js";
3
1
  import { Tracer } from "./lib/tracer.js";
4
- export { Tracer };
2
+ import { definePluginFactory } from "egg";
3
+
4
+ //#region src/index.ts
5
5
  /**
6
- * Usage:
7
- * ```ts
8
- * // config/plugin.ts
9
- * import tracerPlugin from '@eggjs/tracer';
10
- *
11
- * export default {
12
- * ...tracerPlugin(),
13
- * };
14
- * ```
15
- */
16
- export default definePluginFactory({
17
- name: 'tracer',
18
- enable: true,
19
- path: import.meta.dirname,
6
+ * Usage:
7
+ * ```ts
8
+ * // config/plugin.ts
9
+ * import tracerPlugin from '@eggjs/tracer';
10
+ *
11
+ * export default {
12
+ * ...tracerPlugin(),
13
+ * };
14
+ * ```
15
+ */
16
+ var src_default = definePluginFactory({
17
+ name: "tracer",
18
+ enable: true,
19
+ path: import.meta.dirname
20
20
  });
21
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLG1CQUFtQixFQUF5QixNQUFNLEtBQUssQ0FBQztBQUVqRSxPQUFPLFlBQVksQ0FBQztBQUNwQixPQUFPLEVBQUUsTUFBTSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFFekMsT0FBTyxFQUFFLE1BQU0sRUFBRSxDQUFDO0FBRWxCOzs7Ozs7Ozs7O0dBVUc7QUFDSCxlQUFlLG1CQUFtQixDQUFDO0lBQ2pDLElBQUksRUFBRSxRQUFRO0lBQ2QsTUFBTSxFQUFFLElBQUk7SUFDWixJQUFJLEVBQUUsTUFBTSxDQUFDLElBQUksQ0FBQyxPQUFPO0NBQzFCLENBQXFCLENBQUMifQ==
21
+
22
+ //#endregion
23
+ export { Tracer, src_default as default };
@@ -1,7 +1,11 @@
1
- import type { Context } from 'egg';
2
- export declare class Tracer {
3
- #private;
4
- readonly ctx: Context;
5
- constructor(ctx: Context);
6
- get traceId(): string;
1
+ import { Context } from "egg";
2
+
3
+ //#region src/lib/tracer.d.ts
4
+ declare class Tracer {
5
+ #private;
6
+ readonly ctx: Context;
7
+ constructor(ctx: Context);
8
+ get traceId(): string;
7
9
  }
10
+ //#endregion
11
+ export { Tracer };
@@ -1,15 +1,17 @@
1
- import { randomUUID } from 'node:crypto';
2
- export class Tracer {
3
- ctx;
4
- #traceId;
5
- constructor(ctx) {
6
- this.ctx = ctx;
7
- }
8
- get traceId() {
9
- if (!this.#traceId) {
10
- this.#traceId = randomUUID();
11
- }
12
- return this.#traceId;
13
- }
14
- }
15
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhY2VyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2xpYi90cmFjZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGFBQWEsQ0FBQztBQUl6QyxNQUFNLE9BQU8sTUFBTTtJQUNSLEdBQUcsQ0FBVTtJQUN0QixRQUFRLENBQXFCO0lBRTdCLFlBQVksR0FBWTtRQUN0QixJQUFJLENBQUMsR0FBRyxHQUFHLEdBQUcsQ0FBQztJQUNqQixDQUFDO0lBRUQsSUFBSSxPQUFPO1FBQ1QsSUFBSSxDQUFDLElBQUksQ0FBQyxRQUFRLEVBQUUsQ0FBQztZQUNuQixJQUFJLENBQUMsUUFBUSxHQUFHLFVBQVUsRUFBRSxDQUFDO1FBQy9CLENBQUM7UUFDRCxPQUFPLElBQUksQ0FBQyxRQUFRLENBQUM7SUFDdkIsQ0FBQztDQUNGIn0=
1
+ import { randomUUID } from "node:crypto";
2
+
3
+ //#region src/lib/tracer.ts
4
+ var Tracer = class {
5
+ ctx;
6
+ #traceId;
7
+ constructor(ctx) {
8
+ this.ctx = ctx;
9
+ }
10
+ get traceId() {
11
+ if (!this.#traceId) this.#traceId = randomUUID();
12
+ return this.#traceId;
13
+ }
14
+ };
15
+
16
+ //#endregion
17
+ export { Tracer };
package/dist/types.d.ts CHANGED
@@ -1,19 +1,21 @@
1
- import type { TracerConfig } from './config/config.default.ts';
2
- import type { Tracer } from './lib/tracer.ts';
3
- declare module 'egg' {
4
- interface EggAppConfig {
5
- /**
6
- * tracer config
7
- * @member Config#tracer
8
- * @property {Tracer} Class - tracer class name
9
- */
10
- tracer: TracerConfig;
11
- }
12
- interface Application {
13
- tracer: Tracer;
14
- }
15
- interface Context {
16
- tracer: Tracer;
17
- traceId: string;
18
- }
19
- }
1
+ import { Tracer } from "./lib/tracer.js";
2
+ import { TracerConfig } from "./config/config.default.js";
3
+
4
+ //#region src/types.d.ts
5
+ declare module "egg" {
6
+ interface EggAppConfig {
7
+ /**
8
+ * tracer config
9
+ * @member Config#tracer
10
+ * @property {Tracer} Class - tracer class name
11
+ */
12
+ tracer: TracerConfig;
13
+ }
14
+ interface Application {
15
+ tracer: Tracer;
16
+ }
17
+ interface Context {
18
+ tracer: Tracer;
19
+ traceId: string;
20
+ }
21
+ }
package/dist/types.js CHANGED
@@ -1,2 +1 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvdHlwZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiJ9
1
+ export { };
package/package.json CHANGED
@@ -1,45 +1,34 @@
1
1
  {
2
2
  "name": "@eggjs/tracer",
3
- "version": "4.0.0-beta.35",
4
- "publishConfig": {
5
- "access": "public"
6
- },
3
+ "version": "4.0.0-beta.36",
7
4
  "description": "tracer for egg",
8
5
  "keywords": [
9
6
  "egg",
10
7
  "egg-plugin",
11
8
  "eggPlugin",
12
- "tracer",
13
- "traceId",
9
+ "parentSpanId",
14
10
  "spanId",
15
- "parentSpanId"
11
+ "traceId",
12
+ "tracer"
16
13
  ],
17
- "repository": {
18
- "type": "git",
19
- "url": "git+https://github.com/eggjs/egg.git",
20
- "directory": "plugins/tracer"
21
- },
14
+ "homepage": "https://github.com/eggjs/egg/tree/next/plugins/tracer",
22
15
  "bugs": {
23
16
  "url": "https://github.com/eggjs/egg/issues"
24
17
  },
25
- "homepage": "https://github.com/eggjs/egg/tree/next/plugins/tracer",
26
- "author": "fengmk2 <fengmk2@gmail.com> (https://github.com/fengmk2)",
27
18
  "license": "MIT",
28
- "engines": {
29
- "node": ">=22.18.0"
30
- },
31
- "peerDependencies": {
32
- "egg": "4.1.0-beta.35"
33
- },
34
- "devDependencies": {
35
- "tsdown": "^0.17.0",
36
- "typescript": "^5.9.3",
37
- "vitest": "^4.0.15",
38
- "@eggjs/mock": "7.0.0-beta.35",
39
- "@eggjs/tsconfig": "3.1.0-beta.35",
40
- "egg": "4.1.0-beta.35"
19
+ "author": "fengmk2 <fengmk2@gmail.com> (https://github.com/fengmk2)",
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "git+https://github.com/eggjs/egg.git",
23
+ "directory": "plugins/tracer"
41
24
  },
25
+ "files": [
26
+ "dist"
27
+ ],
42
28
  "type": "module",
29
+ "main": "./dist/index.js",
30
+ "module": "./dist/index.js",
31
+ "types": "./dist/index.d.ts",
43
32
  "exports": {
44
33
  ".": "./dist/index.js",
45
34
  "./agent": "./dist/agent.js",
@@ -53,16 +42,22 @@
53
42
  "./types": "./dist/types.js",
54
43
  "./package.json": "./package.json"
55
44
  },
56
- "files": [
57
- "dist"
58
- ],
59
- "types": "./dist/index.d.ts",
60
- "main": "./dist/index.js",
61
- "module": "./dist/index.js",
45
+ "publishConfig": {
46
+ "access": "public"
47
+ },
48
+ "devDependencies": {
49
+ "typescript": "^5.9.3",
50
+ "@eggjs/mock": "7.0.0-beta.36",
51
+ "egg": "4.1.0-beta.36",
52
+ "@eggjs/tsconfig": "3.1.0-beta.36"
53
+ },
54
+ "peerDependencies": {
55
+ "egg": "4.1.0-beta.36"
56
+ },
57
+ "engines": {
58
+ "node": ">=22.18.0"
59
+ },
62
60
  "scripts": {
63
- "lint": "oxlint --type-aware",
64
- "typecheck": "tsc --noEmit",
65
- "test": "vitest run",
66
- "build": "tsdown && rimraf dist *.tsbuildinfo && tsc -p tsconfig.build.json"
61
+ "typecheck": "tsgo --noEmit"
67
62
  }
68
63
  }