Skip to content

Commit

Permalink
Fix parented tracing span in search API (Azure#10445)
Browse files Browse the repository at this point in the history
  • Loading branch information
sarangan12 authored Aug 5, 2020
1 parent 3b19404 commit fe57aa7
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions sdk/search/search-documents/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Release History
## 11.0.3 (2020-08-04)
- Fixed the parented tracing span in the searchClient.search API. Please refer [#10442](https://github.com/Azure/azure-sdk-for-js/issues/10442) for further details.

## 11.0.2 (2020-07-31)
- Fixed the samples in the Readme File. Please refer [#10383](https://github.com/Azure/azure-sdk-for-js/pull/10383) for further details.
Expand Down
2 changes: 1 addition & 1 deletion sdk/search/search-documents/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@azure/search-documents",
"version": "11.0.2",
"version": "11.0.3",
"description": "Azure client library to use Cognitive Search for node.js and browser.",
"sdk-type": "client",
"main": "dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion sdk/search/search-documents/src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

export const SDK_VERSION: string = "11.0.2";
export const SDK_VERSION: string = "11.0.3";
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import * as coreHttp from "@azure/core-http";

const packageName = "@azure/search-documents";
const packageVersion = "11.0.2";
const packageVersion = "11.0.3";

export class SearchClientContext extends coreHttp.ServiceClient {
apiVersion: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import * as coreHttp from "@azure/core-http";

const packageName = "@azure/search-documents";
const packageVersion = "11.0.2";
const packageVersion = "11.0.3";

export class SearchServiceClientContext extends coreHttp.ServiceClient {
apiVersion: string;
Expand Down
2 changes: 1 addition & 1 deletion sdk/search/search-documents/src/searchClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ export class SearchClient<T> {
const { span, updatedOptions } = createSpan("SearchClient-search", options);

try {
const pageResult = await this.searchDocuments(searchText, options);
const pageResult = await this.searchDocuments(searchText, updatedOptions);

const { count, coverage, facets } = pageResult;

Expand Down

0 comments on commit fe57aa7

Please sign in to comment.