We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62efef7 commit dc2bd4cCopy full SHA for dc2bd4c
1 file changed
packages/midway-component-fetch/src/configuration.ts
@@ -1,12 +1,11 @@
1
/* eslint-disable import/max-dependencies */
2
-// import assert from 'node:assert'
3
-
4
import {
5
Configuration,
6
ILifeCycle,
7
ILogger,
8
Logger,
9
} from '@midwayjs/core'
+import { TraceInit } from '@mwcp/otel'
10
11
import * as DefaultConfig from './config/config.default.js'
12
// import * as LocalConfig from './config/config.local.js'
@@ -34,6 +33,7 @@ export class AutoConfiguration implements ILifeCycle {
34
33
35
@Logger() protected readonly logger: ILogger
36
+ @TraceInit(`INIT ${ConfigKey.componentName}.onReady`)
37
async onReady(): Promise<void> {
38
39
this.logger.info(`[${ConfigKey.componentName}] onReady`)
0 commit comments