-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Added integration tests support for Telemetry span validation #8444
Merged
reta
merged 27 commits into
opensearch-project:main
from
Shephalimittal:telemetry-IT-changes
Aug 7, 2023
Merged
Added integration tests support for Telemetry span validation #8444
reta
merged 27 commits into
opensearch-project:main
from
Shephalimittal:telemetry-IT-changes
Aug 7, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Gradle Check (Jenkins) Run Completed with:
|
suranjay
reviewed
Jul 6, 2023
...internalClusterTest/java/org/opensearch/telemetry/tracing/MockOpenTelemetrySpanExporter.java
Outdated
Show resolved
Hide resolved
suranjay
reviewed
Jul 6, 2023
...internalClusterTest/java/org/opensearch/telemetry/tracing/MockOpenTelemetrySpanExporter.java
Outdated
Show resolved
Hide resolved
suranjay
reviewed
Jul 6, 2023
...rc/internalClusterTest/java/org/opensearch/telemetry/tracing/RTCTracingDisabledSanityIT.java
Outdated
Show resolved
Hide resolved
suranjay
reviewed
Jul 6, 2023
...rc/internalClusterTest/java/org/opensearch/telemetry/tracing/RTCTracingDisabledSanityIT.java
Outdated
Show resolved
Hide resolved
suranjay
reviewed
Jul 6, 2023
suranjay
reviewed
Jul 6, 2023
test/telemetry/src/main/java/org/opensearch/test/telemetry/tracing/MockTracingTelemetry.java
Outdated
Show resolved
Hide resolved
test/telemetry/src/main/java/org/opensearch/test/telemetry/tracing/SpanDataValidator.java
Outdated
Show resolved
Hide resolved
test/telemetry/src/main/java/org/opensearch/test/telemetry/tracing/SpanDataValidator.java
Outdated
Show resolved
Hide resolved
.../telemetry/src/main/java/org/opensearch/test/telemetry/tracing/StrictCheckSpanProcessor.java
Outdated
Show resolved
Hide resolved
.../telemetry/src/main/java/org/opensearch/test/telemetry/tracing/StrictCheckSpanProcessor.java
Show resolved
Hide resolved
test/telemetry/src/main/java/org/opensearch/test/telemetry/tracing/TelemetryValidators.java
Outdated
Show resolved
Hide resolved
test/telemetry/src/main/java/org/opensearch/test/telemetry/tracing/TelemetryValidators.java
Outdated
Show resolved
Hide resolved
...src/main/java/org/opensearch/test/telemetry/tracing/validators/AllSpansAreEndedProperly.java
Outdated
Show resolved
Hide resolved
...src/internalClusterTest/java/org/opensearch/telemetry/tracing/RTCTracingEnabledSanityIT.java
Outdated
Show resolved
Hide resolved
...src/internalClusterTest/java/org/opensearch/telemetry/tracing/RTCTracingEnabledSanityIT.java
Outdated
Show resolved
Hide resolved
Shephalimittal
force-pushed
the
telemetry-IT-changes
branch
from
July 7, 2023 13:04
c4c77c0
to
4084b27
Compare
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
Shephalimittal
requested review from
reta,
anasalkouz,
andrross,
Bukhtawar,
CEHENKLE,
dblock,
gbbafna,
setiah,
kartg,
kotwanikunal,
mch2,
nknize,
owaiskazi19,
Rishikesh1159,
ryanbogan,
saratvemulapalli and
shwetathareja
as code owners
July 7, 2023 14:04
suranjay
reviewed
Aug 1, 2023
test/telemetry/src/main/java/org/opensearch/test/telemetry/tracing/TelemetryValidators.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Shephali Mittal <shephalm@amazon.com>
Compatibility status:
|
Gaganjuneja
reviewed
Aug 4, 2023
...nternalClusterTest/java/org/opensearch/telemetry/tracing/TelemetryTracerEnabledSanityIT.java
Outdated
Show resolved
Hide resolved
Gaganjuneja
reviewed
Aug 4, 2023
...metry/src/main/java/org/opensearch/test/telemetry/tracing/validators/AllSpansAreInOrder.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Shephali Mittal <shephalm@amazon.com>
Gradle Check (Jenkins) Run Completed with:
|
Compatibility status:
|
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: Shephali Mittal <shephalm@amazon.com>
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: Shephali Mittal <shephalm@amazon.com>
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
Gaganjuneja
approved these changes
Aug 6, 2023
Signed-off-by: Shephali Mittal <shephalm@amazon.com>
Compatibility status:
|
Gradle Check (Jenkins) Run Completed with:
|
The backport to
To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/backport-2.x 2.x
# Navigate to the new working tree
pushd ../.worktrees/backport-2.x
# Create a new branch
git switch --create backport/backport-8444-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 70e1b2274bf6c1245063442882e561d4fb37742a
# Push it to GitHub
git push --set-upstream origin backport/backport-8444-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/backport-2.x Then, create a pull request where the |
@Shephalimittal could you please send a manual backport to |
Shephalimittal
added a commit
to Shephalimittal/OpenSearchJava
that referenced
this pull request
Aug 9, 2023
…idations (opensearch-project#8444) Signed-off-by: Shephali Mittal <shephalm@amazon.com>
6 tasks
Resolves #8430 |
kaushalmahi12
pushed a commit
to kaushalmahi12/OpenSearch
that referenced
this pull request
Sep 12, 2023
…arch-project#8444) * Added integration tests support for Telemetry span validation Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Added Telemetry validators Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Build failures Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Added changes desciption in changelog.md Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Added telemetry featureflagsetting by default to integtestclass Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Renamed Telemetry IT classes and modfied span exporter Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Removed Logger from InMemorySpanExporter Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Integrated span exporter configurable changes Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Build fixes Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Added wrapper on OTel plugin for Integration tests Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Removed telemetryPlugin() and telemetryFeatureFlagSettings() Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Add support for InMemorySpanExporter class Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Removing Unintended change Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Removing Tracer factory close Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Removed vcs.xml file and few other minor changes Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Removed unintended change Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Changed opentelemetry-sdk-testing dependency scope to test Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Fix integ tests Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Precommit fix Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Added TRACER_EXPORTER_DELAY_SETTING, more logging in TelemetryValidators Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Removed AllSpansAreInOrder validator Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Empty-Commit Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Empty-Commit Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Added comment while closing span Signed-off-by: Shephali Mittal <shephalm@amazon.com> --------- Signed-off-by: Shephali Mittal <shephalm@amazon.com> Co-authored-by: Shephali Mittal <shephalm@amazon.com> Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>
brusic
pushed a commit
to brusic/OpenSearch
that referenced
this pull request
Sep 25, 2023
…arch-project#8444) * Added integration tests support for Telemetry span validation Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Added Telemetry validators Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Build failures Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Added changes desciption in changelog.md Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Added telemetry featureflagsetting by default to integtestclass Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Renamed Telemetry IT classes and modfied span exporter Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Removed Logger from InMemorySpanExporter Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Integrated span exporter configurable changes Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Build fixes Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Added wrapper on OTel plugin for Integration tests Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Removed telemetryPlugin() and telemetryFeatureFlagSettings() Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Add support for InMemorySpanExporter class Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Removing Unintended change Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Removing Tracer factory close Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Removed vcs.xml file and few other minor changes Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Removed unintended change Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Changed opentelemetry-sdk-testing dependency scope to test Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Fix integ tests Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Precommit fix Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Added TRACER_EXPORTER_DELAY_SETTING, more logging in TelemetryValidators Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Removed AllSpansAreInOrder validator Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Empty-Commit Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Empty-Commit Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Added comment while closing span Signed-off-by: Shephali Mittal <shephalm@amazon.com> --------- Signed-off-by: Shephali Mittal <shephalm@amazon.com> Co-authored-by: Shephali Mittal <shephalm@amazon.com> Signed-off-by: Ivan Brusic <ivan.brusic@flocksafety.com>
shiv0408
pushed a commit
to Gaurav614/OpenSearch
that referenced
this pull request
Apr 25, 2024
…arch-project#8444) * Added integration tests support for Telemetry span validation Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Added Telemetry validators Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Build failures Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Added changes desciption in changelog.md Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Added telemetry featureflagsetting by default to integtestclass Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Renamed Telemetry IT classes and modfied span exporter Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Removed Logger from InMemorySpanExporter Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Integrated span exporter configurable changes Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Build fixes Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Added wrapper on OTel plugin for Integration tests Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Removed telemetryPlugin() and telemetryFeatureFlagSettings() Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Add support for InMemorySpanExporter class Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Removing Unintended change Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Removing Tracer factory close Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Removed vcs.xml file and few other minor changes Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Removed unintended change Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Changed opentelemetry-sdk-testing dependency scope to test Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Fix integ tests Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Precommit fix Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Added TRACER_EXPORTER_DELAY_SETTING, more logging in TelemetryValidators Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Removed AllSpansAreInOrder validator Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Empty-Commit Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Empty-Commit Signed-off-by: Shephali Mittal <shephalm@amazon.com> * Added comment while closing span Signed-off-by: Shephali Mittal <shephalm@amazon.com> --------- Signed-off-by: Shephali Mittal <shephalm@amazon.com> Co-authored-by: Shephali Mittal <shephalm@amazon.com> Signed-off-by: Shivansh Arora <hishiv@amazon.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Added cluster Integration tests for Otel span validations in plugins. These tests enable and disable tracer setting and performs following checks on emitted spans.
Also, added support for telemetryplugin() in IntegTestClass (All integ tests are inherited from this), so basic validations of spans are called in all the tests by default.
Related Issues
Resolves #[Issue number to be closed when this PR is merged]
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.