Skip to content

Commit

Permalink
chore(mwcp): TraceInit onReady
Browse files Browse the repository at this point in the history
  • Loading branch information
waitingsong committed Apr 21, 2024
1 parent 62efef7 commit dc2bd4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/midway-component-fetch/src/configuration.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
/* eslint-disable import/max-dependencies */
// import assert from 'node:assert'

import {
Configuration,
ILifeCycle,
ILogger,
Logger,
} from '@midwayjs/core'
import { TraceInit } from '@mwcp/otel'

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

@Logger() protected readonly logger: ILogger

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

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

0 comments on commit dc2bd4c

Please sign in to comment.