Skip to content

Conversation

@jtduffy
Copy link
Contributor

@jtduffy jtduffy commented Dec 5, 2025

Overview

Resolves #2626

Introduces a new config option that will direct the agent to send logs to their corresponding entity when enabled_auto_app_naming is true.

common: &default_settings
  application_logging:
    forwarding:

      # When true and "enable_auto_app_naming" is also true, log events will be sent
      # to their corresponding named entity rather than the roll up entity. The default
      # is false.
      auto_app_naming_association: true

The default is false to keep current agent behavior.

if enabled_auto_app_naming is false and auto_app_naming_association is true, the agent will force the auto_app_naming_association config to false.

PR for an updated AIT will follow after this is merged.

@codecov-commenter
Copy link

codecov-commenter commented Dec 5, 2025

Codecov Report

❌ Patch coverage is 73.33333% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 70.28%. Comparing base (f770920) to head (1e403e5).

Files with missing lines Patch % Lines
...ent/config/ApplicationLoggingForwardingConfig.java 60.00% 1 Missing and 1 partial ⚠️
...ic/agent/service/logging/LogSenderServiceImpl.java 75.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #2627      +/-   ##
============================================
- Coverage     70.89%   70.28%   -0.61%     
+ Complexity    10839    10121     -718     
============================================
  Files           867      855      -12     
  Lines         43643    41121    -2522     
  Branches       6830     6231     -599     
============================================
- Hits          30940    28902    -2038     
+ Misses         9784     9402     -382     
+ Partials       2919     2817     -102     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

Logs In Context - Send logs to correct entity with auto-naming enabled

3 participants