Skip to content

Commit

Permalink
Add core-http tracing policy to pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
xirzec committed Oct 3, 2019
1 parent 5908c64 commit e6ba907
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sdk/storage/storage-file/src/Pipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ import {
proxyPolicy,
getDefaultProxySettings,
isNode,
ProxySettings
ProxySettings,
tracingPolicy
} from "@azure/core-http";
import { BrowserPolicyFactory } from "./BrowserPolicyFactory";
import { Credential } from "./credentials/Credential";
Expand Down Expand Up @@ -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(),
Expand Down

0 comments on commit e6ba907

Please sign in to comment.