Skip to content

Commit

Permalink
Code nits
Browse files Browse the repository at this point in the history
  • Loading branch information
sorenlouv committed May 2, 2024
1 parent 483bcbc commit fef3a8c
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,13 @@ export default function ApiTest({ getService }: ObsFtrProviderContext) {

describe('when traces and logs are ingested and logs are not annotated with service.name', async () => {
before(async () => {
await ingestTraces({ 'service.name': 'Backend', 'container.id': 'my-container-a' });
await ingestLogs({
'container.id': 'my-container-a',
'kubernetes.pod.name': 'pod-a',
});
await Promise.all([
ingestTraces({ 'service.name': 'Backend', 'container.id': 'my-container-a' }),
ingestLogs({
'container.id': 'my-container-a',
'kubernetes.pod.name': 'pod-a',
}),
]);
});

after(async () => {
Expand Down Expand Up @@ -415,7 +417,7 @@ export default function ApiTest({ getService }: ObsFtrProviderContext) {
});
});

async function ingestTraces(eventMetadata: {
function ingestTraces(eventMetadata: {
'service.name': string;
'container.id'?: string;
'host.name'?: string;
Expand Down

0 comments on commit fef3a8c

Please sign in to comment.