@opentelemetry/api-logs
Advanced tools
Comparing version 0.35.1 to 0.36.0
export * from './types/Logger'; | ||
export * from './types/LoggerProvider'; | ||
export * from './types/LogRecord'; | ||
export * from './types/LogEvent'; | ||
export * from './types/LoggerOptions'; | ||
@@ -6,0 +5,0 @@ import { LogsAPI } from './api/logs'; |
@@ -19,3 +19,2 @@ /* | ||
export * from './types/LogRecord'; | ||
export * from './types/LogEvent'; | ||
export * from './types/LoggerOptions'; | ||
@@ -22,0 +21,0 @@ import { LogsAPI } from './api/logs'; |
import { Logger } from './types/Logger'; | ||
import { LogEvent } from './types/LogEvent'; | ||
import { LogRecord } from './types/LogRecord'; | ||
export declare class NoopLogger implements Logger { | ||
emitLogRecord(_logRecord: LogRecord): void; | ||
emitEvent(_event: LogEvent): void; | ||
emit(_logRecord: LogRecord): void; | ||
} | ||
//# sourceMappingURL=NoopLogger.d.ts.map |
@@ -19,4 +19,3 @@ /* | ||
} | ||
NoopLogger.prototype.emitLogRecord = function (_logRecord) { }; | ||
NoopLogger.prototype.emitEvent = function (_event) { }; | ||
NoopLogger.prototype.emit = function (_logRecord) { }; | ||
return NoopLogger; | ||
@@ -23,0 +22,0 @@ }()); |
import { LogRecord } from './LogRecord'; | ||
import { LogEvent } from './LogEvent'; | ||
export interface Logger { | ||
@@ -9,10 +8,4 @@ /** | ||
*/ | ||
emitLogRecord(logRecord: LogRecord): void; | ||
/** | ||
* Emit an event. This method should only be used by instrumentations emitting events. | ||
* | ||
* @param event | ||
*/ | ||
emitEvent(event: LogEvent): void; | ||
emit(logRecord: LogRecord): void; | ||
} | ||
//# sourceMappingURL=Logger.d.ts.map |
@@ -9,13 +9,2 @@ import { Attributes } from '@opentelemetry/api'; | ||
/** | ||
* The default domain for events created by the Logger. | ||
* | ||
* The combination of event name and event domain uiquely identifies an event. | ||
* By supplying an event domain, it is possible to use the same event name across | ||
* different domains / use cases. | ||
* | ||
* The default domain can be overridden when emitting an individual event. | ||
* @default '' | ||
*/ | ||
eventDomain?: string; | ||
/** | ||
* The instrumentation scope attributes to associate with emitted telemetry | ||
@@ -22,0 +11,0 @@ */ |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "0.35.1"; | ||
export declare const VERSION = "0.36.0"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -17,3 +17,3 @@ /* | ||
// this is autogenerated file, see scripts/version-update.js | ||
export var VERSION = '0.35.1'; | ||
export var VERSION = '0.36.0'; | ||
//# sourceMappingURL=version.js.map |
export * from './types/Logger'; | ||
export * from './types/LoggerProvider'; | ||
export * from './types/LogRecord'; | ||
export * from './types/LogEvent'; | ||
export * from './types/LoggerOptions'; | ||
@@ -6,0 +5,0 @@ import { LogsAPI } from './api/logs'; |
@@ -19,3 +19,2 @@ /* | ||
export * from './types/LogRecord'; | ||
export * from './types/LogEvent'; | ||
export * from './types/LoggerOptions'; | ||
@@ -22,0 +21,0 @@ import { LogsAPI } from './api/logs'; |
import { Logger } from './types/Logger'; | ||
import { LogEvent } from './types/LogEvent'; | ||
import { LogRecord } from './types/LogRecord'; | ||
export declare class NoopLogger implements Logger { | ||
emitLogRecord(_logRecord: LogRecord): void; | ||
emitEvent(_event: LogEvent): void; | ||
emit(_logRecord: LogRecord): void; | ||
} | ||
//# sourceMappingURL=NoopLogger.d.ts.map |
@@ -17,5 +17,4 @@ /* | ||
export class NoopLogger { | ||
emitLogRecord(_logRecord) { } | ||
emitEvent(_event) { } | ||
emit(_logRecord) { } | ||
} | ||
//# sourceMappingURL=NoopLogger.js.map |
import { LogRecord } from './LogRecord'; | ||
import { LogEvent } from './LogEvent'; | ||
export interface Logger { | ||
@@ -9,10 +8,4 @@ /** | ||
*/ | ||
emitLogRecord(logRecord: LogRecord): void; | ||
/** | ||
* Emit an event. This method should only be used by instrumentations emitting events. | ||
* | ||
* @param event | ||
*/ | ||
emitEvent(event: LogEvent): void; | ||
emit(logRecord: LogRecord): void; | ||
} | ||
//# sourceMappingURL=Logger.d.ts.map |
@@ -9,13 +9,2 @@ import { Attributes } from '@opentelemetry/api'; | ||
/** | ||
* The default domain for events created by the Logger. | ||
* | ||
* The combination of event name and event domain uiquely identifies an event. | ||
* By supplying an event domain, it is possible to use the same event name across | ||
* different domains / use cases. | ||
* | ||
* The default domain can be overridden when emitting an individual event. | ||
* @default '' | ||
*/ | ||
eventDomain?: string; | ||
/** | ||
* The instrumentation scope attributes to associate with emitted telemetry | ||
@@ -22,0 +11,0 @@ */ |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "0.35.1"; | ||
export declare const VERSION = "0.36.0"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -17,3 +17,3 @@ /* | ||
// this is autogenerated file, see scripts/version-update.js | ||
export const VERSION = '0.35.1'; | ||
export const VERSION = '0.36.0'; | ||
//# sourceMappingURL=version.js.map |
export * from './types/Logger'; | ||
export * from './types/LoggerProvider'; | ||
export * from './types/LogRecord'; | ||
export * from './types/LogEvent'; | ||
export * from './types/LoggerOptions'; | ||
@@ -6,0 +5,0 @@ import { LogsAPI } from './api/logs'; |
@@ -32,3 +32,2 @@ "use strict"; | ||
__exportStar(require("./types/LogRecord"), exports); | ||
__exportStar(require("./types/LogEvent"), exports); | ||
__exportStar(require("./types/LoggerOptions"), exports); | ||
@@ -35,0 +34,0 @@ const logs_1 = require("./api/logs"); |
import { Logger } from './types/Logger'; | ||
import { LogEvent } from './types/LogEvent'; | ||
import { LogRecord } from './types/LogRecord'; | ||
export declare class NoopLogger implements Logger { | ||
emitLogRecord(_logRecord: LogRecord): void; | ||
emitEvent(_event: LogEvent): void; | ||
emit(_logRecord: LogRecord): void; | ||
} | ||
//# sourceMappingURL=NoopLogger.d.ts.map |
@@ -20,6 +20,5 @@ "use strict"; | ||
class NoopLogger { | ||
emitLogRecord(_logRecord) { } | ||
emitEvent(_event) { } | ||
emit(_logRecord) { } | ||
} | ||
exports.NoopLogger = NoopLogger; | ||
//# sourceMappingURL=NoopLogger.js.map |
import { LogRecord } from './LogRecord'; | ||
import { LogEvent } from './LogEvent'; | ||
export interface Logger { | ||
@@ -9,10 +8,4 @@ /** | ||
*/ | ||
emitLogRecord(logRecord: LogRecord): void; | ||
/** | ||
* Emit an event. This method should only be used by instrumentations emitting events. | ||
* | ||
* @param event | ||
*/ | ||
emitEvent(event: LogEvent): void; | ||
emit(logRecord: LogRecord): void; | ||
} | ||
//# sourceMappingURL=Logger.d.ts.map |
@@ -9,13 +9,2 @@ import { Attributes } from '@opentelemetry/api'; | ||
/** | ||
* The default domain for events created by the Logger. | ||
* | ||
* The combination of event name and event domain uiquely identifies an event. | ||
* By supplying an event domain, it is possible to use the same event name across | ||
* different domains / use cases. | ||
* | ||
* The default domain can be overridden when emitting an individual event. | ||
* @default '' | ||
*/ | ||
eventDomain?: string; | ||
/** | ||
* The instrumentation scope attributes to associate with emitted telemetry | ||
@@ -22,0 +11,0 @@ */ |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "0.35.1"; | ||
export declare const VERSION = "0.36.0"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -20,3 +20,3 @@ "use strict"; | ||
// this is autogenerated file, see scripts/version-update.js | ||
exports.VERSION = '0.35.1'; | ||
exports.VERSION = '0.36.0'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@opentelemetry/api-logs", | ||
"version": "0.35.1", | ||
"version": "0.36.0", | ||
"description": "Public logs API for OpenTelemetry", | ||
@@ -38,3 +38,2 @@ "main": "build/src/index.js", | ||
"logs", | ||
"events", | ||
"stats", | ||
@@ -89,3 +88,3 @@ "monitoring" | ||
"sideEffects": false, | ||
"gitHead": "279458e7ddf16f7ddca5fe60c78672e05fafce66" | ||
"gitHead": "56e6b1bb890f844b8963a146780d0b9cfa8abd0d" | ||
} |
@@ -41,7 +41,4 @@ # OpenTelemetry API for JavaScript | ||
// logging an event in an instrumentation library | ||
logger.emitEvent({ name: 'event-name', domain: 'event-domain' }); | ||
// logging an event in a log appender | ||
logger.emitLogRecord({ severityNumber: SeverityNumber.TRACE, body: 'log data' }); | ||
// logging a log record in a log appender | ||
logger.emit({ severityNumber: SeverityNumber.TRACE, body: 'log data' }); | ||
``` | ||
@@ -48,0 +45,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
155669
138
1716
61