From e6ba90759b164aae0c9a8141845b2035f840ee37 Mon Sep 17 00:00:00 2001 From: Jeff Fisher Date: Thu, 3 Oct 2019 12:45:15 -0700 Subject: [PATCH] Add core-http tracing policy to pipeline --- sdk/storage/storage-file/src/Pipeline.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sdk/storage/storage-file/src/Pipeline.ts b/sdk/storage/storage-file/src/Pipeline.ts index e95b5f158723..b6ffcc53d24c 100644 --- a/sdk/storage/storage-file/src/Pipeline.ts +++ b/sdk/storage/storage-file/src/Pipeline.ts @@ -18,7 +18,8 @@ import { proxyPolicy, getDefaultProxySettings, isNode, - ProxySettings + ProxySettings, + tracingPolicy } from "@azure/core-http"; import { BrowserPolicyFactory } from "./BrowserPolicyFactory"; import { Credential } from "./credentials/Credential"; @@ -184,6 +185,7 @@ export function newPipeline( // The credential's policy factory must appear close to the wire so it can sign any // changes made by other factories (like UniqueRequestIDPolicyFactory) const factories: RequestPolicyFactory[] = [ + tracingPolicy(), new KeepAlivePolicyFactory(pipelineOptions.keepAliveOptions), new TelemetryPolicyFactory(pipelineOptions.telemetry), new UniqueRequestIDPolicyFactory(),