-
Notifications
You must be signed in to change notification settings - Fork 524
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
sampling: add missing license check #4328
Conversation
jenkins run the tests please |
Codecov Report
@@ Coverage Diff @@
## master #4328 +/- ##
=======================================
Coverage 79.71% 79.71%
=======================================
Files 162 162
Lines 9137 9137
=======================================
Hits 7284 7284
Misses 1853 1853 |
jenkins run the tests please |
1 similar comment
jenkins run the tests please |
The new test is a bit unreliable, I'm looking into it. |
10 seconds wasn't enough, due to connection retry backoffs in apm-server. Increase to 1 minute.
The latest test failure is unrelated, and will be addressed by #4353 |
* Require platinum/trial license for tail-sampling
Tested with BC 1 with the suggested steps.
Two observations:
@axw - I assume that's ok but haven't realized this earlier. |
@simitt It's just a backstop, so I think this somewhat awkward behaviour is OK. |
Motivation/summary
Tail-based sampling will be a licensed feature, add code to enforce it.
We also introduce support for running ephemeral Elasticsearch containers using testcontainers-go. This is used for running a Basic-licensed Elasticsearch without modifying the docker-compose services, which is destructive and may interfere with other tests or general docker-compose usage.
Checklist
- [ ] I have updated CHANGELOG.asciidocI have considered changes for:
- [ ] documentation- [ ] metrics and monitoring (create issue for Kibana team to add metrics to visualizations, e.g. Kibana#44001)- [ ] telemetry- [ ] Elasticsearch Service (https://cloud.elastic.co)- [ ] Elastic Cloud Enterprise (https://www.elastic.co/products/ece)- [ ] Elastic Cloud on Kubernetes (https://www.elastic.co/elastic-cloud-kubernetes)How to test these changes
Related issues
#4185