Skip to content

Add entites for Agent - GW setup #6311

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add entites for Agent - GW setup #6311

wants to merge 1 commit into from

Conversation

dloucasfx
Copy link
Contributor

Description:

Link to Splunk idea: <Link to Splunk idea, see https://ideas.splunk.com>

Testing:

Documentation:

@dloucasfx dloucasfx requested review from a team as code owners June 13, 2025 00:42
Copy link

codecov bot commented Jun 13, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 44.81%. Comparing base (ae23889) to head (09fec60).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6311      +/-   ##
==========================================
+ Coverage   36.83%   44.81%   +7.97%     
==========================================
  Files         381      390       +9     
  Lines       26732    26995     +263     
==========================================
+ Hits         9848    12099    +2251     
+ Misses      15908    14023    -1885     
+ Partials      976      873     -103     

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@dloucasfx dloucasfx requested a review from a team as a code owner June 13, 2025 03:41
@dloucasfx dloucasfx force-pushed the entitiesGW branch 2 times, most recently from c3e6f71 to 27e55e5 Compare June 16, 2025 15:11
Copy link
Contributor

@crobert-1 crobert-1 left a comment

Choose a reason for hiding this comment

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

I don't have much context for this change, please let me know if I'm misunderstanding anything here.

Have you been able to test the routing connector functionality added here?

Comment on lines +162 to +163
# Use instead when sending to gateway
# endpoint: http://${SPLUNK_GATEWAY_URL}:4318
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
# Use instead when sending to gateway
# endpoint: http://${SPLUNK_GATEWAY_URL}:4318
# Use instead when sending to gateway
# endpoint: ${SPLUNK_GATEWAY_URL}:4318

Is http:// required here? Same question for other usages. I'm wondering why the value provided isn't consistent with usage of other environment variables.

@@ -142,6 +142,22 @@ exporters:
token: "${SPLUNK_ACCESS_TOKEN}"
endpoint: "${SPLUNK_INGEST_URL}/v1/log"
log_data_enabled: false
# To send entities (applicable only if discovery mode is enabled)
otlphttp/entities:
Copy link
Contributor

Choose a reason for hiding this comment

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

If this is only relevant when discovery is enabled, is there some way to tie this to discovery mode? (The pipeline is only enabled when discovery mode is enabled?)

default_pipelines: [logs]
table:
- context: log
condition: instrumentation_scope.attributes["otel.entity.event_as_log"] == true
Copy link
Contributor

Choose a reason for hiding this comment

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

Where does otel.entity.event_as_log come from? Is there some way we could use a central variable or constant here? Not required as it might be a bit messy, just concerned about the possibility of this changing in the future.

@crobert-1
Copy link
Contributor

I haven't seen that linux-package-test/docker-otelcol-verify failure before:

exec /usr/lib/splunk-otel-collector/agent-bundle/bin/python: no such file or directory

Please check to make sure it's not caused by this PR, we can address later if it's unrelated.

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.

3 participants