-
Notifications
You must be signed in to change notification settings - Fork 140
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
Fix Elasticsearch integration #211
Merged
Merged
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
lucaspimentel
added
type:bug
area:automatic-instrumentation
Automatic instrumentation managed C# code (Datadog.Trace.ClrProfiler.Managed)
labels
Nov 15, 2018
bmermet
reviewed
Nov 15, 2018
src/Datadog.Trace.ClrProfiler.Managed/Integrations/Elasticsearch.Net/Pipeline.cs
Show resolved
Hide resolved
…lizing the response (client bug or server incompatibility?)
…sult` if the task is faulted
…t the end to fail the test
bmermet
reviewed
Nov 15, 2018
don't ignore the `UnexpectedElasticsearchClientException` type since we dropped the CatSnapshot tests
bmermet
approved these changes
Nov 15, 2018
lucaspimentel
added a commit
that referenced
this pull request
Nov 19, 2018
* change return type of `CallElasticsearchAsync()` from `TResponse` to `Task<TResponse>` (caught by Sigil) * convert http method to string * add profiler environment variables to elasticsearch sample app * clean up code * add test for "Search", remove "CatSnapshots" because it fails deserializing the response (client bug or server incompatibility?) * await the task earlier so we don't bother using reflection to get `Result` if the task is faulted * collect any unexpected exceptions and throw an `AggregateException` at the end to fail the test * don't ignore exception in test don't ignore the `UnexpectedElasticsearchClientException` type since we dropped the CatSnapshot tests * explain why CatSnapshots is skipped
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area:automatic-instrumentation
Automatic instrumentation managed C# code (Datadog.Trace.ClrProfiler.Managed)
type:bug
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.
This PR fixes two issues with the Elasticsearch integration:
Task
/Task<T>
or notcatch