newrelic
Version:
New Relic agent
26 lines (20 loc) • 537 B
JavaScript
/*
* Copyright 2025 New Relic Corporation. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
*/
const { ExportResultCode } = require('@opentelemetry/core')
/**
* @see https://open-telemetry.github.io/opentelemetry-js/interfaces/_opentelemetry_sdk-node.logs.LogRecordExporter.html
*/
class NewRelicNoOpExporter {
export(_, done) {
if (typeof done === 'function') {
done(ExportResultCode.SUCCESS)
}
}
shutdown() {
return Promise.resolve()
}
}
module.exports = NewRelicNoOpExporter