Skip to content
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

Update Elasticsearch port_path_or_id value #2182

Merged
merged 3 commits into from
Sep 11, 2023
Merged

Conversation

kaylareopelle
Copy link
Contributor

Previously, the port_path_or_id value for Elasticsearch segments was set to the path given to the request_with_tracing method. This caused a metrics grouping issue for a customer because a new instance metric ("Datastore/instance/Elasticsearch//") was created for every Elasticsearch document ID.

The source of the host value is a hash that also contains a port key. This commit updates the value of port_path_or_id to use the port from the nr_hosts hash.

Previously, the `port_path_or_id` value for Elasticsearch segments
was set to the path given to the `request_with_tracing` method. This
caused a metrics grouping issue for a customer because a new
instance metric ("Datastore/instance/Elasticsearch/<host>/<port>")
was created for every Elasticsearch document ID.

The source of the host value is a hash that also contains a port key. This
commit updates the value of `port_path_or_id` to use the port from the
`nr_hosts` hash.
hannahramadan
hannahramadan previously approved these changes Sep 1, 2023
fallwith
fallwith previously approved these changes Sep 2, 2023

- **Feature: Add Stripe instrumentation**

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We normally have a newline between the heading and the description.

@github-actions
Copy link
Contributor

SimpleCov Report

Coverage Threshold
Line 94.32% 94%
Branch 85.86% 85%

@kaylareopelle kaylareopelle merged commit 0cfb5a4 into dev Sep 11, 2023
25 checks passed
@kaylareopelle kaylareopelle deleted the elasticsearch-port branch September 11, 2023 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants