Skip to content

[Beta] Merge Common into Core#2693

Merged
MSNev merged 5 commits intobetafrom
MSNev/MergeCommon
Feb 3, 2026
Merged

[Beta] Merge Common into Core#2693
MSNev merged 5 commits intobetafrom
MSNev/MergeCommon

Conversation

@MSNev
Copy link
Collaborator

@MSNev MSNev commented Jan 28, 2026

As part of preparing for merging changes between OTel-SDK branch and Beta merging Common into Core.

Next Steps: restructuring the folder structure for Core to align with the OTel-SDK otel-core-js project

@MSNev MSNev requested a review from a team as a code owner January 28, 2026 18:02
Copilot AI review requested due to automatic review settings January 28, 2026 18:02
@MSNev MSNev added beta otel compat OpenTelemetry Compatibility support labels Jan 28, 2026
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 pull request merges the @microsoft/applicationinsights-common package into @microsoft/applicationinsights-core-js as part of preparing for alignment with the OTel-SDK branch. This consolidation simplifies the dependency tree and improves tree-shaking capabilities.

Changes:

  • Merged all Common package source code into Core under src/Common/ directory
  • Created a compatibility layer in the Common package that re-exports from Core for backward compatibility
  • Updated all internal imports in Common source files to reference Core's JavaScriptSDK modules
  • Updated test files and moved Common tests into Core's test suite
  • Added comprehensive documentation including migration guide and updated READMEs

Reviewed changes

Copilot reviewed 54 out of 114 changed files in this pull request and generated no comments.

Show a summary per file
File Description
shared/AppInsightsCore/tsconfig.json Added Common source directories to TypeScript compilation
shared/AppInsightsCore/src/applicationinsights-core-js.ts Added comprehensive exports for all Common package functionality
shared/AppInsightsCore/src/OpenTelemetry/**/*.ts Minor whitespace/formatting fixes (removed double semicolons, trailing spaces)
shared/AppInsightsCore/src/Common/**/*.ts All Common source files moved to Core with updated import paths
shared/AppInsightsCore/Tests/Unit/src/**/*.ts Updated test imports and added Common tests to Core test suite
shared/AppInsightsCore/README.md Added deprecation notice and migration information
shared/AppInsightsCommon/src/applicationinsights-common.ts Replaced with compatibility layer that re-exports from Core
shared/AppInsightsCommon/package.json Disabled test scripts (tests now run in Core)
shared/AppInsightsCommon/Tests/** Removed test files and configurations
shared/AppInsightsCommon/README.md Added deprecation warning with migration instructions
docs/upgrade/MergeCommonToCore.md Comprehensive migration guide for users
RELEASES.md Documented the merge with timeline for deprecation
gruntfile.js Disabled Common package test tasks
.aiAutoMinify.json Moved const enums from Common to Core configuration
channels/applicationinsights-channel-js/** Updated imports to reference Core instead of Common
AISKU/Tests/**/*.ts Updated imports to reference Core instead of Common

… into Core

- Update imports in Common telemetry files to use relative paths instead of external package references
- Add comprehensive exports from applicationinsights-core-js.ts for all Common module functionality including telemetry classes, interfaces, enums, helper functions, contracts, and plugin identifiers
@MSNev MSNev force-pushed the MSNev/MergeCommon branch from f5ac5ff to e60c0ce Compare January 28, 2026 18:12
@MSNev MSNev marked this pull request as draft January 29, 2026 17:49
@MSNev MSNev force-pushed the MSNev/MergeCommon branch from a1d181e to 26b8d7b Compare January 29, 2026 19:49
@MSNev MSNev marked this pull request as ready for review January 31, 2026 02:02
@MSNev MSNev enabled auto-merge (squash) January 31, 2026 02:02
@MSNev MSNev disabled auto-merge January 31, 2026 03:00
@MSNev MSNev force-pushed the MSNev/MergeCommon branch 3 times, most recently from 54681c6 to ba5e3c5 Compare January 31, 2026 03:40
@MSNev MSNev requested a review from Copilot January 31, 2026 03:55
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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Phase 3: Add/Adjust tree-shaking hints and reduce duplication from the merge
Phase 4: Stop using applicationinsights-common (missed by Co-Pilot)
@MSNev MSNev force-pushed the MSNev/MergeCommon branch from ba5e3c5 to 7054b1b Compare February 2, 2026 17:48
@MSNev MSNev requested a review from Copilot February 2, 2026 17:48
@@ -0,0 +1,1438 @@
# Move Layout Plan: AppInsightsCore → otel-core Structure

Copy link
Member

Choose a reason for hiding this comment

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

this can be removed right?

@@ -0,0 +1,2160 @@
# AppInsightsCommon → AppInsightsCore Merge Plan
Copy link
Member

Choose a reason for hiding this comment

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

this as well

Copy link
Member

@rads-1996 rads-1996 left a comment

Choose a reason for hiding this comment

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

LGTM

@MSNev MSNev enabled auto-merge (rebase) February 3, 2026 00:53
@MSNev MSNev merged commit d09dbe6 into beta Feb 3, 2026
11 of 15 checks passed
@MSNev MSNev deleted the MSNev/MergeCommon branch February 3, 2026 01:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

beta otel compat OpenTelemetry Compatibility support

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants