Skip to content

Commit

Permalink
REMOVE ME
Browse files Browse the repository at this point in the history
  • Loading branch information
restrry committed Nov 18, 2021
1 parent b337ad0 commit 8567e97
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ export class FixturePlugin implements Plugin<void, void, FixtureSetupDeps, Fixtu
return res.ok({
body: {
traceId: apmAgent.currentTraceIds['trace.id'],
ids: apmAgent.currentTraceIds,
},
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,15 @@ export default function ({ getService }: FtrProviderContext) {
describe('Log Correlation', () => {
it('Emits "trace.id" into the logs', async () => {
const response1 = await supertest.get('/emit_log_with_trace_id');
expect(response1.status).to.be(200);
// eslint-disable-next-line no-console
console.log('>>> response1.body', response1.body);
expect(response1.body.traceId).to.be.a('string');

const response2 = await supertest.get('/emit_log_with_trace_id');
expect(response2.status).to.be(200);
// eslint-disable-next-line no-console
console.log('>>> response2.body', response1.body);
expect(response1.body.traceId).to.be.a('string');

expect(response2.body.traceId).not.to.be(response1.body.traceId);
Expand Down

0 comments on commit 8567e97

Please sign in to comment.