@opentelemetry/sdk-logs
Advanced tools
Comparing version 0.49.1 to 0.50.0
import type { IResource } from '@opentelemetry/resources'; | ||
import type { HrTime, SpanContext } from '@opentelemetry/api'; | ||
import type { InstrumentationScope } from '@opentelemetry/core'; | ||
import type { LogAttributes, SeverityNumber } from '@opentelemetry/api-logs'; | ||
import type { LogBody, LogAttributes, SeverityNumber } from '@opentelemetry/api-logs'; | ||
export interface ReadableLogRecord { | ||
@@ -11,3 +11,3 @@ readonly hrTime: HrTime; | ||
readonly severityNumber?: SeverityNumber; | ||
readonly body?: string; | ||
readonly body?: LogBody; | ||
readonly resource: IResource; | ||
@@ -14,0 +14,0 @@ readonly instrumentationScope: InstrumentationScope; |
@@ -28,4 +28,6 @@ /* | ||
if (config === void 0) { config = {}; } | ||
var _a = merge({}, loadDefaultConfig(), config), _b = _a.resource, resource = _b === void 0 ? Resource.default() : _b, logRecordLimits = _a.logRecordLimits, forceFlushTimeoutMillis = _a.forceFlushTimeoutMillis; | ||
this._sharedState = new LoggerProviderSharedState(resource, forceFlushTimeoutMillis, reconfigureLimits(logRecordLimits)); | ||
var _a; | ||
var mergedConfig = merge({}, loadDefaultConfig(), config); | ||
var resource = Resource.default().merge((_a = mergedConfig.resource) !== null && _a !== void 0 ? _a : Resource.empty()); | ||
this._sharedState = new LoggerProviderSharedState(resource, mergedConfig.forceFlushTimeoutMillis, reconfigureLimits(mergedConfig.logRecordLimits)); | ||
this._shutdownOnce = new BindOnceFuture(this._shutdown, this); | ||
@@ -32,0 +34,0 @@ } |
@@ -7,3 +7,3 @@ import { AttributeValue } from '@opentelemetry/api'; | ||
import type { ReadableLogRecord } from './export/ReadableLogRecord'; | ||
import { LogAttributes } from '@opentelemetry/api-logs'; | ||
import { LogAttributes, LogBody } from '@opentelemetry/api-logs'; | ||
import { LoggerProviderSharedState } from './internal/LoggerProviderSharedState'; | ||
@@ -27,4 +27,4 @@ export declare class LogRecord implements ReadableLogRecord { | ||
get severityNumber(): logsAPI.SeverityNumber | undefined; | ||
set body(body: string | undefined); | ||
get body(): string | undefined; | ||
set body(body: LogBody | undefined); | ||
get body(): LogBody | undefined; | ||
get droppedAttributesCount(): number; | ||
@@ -34,3 +34,3 @@ constructor(_sharedState: LoggerProviderSharedState, instrumentationScope: InstrumentationScope, logRecord: logsAPI.LogRecord); | ||
setAttributes(attributes: LogAttributes): this; | ||
setBody(body: string): this; | ||
setBody(body: LogBody): this; | ||
setSeverityNumber(severityNumber: logsAPI.SeverityNumber): this; | ||
@@ -37,0 +37,0 @@ setSeverityText(severityText: string): this; |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "0.49.1"; | ||
export declare const VERSION = "0.50.0"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -17,3 +17,3 @@ /* | ||
// this is autogenerated file, see scripts/version-update.js | ||
export var VERSION = '0.49.1'; | ||
export var VERSION = '0.50.0'; | ||
//# sourceMappingURL=version.js.map |
import type { IResource } from '@opentelemetry/resources'; | ||
import type { HrTime, SpanContext } from '@opentelemetry/api'; | ||
import type { InstrumentationScope } from '@opentelemetry/core'; | ||
import type { LogAttributes, SeverityNumber } from '@opentelemetry/api-logs'; | ||
import type { LogBody, LogAttributes, SeverityNumber } from '@opentelemetry/api-logs'; | ||
export interface ReadableLogRecord { | ||
@@ -11,3 +11,3 @@ readonly hrTime: HrTime; | ||
readonly severityNumber?: SeverityNumber; | ||
readonly body?: string; | ||
readonly body?: LogBody; | ||
readonly resource: IResource; | ||
@@ -14,0 +14,0 @@ readonly instrumentationScope: InstrumentationScope; |
@@ -27,4 +27,6 @@ /* | ||
constructor(config = {}) { | ||
const { resource = Resource.default(), logRecordLimits, forceFlushTimeoutMillis, } = merge({}, loadDefaultConfig(), config); | ||
this._sharedState = new LoggerProviderSharedState(resource, forceFlushTimeoutMillis, reconfigureLimits(logRecordLimits)); | ||
var _a; | ||
const mergedConfig = merge({}, loadDefaultConfig(), config); | ||
const resource = Resource.default().merge((_a = mergedConfig.resource) !== null && _a !== void 0 ? _a : Resource.empty()); | ||
this._sharedState = new LoggerProviderSharedState(resource, mergedConfig.forceFlushTimeoutMillis, reconfigureLimits(mergedConfig.logRecordLimits)); | ||
this._shutdownOnce = new BindOnceFuture(this._shutdown, this); | ||
@@ -31,0 +33,0 @@ } |
@@ -7,3 +7,3 @@ import { AttributeValue } from '@opentelemetry/api'; | ||
import type { ReadableLogRecord } from './export/ReadableLogRecord'; | ||
import { LogAttributes } from '@opentelemetry/api-logs'; | ||
import { LogAttributes, LogBody } from '@opentelemetry/api-logs'; | ||
import { LoggerProviderSharedState } from './internal/LoggerProviderSharedState'; | ||
@@ -27,4 +27,4 @@ export declare class LogRecord implements ReadableLogRecord { | ||
get severityNumber(): logsAPI.SeverityNumber | undefined; | ||
set body(body: string | undefined); | ||
get body(): string | undefined; | ||
set body(body: LogBody | undefined); | ||
get body(): LogBody | undefined; | ||
get droppedAttributesCount(): number; | ||
@@ -34,3 +34,3 @@ constructor(_sharedState: LoggerProviderSharedState, instrumentationScope: InstrumentationScope, logRecord: logsAPI.LogRecord); | ||
setAttributes(attributes: LogAttributes): this; | ||
setBody(body: string): this; | ||
setBody(body: LogBody): this; | ||
setSeverityNumber(severityNumber: logsAPI.SeverityNumber): this; | ||
@@ -37,0 +37,0 @@ setSeverityText(severityText: string): this; |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "0.49.1"; | ||
export declare const VERSION = "0.50.0"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -17,3 +17,3 @@ /* | ||
// this is autogenerated file, see scripts/version-update.js | ||
export const VERSION = '0.49.1'; | ||
export const VERSION = '0.50.0'; | ||
//# sourceMappingURL=version.js.map |
import type { IResource } from '@opentelemetry/resources'; | ||
import type { HrTime, SpanContext } from '@opentelemetry/api'; | ||
import type { InstrumentationScope } from '@opentelemetry/core'; | ||
import type { LogAttributes, SeverityNumber } from '@opentelemetry/api-logs'; | ||
import type { LogBody, LogAttributes, SeverityNumber } from '@opentelemetry/api-logs'; | ||
export interface ReadableLogRecord { | ||
@@ -11,3 +11,3 @@ readonly hrTime: HrTime; | ||
readonly severityNumber?: SeverityNumber; | ||
readonly body?: string; | ||
readonly body?: LogBody; | ||
readonly resource: IResource; | ||
@@ -14,0 +14,0 @@ readonly instrumentationScope: InstrumentationScope; |
@@ -30,4 +30,6 @@ "use strict"; | ||
constructor(config = {}) { | ||
const { resource = resources_1.Resource.default(), logRecordLimits, forceFlushTimeoutMillis, } = (0, core_1.merge)({}, (0, config_1.loadDefaultConfig)(), config); | ||
this._sharedState = new LoggerProviderSharedState_1.LoggerProviderSharedState(resource, forceFlushTimeoutMillis, (0, config_1.reconfigureLimits)(logRecordLimits)); | ||
var _a; | ||
const mergedConfig = (0, core_1.merge)({}, (0, config_1.loadDefaultConfig)(), config); | ||
const resource = resources_1.Resource.default().merge((_a = mergedConfig.resource) !== null && _a !== void 0 ? _a : resources_1.Resource.empty()); | ||
this._sharedState = new LoggerProviderSharedState_1.LoggerProviderSharedState(resource, mergedConfig.forceFlushTimeoutMillis, (0, config_1.reconfigureLimits)(mergedConfig.logRecordLimits)); | ||
this._shutdownOnce = new core_1.BindOnceFuture(this._shutdown, this); | ||
@@ -34,0 +36,0 @@ } |
@@ -7,3 +7,3 @@ import { AttributeValue } from '@opentelemetry/api'; | ||
import type { ReadableLogRecord } from './export/ReadableLogRecord'; | ||
import { LogAttributes } from '@opentelemetry/api-logs'; | ||
import { LogAttributes, LogBody } from '@opentelemetry/api-logs'; | ||
import { LoggerProviderSharedState } from './internal/LoggerProviderSharedState'; | ||
@@ -27,4 +27,4 @@ export declare class LogRecord implements ReadableLogRecord { | ||
get severityNumber(): logsAPI.SeverityNumber | undefined; | ||
set body(body: string | undefined); | ||
get body(): string | undefined; | ||
set body(body: LogBody | undefined); | ||
get body(): LogBody | undefined; | ||
get droppedAttributesCount(): number; | ||
@@ -34,3 +34,3 @@ constructor(_sharedState: LoggerProviderSharedState, instrumentationScope: InstrumentationScope, logRecord: logsAPI.LogRecord); | ||
setAttributes(attributes: LogAttributes): this; | ||
setBody(body: string): this; | ||
setBody(body: LogBody): this; | ||
setSeverityNumber(severityNumber: logsAPI.SeverityNumber): this; | ||
@@ -37,0 +37,0 @@ setSeverityText(severityText: string): this; |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "0.49.1"; | ||
export declare const VERSION = "0.50.0"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -20,3 +20,3 @@ "use strict"; | ||
// this is autogenerated file, see scripts/version-update.js | ||
exports.VERSION = '0.49.1'; | ||
exports.VERSION = '0.50.0'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@opentelemetry/sdk-logs", | ||
"version": "0.49.1", | ||
"version": "0.50.0", | ||
"publishConfig": { | ||
@@ -78,3 +78,3 @@ "access": "public" | ||
"@opentelemetry/api": ">=1.4.0 <1.9.0", | ||
"@opentelemetry/api-logs": "0.49.1", | ||
"@opentelemetry/api-logs": "0.50.0", | ||
"@opentelemetry/resources_1.9.0": "npm:@opentelemetry/resources@1.9.0", | ||
@@ -105,6 +105,6 @@ "@types/mocha": "10.0.6", | ||
"dependencies": { | ||
"@opentelemetry/core": "1.22.0", | ||
"@opentelemetry/resources": "1.22.0" | ||
"@opentelemetry/core": "1.23.0", | ||
"@opentelemetry/resources": "1.23.0" | ||
}, | ||
"gitHead": "3920b158d08daa776280bde68a79e44bafa4e8ea" | ||
"gitHead": "5231aa255047fbc6ee3d6a299f4423ab2f8a5fbc" | ||
} |
@@ -49,3 +49,3 @@ # OpenTelemetry Logs SDK | ||
logger.emit({ | ||
severityNumber: SeverityNumber.INFO, | ||
severityNumber: logsAPI.SeverityNumber.INFO, | ||
severityText: 'INFO', | ||
@@ -52,0 +52,0 @@ body: 'this is a log record body', |
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
418638
4390
+ Added@opentelemetry/api-logs@0.54.2(transitive)
+ Added@opentelemetry/core@1.23.0(transitive)
+ Added@opentelemetry/resources@1.23.0(transitive)
+ Added@opentelemetry/semantic-conventions@1.23.0(transitive)
- Removed@opentelemetry/api-logs@0.54.0(transitive)
- Removed@opentelemetry/core@1.22.0(transitive)
- Removed@opentelemetry/resources@1.22.0(transitive)
- Removed@opentelemetry/semantic-conventions@1.22.0(transitive)
Updated@opentelemetry/core@1.23.0