Skip to content

Commit

Permalink
fix: linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Nico385412 committed Jun 19, 2023
1 parent 92acd5c commit 6eb6be4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@ import * as Config from '../../src/platform/config';
import { OTLPLogExporter } from '../../src/platform/browser';
import { OTLPExporterConfigBase } from '@opentelemetry/otlp-exporter-base';
import { ReadableLogRecord } from '@opentelemetry/sdk-logs';
import { MockedResponse, ensureExportLogsServiceRequestIsSet, ensureExportedLogRecordIsCorrect, mockedReadableLogRecord } from '../logHelper';
import {
MockedResponse,
ensureExportLogsServiceRequestIsSet,
ensureExportedLogRecordIsCorrect,
mockedReadableLogRecord,
} from '../logHelper';
import { PassThrough, Stream } from 'stream';
import { IExportLogsServiceRequest } from '@opentelemetry/otlp-transformer';
import { ExportResultCode } from '@opentelemetry/core';
Expand Down Expand Up @@ -87,7 +92,7 @@ describe('OTLPLogExporter', () => {
foo: 'bar',
},
hostname: 'foo',
url: 'http://foo.bar.com'
url: 'http://foo.bar.com',
};
collectorExporter = new OTLPLogExporter(collectorExporterConfig);
logs = [];
Expand All @@ -113,7 +118,6 @@ describe('OTLPLogExporter', () => {
});

it('should set custom headers', done => {

sinon.stub(http, 'request').callsFake((options: any, cb: any) => {
assert.strictEqual(options.headers['foo'], 'bar');

Expand All @@ -128,7 +132,6 @@ describe('OTLPLogExporter', () => {
});

it('should have keep alive and keepAliveMsecs option set', done => {

sinon.stub(http, 'request').callsFake((options: any, cb: any) => {
assert.strictEqual(options.agent.keepAlive, true);
assert.strictEqual(options.agent.options.keepAliveMsecs, 2000);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@ import * as Config from '../../src/platform/config';
import { OTLPLogExporter } from '../../src/platform/node';
import { OTLPExporterNodeConfigBase } from '@opentelemetry/otlp-exporter-base';
import { ReadableLogRecord } from '@opentelemetry/sdk-logs';
import { MockedResponse, ensureExportLogsServiceRequestIsSet, ensureExportedLogRecordIsCorrect, mockedReadableLogRecord } from '../logHelper';
import {
MockedResponse,
ensureExportLogsServiceRequestIsSet,
ensureExportedLogRecordIsCorrect,
mockedReadableLogRecord,
} from '../logHelper';
import { PassThrough, Stream } from 'stream';
import { IExportLogsServiceRequest } from '@opentelemetry/otlp-transformer';
import { ExportResultCode } from '@opentelemetry/core';
Expand Down Expand Up @@ -115,7 +120,6 @@ describe('OTLPLogExporter', () => {
});

it('should set custom headers', done => {

sinon.stub(http, 'request').callsFake((options: any, cb: any) => {
assert.strictEqual(options.headers['foo'], 'bar');

Expand All @@ -130,7 +134,6 @@ describe('OTLPLogExporter', () => {
});

it('should have keep alive and keepAliveMsecs option set', done => {

sinon.stub(http, 'request').callsFake((options: any, cb: any) => {
assert.strictEqual(options.agent.keepAlive, true);
assert.strictEqual(options.agent.options.keepAliveMsecs, 2000);
Expand Down

0 comments on commit 6eb6be4

Please sign in to comment.