Socket
Socket
Sign inDemoInstall

@opentelemetry/otlp-transformer

Package Overview
Dependencies
Maintainers
3
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentelemetry/otlp-transformer - npm Package Compare versions

Comparing version 0.39.1 to 0.40.0

2

build/esm/common/internal.d.ts

@@ -1,3 +0,3 @@

import type { Attributes } from '@opentelemetry/api';
import type { IAnyValue, IKeyValue } from './types';
import { Attributes } from '@opentelemetry/api';
export declare function toAttributes(attributes: Attributes): IKeyValue[];

@@ -4,0 +4,0 @@ export declare function toKeyValue(key: string, value: unknown): IKeyValue;

import type { ReadableLogRecord } from '@opentelemetry/sdk-logs';
import { IExportLogsServiceRequest } from './types';
import { IKeyValue } from '../common/types';
import { LogAttributes } from '@opentelemetry/api-logs';
export declare function createExportLogsServiceRequest(logRecords: ReadableLogRecord[], useHex?: boolean): IExportLogsServiceRequest;
export declare function toLogAttributes(attributes: LogAttributes): IKeyValue[];
//# sourceMappingURL=index.d.ts.map

@@ -43,3 +43,3 @@ /*

};
import { toAnyValue, toAttributes } from '../common/internal';
import { toAnyValue, toAttributes, toKeyValue } from '../common/internal';
import { hexToBase64, hrTimeToNanoseconds } from '@opentelemetry/core';

@@ -107,7 +107,7 @@ export function createExportLogsServiceRequest(logRecords, useHex) {

timeUnixNano: hrTimeToNanoseconds(log.hrTime),
observedTimeUnixNano: hrTimeToNanoseconds(log.hrTime),
observedTimeUnixNano: hrTimeToNanoseconds(log.hrTimeObserved),
severityNumber: toSeverityNumber(log.severityNumber),
severityText: log.severityText,
body: toAnyValue(log.body),
attributes: toAttributes(log.attributes),
attributes: toLogAttributes(log.attributes),
droppedAttributesCount: 0,

@@ -131,2 +131,5 @@ flags: (_a = log.spanContext) === null || _a === void 0 ? void 0 : _a.traceFlags,

}
export function toLogAttributes(attributes) {
return Object.keys(attributes).map(function (key) { return toKeyValue(key, attributes[key]); });
}
//# sourceMappingURL=index.js.map

@@ -1,3 +0,3 @@

import type { Attributes } from '@opentelemetry/api';
import type { IAnyValue, IKeyValue } from './types';
import { Attributes } from '@opentelemetry/api';
export declare function toAttributes(attributes: Attributes): IKeyValue[];

@@ -4,0 +4,0 @@ export declare function toKeyValue(key: string, value: unknown): IKeyValue;

import type { ReadableLogRecord } from '@opentelemetry/sdk-logs';
import { IExportLogsServiceRequest } from './types';
import { IKeyValue } from '../common/types';
import { LogAttributes } from '@opentelemetry/api-logs';
export declare function createExportLogsServiceRequest(logRecords: ReadableLogRecord[], useHex?: boolean): IExportLogsServiceRequest;
export declare function toLogAttributes(attributes: LogAttributes): IKeyValue[];
//# sourceMappingURL=index.d.ts.map

@@ -16,3 +16,3 @@ /*

*/
import { toAnyValue, toAttributes } from '../common/internal';
import { toAnyValue, toAttributes, toKeyValue } from '../common/internal';
import { hexToBase64, hrTimeToNanoseconds } from '@opentelemetry/core';

@@ -65,7 +65,7 @@ export function createExportLogsServiceRequest(logRecords, useHex) {

timeUnixNano: hrTimeToNanoseconds(log.hrTime),
observedTimeUnixNano: hrTimeToNanoseconds(log.hrTime),
observedTimeUnixNano: hrTimeToNanoseconds(log.hrTimeObserved),
severityNumber: toSeverityNumber(log.severityNumber),
severityText: log.severityText,
body: toAnyValue(log.body),
attributes: toAttributes(log.attributes),
attributes: toLogAttributes(log.attributes),
droppedAttributesCount: 0,

@@ -89,2 +89,5 @@ flags: (_a = log.spanContext) === null || _a === void 0 ? void 0 : _a.traceFlags,

}
export function toLogAttributes(attributes) {
return Object.keys(attributes).map(key => toKeyValue(key, attributes[key]));
}
//# sourceMappingURL=index.js.map

@@ -1,3 +0,3 @@

import type { Attributes } from '@opentelemetry/api';
import type { IAnyValue, IKeyValue } from './types';
import { Attributes } from '@opentelemetry/api';
export declare function toAttributes(attributes: Attributes): IKeyValue[];

@@ -4,0 +4,0 @@ export declare function toKeyValue(key: string, value: unknown): IKeyValue;

import type { ReadableLogRecord } from '@opentelemetry/sdk-logs';
import { IExportLogsServiceRequest } from './types';
import { IKeyValue } from '../common/types';
import { LogAttributes } from '@opentelemetry/api-logs';
export declare function createExportLogsServiceRequest(logRecords: ReadableLogRecord[], useHex?: boolean): IExportLogsServiceRequest;
export declare function toLogAttributes(attributes: LogAttributes): IKeyValue[];
//# sourceMappingURL=index.d.ts.map

@@ -18,3 +18,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.createExportLogsServiceRequest = void 0;
exports.toLogAttributes = exports.createExportLogsServiceRequest = void 0;
const internal_1 = require("../common/internal");

@@ -69,7 +69,7 @@ const core_1 = require("@opentelemetry/core");

timeUnixNano: (0, core_1.hrTimeToNanoseconds)(log.hrTime),
observedTimeUnixNano: (0, core_1.hrTimeToNanoseconds)(log.hrTime),
observedTimeUnixNano: (0, core_1.hrTimeToNanoseconds)(log.hrTimeObserved),
severityNumber: toSeverityNumber(log.severityNumber),
severityText: log.severityText,
body: (0, internal_1.toAnyValue)(log.body),
attributes: (0, internal_1.toAttributes)(log.attributes),
attributes: toLogAttributes(log.attributes),
droppedAttributesCount: 0,

@@ -93,2 +93,6 @@ flags: (_a = log.spanContext) === null || _a === void 0 ? void 0 : _a.traceFlags,

}
function toLogAttributes(attributes) {
return Object.keys(attributes).map(key => (0, internal_1.toKeyValue)(key, attributes[key]));
}
exports.toLogAttributes = toLogAttributes;
//# sourceMappingURL=index.js.map

@@ -7,3 +7,3 @@ {

},
"version": "0.39.1",
"version": "0.40.0",
"description": "Transform OpenTelemetry SDK data into OTLP",

@@ -61,2 +61,3 @@ "module": "build/esm/index.js",

"@opentelemetry/api-logs": "0.39.1",
"@opentelemetry/sdk-logs": "0.39.1",
"@types/mocha": "10.0.0",

@@ -80,12 +81,12 @@ "@types/webpack-env": "1.16.3",

"dependencies": {
"@opentelemetry/api-logs": "0.39.1",
"@opentelemetry/core": "1.13.0",
"@opentelemetry/resources": "1.13.0",
"@opentelemetry/sdk-logs": "0.39.1",
"@opentelemetry/sdk-metrics": "1.13.0",
"@opentelemetry/sdk-trace-base": "1.13.0"
"@opentelemetry/api-logs": "0.40.0",
"@opentelemetry/core": "1.14.0",
"@opentelemetry/resources": "1.14.0",
"@opentelemetry/sdk-logs": "0.40.0",
"@opentelemetry/sdk-metrics": "1.14.0",
"@opentelemetry/sdk-trace-base": "1.14.0"
},
"homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/otlp-transformer",
"sideEffects": false,
"gitHead": "bba09c0e5a6d92fc71ed08028966ae9d56da53db"
"gitHead": "edebbcc757535bc88f01340409dbbecc0bb6ccf8"
}

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc