Skip to content

Conversation

FabianMeiswinkel
Copy link
Member

Description

Exporting the Spark Log4j logs to AzureMonitor along with metrics and traces causes issues due tot Log4j conflicts in Fabirc/Snypase and ADF - to mitigate those we have stopped exporting Log4j logs to AzureMonitor for now - we might reintorduce this later when identifying a safe way to avoid the Log4j conflicts.

All SDK Contribution checklist:

  • The pull request does not introduce [breaking changes]
  • CHANGELOG is updated for new features, bug fixes or other significant changes.
  • I have read the contribution guidelines.

General Guidelines and Best Practices

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

@Copilot Copilot AI review requested due to automatic review settings September 5, 2025 18:34
@github-actions github-actions bot added the Cosmos label Sep 5, 2025
@FabianMeiswinkel
Copy link
Member Author

/azp run java - cosmos - spark

Copy link
Contributor

@Copilot 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 removes Log4j dependencies from the Azure Cosmos Spark connector to resolve conflicts in Fabric/Synapse and ADF environments. The change eliminates the export of Spark Log4j logs to Azure Monitor while maintaining metrics and traces functionality.

  • Removes all Log4j-related Maven dependencies and imports
  • Eliminates Azure Monitor log configuration parameters and associated code
  • Updates test cases to remove log-related assertions

Reviewed Changes

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

Show a summary per file
File Description
pom.xml Removes Log4j Maven dependencies and OpenTelemetry log-related dependencies
AzureMonitorConfig.scala Removes log-related parameters from the AzureMonitorConfig case class
CosmosConfig.scala Removes log configuration entries and related parsing logic
CosmosClientCache.scala Removes Log4j imports and log configuration methods
CosmosClientConfigurationSpec.scala Removes Log4j import and log-related test assertions
configuration-reference.md Removes documentation for log-related configuration parameters

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@FabianMeiswinkel
Copy link
Member Author

/azp run java - cosmos - spark

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@FabianMeiswinkel
Copy link
Member Author

/azp run java - cosmos - spark

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@FabianMeiswinkel
Copy link
Member Author

/azp run java - cosmos - spark

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@FabianMeiswinkel
Copy link
Member Author

/azp run java - cosmos - spark

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@xinlian12 xinlian12 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks

@FabianMeiswinkel FabianMeiswinkel merged commit ee6d26e into Azure:main Sep 5, 2025
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants