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

RUMM-1377 Add E2E tests for Tracing APIs #616

Merged
merged 5 commits into from
Oct 5, 2021

Conversation

ncreated
Copy link
Member

What and why?

📦 This PR adds E2E tests and their monitor definitions for Tracing product.

How?

Added tests with their monitors (terraform plan works fine). I haven't yet updated monitors in Mobile Integration org - that needs to be done after merge otherwise they will have no data.

I also added two changes to E2E tests linter:

  • it now checks if $feature variable is one of allowed values (core, logs, trace, rum, crash),
  • it no longer checks if $monitor_query contains the test method name (the way we set up some monitors was not compatible with this rule).

Review checklist

  • Feature or bugfix MUST have appropriate tests (unit, integration)
  • Make sure each commit and the PR mention the Issue number or JIRA reference

@ncreated ncreated self-assigned this Sep 29, 2021
@ncreated ncreated requested a review from a team as a code owner September 29, 2021 11:50
Comment on lines +70 to +77
/// - data monitor: (it uses `ios_trace_span_set_baggage_item` metric defined in "APM > Generate Metrics > Custom Span Metrics")
/// ```apm
/// $feature = trace
/// $monitor_id = trace_span_set_baggage_item_data
/// $monitor_name = "[RUM] [iOS] Nightly - trace_span_set_baggage_item: number of hits is below expected value"
/// $monitor_query = "sum(last_1d):avg:ios_trace_span_set_baggage_item.hits_with_proper_payload{*}.as_count() < 1"
/// $monitor_threshold = 1
/// ```
Copy link
Member Author

Choose a reason for hiding this comment

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

This kind of monitors require manual management of custom span metric generated at ingestion
Screenshot 2021-09-29 at 13 51 53

This can't be automated and this is the only way possible if we want to make monitor assertions on span tags.

@ncreated ncreated merged commit 82dd2ef into master Oct 5, 2021
@ncreated ncreated deleted the ncreated/RUMM-1377-add-E2E-tests-for-tracing-APIs branch October 5, 2021 07:34
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.

2 participants