Skip to content

Commit c574020

Browse files
committed
better child
1 parent 4e02d23 commit c574020

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

packages/plugins/opentelemetry/src/plugin.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -313,11 +313,7 @@ export function useOpenTelemetry(
313313

314314
const logger = createDeferred<Logger>();
315315
let pluginLogger = options.log
316-
? fakePromise(
317-
options.log.child({
318-
plugin: 'OpenTelemetry',
319-
}),
320-
)
316+
? fakePromise(options.log.child('[useOpenTelemetry] '))
321317
: logger.promise;
322318

323319
function init(): Promise<boolean> {

packages/runtime/src/createGatewayRuntime.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,7 @@ export function createGatewayRuntime<
214214
persistedDocumentsPlugin = useHiveConsole({
215215
...configContext,
216216
enabled: false, // disables only usage reporting
217-
log: configContext.log.child({
218-
plugin: 'Hive Persisted Documents',
219-
}),
217+
log: configContext.log.child('[useHiveConsole.persistedDocuments] '),
220218
experimental__persistedDocuments: {
221219
cdn: {
222220
endpoint: config.persistedDocuments.endpoint,

0 commit comments

Comments
 (0)