Skip to content

Commit

Permalink
test(telemetry): add prefix where missing
Browse files Browse the repository at this point in the history
  • Loading branch information
manast committed Dec 10, 2024
1 parent 8dc79f9 commit c9a0322
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/test_telemetry_interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ describe('Telemetry', () => {
connection,
telemetry: telemetryClient,
name: 'testWorker',
prefix,
});

await worker.waitUntilReady();
Expand Down Expand Up @@ -330,6 +331,7 @@ describe('Telemetry', () => {
const worker = new Worker(queueName, async () => 'some result', {
connection,
telemetry: telemetryClient,
prefix,
});
await worker.waitUntilReady();

Expand All @@ -351,17 +353,20 @@ describe('Telemetry', () => {
const flowProducer = new FlowProducer({
connection,
telemetry: telemetryClient,
prefix,
});

const traceSpy = sinon.spy(telemetryClient.tracer, 'startSpan');
const testFlow = {
name: 'parentJob',
queueName,
prefix,
data: { foo: 'bar' },
children: [
{
name: 'childJob',
queueName,
prefix,
data: { baz: 'qux' },
},
],
Expand All @@ -387,6 +392,7 @@ describe('Telemetry', () => {
const flowProducer = new FlowProducer({
connection,
telemetry: telemetryClient,
prefix,
});

const traceSpy = sinon.spy(telemetryClient.tracer, 'startSpan');
Expand Down Expand Up @@ -422,6 +428,7 @@ describe('Telemetry', () => {
const flowProducer = new FlowProducer({
connection,
telemetry: telemetryClient,
prefix,
});

const traceSpy = sinon.spy(telemetryClient.tracer, 'startSpan');
Expand Down Expand Up @@ -474,6 +481,7 @@ describe('Telemetry', () => {
const flowProducer = new FlowProducer({
connection,
telemetry: telemetryClient,
prefix,
});

const traceSpy = sinon.spy(telemetryClient.tracer, 'startSpan');
Expand Down Expand Up @@ -532,6 +540,7 @@ describe('Telemetry', () => {
worker = new Worker(queueName, async () => resolve(), {
connection,
telemetry: telemetryClient,
prefix,
});
});

Expand All @@ -553,6 +562,7 @@ describe('Telemetry', () => {
worker = new Worker(queueName, async () => resolve(), {
connection,
telemetry: telemetryClient,
prefix,
});
});

Expand All @@ -578,6 +588,7 @@ describe('Telemetry', () => {
worker = new Worker(queueName, async () => resolve(), {
connection,
telemetry: telemetryClient,
prefix,
});
});

Expand Down Expand Up @@ -606,12 +617,14 @@ describe('Telemetry', () => {
worker = new Worker(queueName, async () => resolve(), {
connection,
telemetry: telemetryClient,
prefix,
});
});

const flowProducer = new FlowProducer({
connection,
telemetry: telemetryClient,
prefix,
});

const testFlow = {
Expand Down

0 comments on commit c9a0322

Please sign in to comment.