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

[PROF-6555] Support disabling endpoint names collection in new profiler #2698

Merged
merged 2 commits into from
Mar 20, 2023

Conversation

ivoanjo
Copy link
Member

@ivoanjo ivoanjo commented Mar 17, 2023

What does this PR do?:

This PR updates the new CPU Profiling 2.0 profiler to honor the existing profiling.advanced.endpoint.collection.enabled setting.

This setting defaults to enabled. When disabled, the profiler will omit endpoint names in the collected data.

Motivation:

Not supporting this was an oversight; the new profiler (still in beta) should honor this setting.

Additional Notes:

I'm opening this PR on top of #2697 to avoid conflicts, but both PRs are conceptually independent.

How to test the change?:

Change includes test coverage.

**What does this PR do?**:

This PR updates the new CPU Profiling 2.0 profiler to honor the
existing `profiling.advanced.endpoint.collection.enabled` setting.

This setting defaults to enabled. When disabled, the profiler will omit
endpoint names in the collected data.

**Motivation**:

Not supporting this was an oversight; the new profiler (still in beta)
should honor this setting.

**Additional Notes**:

N/A

**How to test the change?**:

Change includes test coverage.
@ivoanjo ivoanjo requested a review from a team March 17, 2023 14:08
@github-actions github-actions bot added the profiling Involves Datadog profiling label Mar 17, 2023
@@ -911,6 +932,8 @@ static void trace_identifiers_for(struct thread_context_collector_state *state,

trace_identifiers_result->valid = true;

if (!state->endpoint_collection_enabled) return;
Copy link
Member Author

Choose a reason for hiding this comment

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

All this setup and passing the setting around just to do this ;)

Base automatically changed from ivoanjo/prof-6555-decouple-profiling-initialization to master March 17, 2023 19:15
Unfortunately not caught by the spec either :(
@ivoanjo ivoanjo merged commit e96d8fe into master Mar 20, 2023
@ivoanjo ivoanjo deleted the prof-6555-endpoint-collection-disabled-new-profiler branch March 20, 2023 09:40
@github-actions github-actions bot added this to the 1.11.0 milestone Mar 20, 2023
@lloeki lloeki modified the milestones: 1.11.0, 1.11.0.beta1 Apr 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
profiling Involves Datadog profiling
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants