Skip to content

Commit

Permalink
Add more logging to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aabmass committed Oct 5, 2023
1 parent 8f9fad7 commit eae7a2b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions e2e-test-server/src/scenarios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,11 @@ async function complexTrace(request: Request): Promise<Response> {
}

async function detectResource(request: Request): Promise<Response> {
console.log('Detecting resource');
const resource = new GcpDetectorSync().detect();
await resource.waitForAsyncAttributes?.();
console.log('========> Got resource attributes:!!!', resource.attributes);

return await withTracer(
async (tracer: Tracer): Promise<Response> => {
const span = tracer.startSpan('resourceDetectionTrace', {
Expand Down

0 comments on commit eae7a2b

Please sign in to comment.