Skip to content

Conversation

@JacksonWeber
Copy link
Contributor

#1422

Adds support for disabling requests and dependencies across all instrumentations rather than just HTTP.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds support for full filtering of dependency and request telemetry by enabling new configuration options across all instrumentations. Key changes include:

  • Adding new configuration options (enableAutoCollectDependencies and enableAutoCollectRequests) in types.ts and applying them in the shim.
  • Updating unit tests in shim, main, and agent to validate the new behavior.
  • Introducing a new RequestSpanProcessor in main.ts to process spans based on the new settings.

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
test/unitTests/shim/applicationInsights.tests.ts Adds unit test for verifying dependency/request collection setup
test/unitTests/main.tests.ts Updates expected spanProcessors count and exporter reference
test/unitTests/agent/aksLoader.tests.ts Updates spanProcessors index for trace exporter assertion
src/types.ts Introduces new boolean options for request and dependency collection
src/traces/requestProcessor.ts Implements RequestSpanProcessor using new telemetry options
src/shim/shim-config.ts Configures the new auto-collection options in the shim configuration
src/main.ts Registers the RequestSpanProcessor for handling span filtering

@JacksonWeber JacksonWeber requested a review from MSNev May 19, 2025 18:39
@JacksonWeber JacksonWeber merged commit bc60ee9 into microsoft:main May 19, 2025
4 checks passed
@JacksonWeber JacksonWeber mentioned this pull request Jul 25, 2025
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.

2 participants