-
Notifications
You must be signed in to change notification settings - Fork 143
Update Correlation Context Documentation #1430
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Please address the documentation question at the bottom of the thread on this issue. |
…end correlation Co-authored-by: JacksonWeber <[email protected]>
Remove sessionId from the readme and do not change any code files, JUST documentation. |
…examples Co-authored-by: JacksonWeber <[email protected]>
I've enhanced the "Frontend to Backend Correlation" documentation in the README.md with detailed examples explaining how correlation works between frontend and backend applications. The documentation now includes:
These changes are in commit cbb5892. |
Co-authored-by: JacksonWeber <[email protected]>
I've removed all references to Warning Firewall rules blocked me from connecting to one or more addressesI tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Co-authored-by: JacksonWeber <[email protected]>
Co-authored-by: JacksonWeber <[email protected]>
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addressesI tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Summary
This PR adds support for correlating frontend and backend applications by adding support for
sessionId
andai-session-id
headers in the correlation context manager. This enables better end-to-end tracing in Application Insights between frontend and backend components.Changes
correlationContextManager.ts
to detect and processsessionId
andai-session-id
headers from incoming requestsgenerateContextObject
method to store the session ID in the correlation context's custom propertiesUsage
When using Application Insights in both frontend (with
@microsoft/applicationinsights-web
) and backend (with this package), the correlation will now work automatically if the frontend includes any of these headers:traceparent
: W3C trace context header (primary header for distributed tracing)tracestate
: W3C trace state header (optional)request-id
: Legacy Application Insights header (fallback)sessionId
orai-session-id
: Session ID for correlation (new support added)The backend will automatically pick up these headers and establish the proper correlation context, allowing you to see related telemetry in the Azure Portal.
Fixes #1333.
Warning
Firewall rules blocked me from connecting to one or more addresses
I tried to connect to the following addresses, but was blocked by firewall rules:
global.livediagnostics.monitor.azure.com
node /home/REDACTED/work/ApplicationInsights-node.js/ApplicationInsights-node.js/node_modules/.bin/mocha ./out/test/unitTests --recursive
(dns block)/home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js
(dns block)westus-0.in.applicationinsights.azure.com
node /home/REDACTED/work/ApplicationInsights-node.js/ApplicationInsights-node.js/node_modules/.bin/mocha ./out/test/unitTests --recursive
(dns block)If you need me to access, download, or install something from one of these locations, you can either:
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.