Skip to content

Trace agent doesn't create new trace id for each request #287

@vtajzich

Description

@vtajzich

Issue

Log entries are not assigned to specific requests when application is under load.
Value of trace field is same for all log lines but it should be unique.

Environment

NodeJS, Express, Typescript

example project: https://github.com/vtajzich/nodejs-gcp-trace-agent-test

Steps to reproduce

  1. Set environment variables LOGGING_PROJECT_ID and SA_LOGGING_FILE (absolute path to json with private key to access logging and tracing)
  2. Run the application
  3. Run multiple concurrent requests (using jMeter or similar tool)
  4. Go to trace list and observe requests

Current

  • All log entries are assigned to the first request
  • Other requests have no logs at all
  • trace id (field "trace") is same for all log lines

Expected

  • Each request has assigned log lines which belongs to it
  • trace id is unique for each request

Metadata

Metadata

Assignees

Labels

🚨This issue needs some love.api: loggingIssues related to the googleapis/nodejs-logging-winston API.priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions