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

feat(spans): Ignore more spans for the DB module #2522

Merged
merged 6 commits into from
Sep 20, 2023

Conversation

phacops
Copy link
Contributor

@phacops phacops commented Sep 20, 2023

We've found more problematic spans we'd like to ignore as our grouping gets better.

https://www.notion.so/sentry/Problematic-Projects-During-Database-View-V0-Rollout-463d6f3f1f3d47baa127c97cf0e56716

@phacops phacops requested a review from a team September 20, 2023 16:26
relay-server/src/actors/processor.rs Outdated Show resolved Hide resolved
relay-server/src/actors/processor.rs Outdated Show resolved Hide resolved
@phacops phacops requested a review from jjbayer September 20, 2023 16:59
@@ -2283,6 +2284,8 @@ impl EnvelopeProcessorService {
.project_state
.has_feature(Feature::SpanMetricsExtractionAllModules);

let op_denylist = HashSet::from(["clickhouse", "mongodb", "redis", "activerecord"]);
Copy link
Member

Choose a reason for hiding this comment

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

This constructs a data structure for static data in every run. Instead of this, you could make this a function that uses match to check for the four allowed values.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I ended up refactoring the conditions so it's just code. Let me know if that's better.

@phacops phacops merged commit 1965fdb into master Sep 20, 2023
@phacops phacops deleted the pierre/spans-ignore-more-spans branch September 20, 2023 21:39
jan-auer added a commit that referenced this pull request Sep 22, 2023
* master:
  fix(spans): Handle ActiveRecord official and custom spelling (#2525)
  feat(spans): Update db table extraction to add comma separators (#2521)
  fix(profiling): Remove profile ID from transaction context if no profile is found in the envelope (#2523)
  feat(spans): Ignore more spans for the DB module (#2522)
  release: 23.9.1
  release: 23.9.0
  fix(spans): Add a description to the segment as well (#2512)
  fix(spans): Filter DB spans for MongDB queries (#2520)
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