Skip to content

Correlation ID to Service Bus and logs#334

Merged
tompaana merged 8 commits into
developfrom
tompaana/271-operation-id-for-logs
Jun 23, 2021
Merged

Correlation ID to Service Bus and logs#334
tompaana merged 8 commits into
developfrom
tompaana/271-operation-id-for-logs

Conversation

@tompaana
Copy link
Copy Markdown
Member

Closes #271

What is being addressed

Adds correlation ID for workspace deployment to Service Bus messages and manual injects that in logs.

How is this addressed

  • Adds correlation ID based on the generated resource ID to the Service Bus messages
  • Logs the correlation ID in selected places manually
  • Refactors resource request sending feature to match the deployment status updater
  • Updates Management API unit tests

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 22, 2021

Unit Test Results

  1 files    1 suites   2s ⏱️
54 tests 54 ✔️ 0 💤 0 ❌

Results for commit ca98926.

♻️ This comment has been updated with latest results.

@tompaana tompaana self-assigned this Jun 22, 2021
@tompaana tompaana linked an issue Jun 22, 2021 that may be closed by this pull request
4 tasks
Copy link
Copy Markdown
Member

@Lybecker Lybecker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good for now. Right now the developer has to remember to include the correlation id to each log method.

In the future I would be better with tighter integration with OpenCensus

  • Accepting W3C Trace-Context from client HTTP requests
  • creating span for each component (API, Resource Processer ...)
  • store the Span Context in contextvars
  • Make the application map work in App Insights
  • Seamless propagate SpanContext through Azure Service Bus

@tompaana tompaana merged commit 55a58cc into develop Jun 23, 2021
@tompaana tompaana deleted the tompaana/271-operation-id-for-logs branch June 23, 2021 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Operation ID for logging

3 participants