Skip to content

Commit dc2bd4c

Browse files
committed
chore(mwcp): TraceInit onReady
1 parent 62efef7 commit dc2bd4c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/midway-component-fetch/src/configuration.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
/* eslint-disable import/max-dependencies */
2-
// import assert from 'node:assert'
3-
42
import {
53
Configuration,
64
ILifeCycle,
75
ILogger,
86
Logger,
97
} from '@midwayjs/core'
8+
import { TraceInit } from '@mwcp/otel'
109

1110
import * as DefaultConfig from './config/config.default.js'
1211
// import * as LocalConfig from './config/config.local.js'
@@ -34,6 +33,7 @@ export class AutoConfiguration implements ILifeCycle {
3433

3534
@Logger() protected readonly logger: ILogger
3635

36+
@TraceInit(`INIT ${ConfigKey.componentName}.onReady`)
3737
async onReady(): Promise<void> {
3838

3939
this.logger.info(`[${ConfigKey.componentName}] onReady`)

0 commit comments

Comments
 (0)