From 113e8e48157e37ae05ac59b327a0487fc704d037 Mon Sep 17 00:00:00 2001 From: Jeff Fisher Date: Tue, 24 Mar 2020 16:34:24 -0700 Subject: [PATCH 01/29] Move to core-tracing to OpenTelemetry 0.5 --- common/config/rush/pnpm-lock.yaml | 71 ++++++++++++----- sdk/core/core-tracing/CHANGELOG.md | 5 ++ sdk/core/core-tracing/package.json | 2 +- .../core-tracing/review/core-tracing.api.md | 52 ++++--------- sdk/core/core-tracing/rollup.base.config.js | 9 ++- sdk/core/core-tracing/src/index.ts | 2 - sdk/core/core-tracing/src/tracerProxy.ts | 14 +--- .../src/tracers/noop/noOpBinaryFormat.ts | 22 ------ .../src/tracers/noop/noOpHttpTextFormat.ts | 25 ------ .../core-tracing/src/tracers/noop/noOpSpan.ts | 76 ------------------- .../src/tracers/noop/noOpTracer.ts | 68 ----------------- .../opencensus/openCensusSpanWrapper.ts | 13 +++- .../opencensus/openCensusTraceStateWrapper.ts | 2 +- .../opencensus/openCensusTracerWrapper.ts | 28 +------ .../core-tracing/src/tracers/test/testSpan.ts | 8 +- .../src/tracers/test/testTracer.ts | 8 +- sdk/core/core-tracing/src/utils/cache.ts | 2 +- .../src/utils/traceParentHeader.ts | 4 +- .../test/traceParentHeader.spec.ts | 7 +- 19 files changed, 109 insertions(+), 309 deletions(-) delete mode 100644 sdk/core/core-tracing/src/tracers/noop/noOpBinaryFormat.ts delete mode 100644 sdk/core/core-tracing/src/tracers/noop/noOpHttpTextFormat.ts delete mode 100644 sdk/core/core-tracing/src/tracers/noop/noOpSpan.ts delete mode 100644 sdk/core/core-tracing/src/tracers/noop/noOpTracer.ts diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 3ef9835801a3..64c6131b77f7 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -325,6 +325,20 @@ packages: node: '>=6.0' resolution: integrity: sha512-xB+w7ZDAu3YBzqH44rCmG9/RlrOmFuDPt/bpf17eJr8eZSrLt7nc7LnWdxM9Mmoj/YKMHpxRg28txu3TcpiL+g== + /@opentelemetry/api/0.5.1: + dependencies: + '@opentelemetry/context-base': 0.5.1 + dev: false + engines: + node: '>=8.0.0' + resolution: + integrity: sha512-7l57iZ2qdnEzAvORZZjKZ3m8eHqOfjd+DFTG5IEr2+WzPX3BqM142233trRro8smiKN9t5JXYjEM9q8edwEa5Q== + /@opentelemetry/context-base/0.5.1: + dev: false + engines: + node: '>=8.0.0' + resolution: + integrity: sha512-GIQI9Gf4jgmlbWvVphGEA7XHUFmvDFKThYZe8VxVqzTrt2aTImGwSFc6Fys6UgnJkwxSK1NveerA8zdMZUNbVQ== /@opentelemetry/types/0.2.0: deprecated: 'Package renamed to @opentelemetry/api, see https://github.com/open-telemetry/opentelemetry-js' dev: false @@ -7433,6 +7447,7 @@ packages: '@azure/core-tracing': 1.0.0-preview.7 '@azure/identity': 1.1.0-preview1 '@microsoft/api-extractor': 7.7.8 + '@opentelemetry/api': 0.5.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -7486,7 +7501,7 @@ packages: dev: false name: '@rush-temp/ai-text-analytics' resolution: - integrity: sha512-HXQ7sEeyDnFz7wr8i1YCn/Oq/eUTHNrRxSYBhtCm/4fBw280nhCz4C6hS2x8xp2doCeJAgzouKfQ2tQ6p40S9A== + integrity: sha512-Zg9N+JbZhkAfG7fAeLNqoJDMQgMV9tvP+Xx50+4iETRNspo/pK2wEV8ygxhf44BGtEr+vQkMlAMW8wM71AObCg== tarball: 'file:projects/ai-text-analytics.tgz' version: 0.0.0 'file:projects/app-configuration.tgz': @@ -7494,6 +7509,7 @@ packages: '@azure/core-tracing': 1.0.0-preview.7 '@azure/identity': 1.1.0-preview1 '@microsoft/api-extractor': 7.7.8 + '@opentelemetry/api': 0.5.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-multi-entry': 3.0.0_rollup@1.32.1 @@ -7529,7 +7545,7 @@ packages: dev: false name: '@rush-temp/app-configuration' resolution: - integrity: sha512-TtffWKbKueVi1E1QiOQaX8DdMjh+Dy1ON0AzlQu2VwqHBq/P6NHLOX4+fzO1P8SQUZ60OSmodQv7Szo7xB4vKQ== + integrity: sha512-cQU+khE9MUe6O9v4H7HOQNfyud5JF1n3FLqW23Io2fPVgOW+dcbi66//bGOEwzqQ7aICa6cm83nSvGHUSMrLHg== tarball: 'file:projects/app-configuration.tgz' version: 0.0.0 'file:projects/core-amqp.tgz': @@ -7657,6 +7673,7 @@ packages: '@azure/core-tracing': 1.0.0-preview.7 '@azure/eslint-plugin-azure-sdk': 2.0.1_ee45056a3a53530214d828c032d67185 '@microsoft/api-extractor': 7.7.8 + '@opentelemetry/api': 0.5.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -7690,7 +7707,7 @@ packages: dev: false name: '@rush-temp/core-auth' resolution: - integrity: sha512-s/939eY3zDHWsLuxyKMR6PfnRaA8fYeoDeAas83xmrRQwU5Nnj2YMfjWl8RwlUrLk4nJ2Hdi2nSZVp2UzCLyuw== + integrity: sha512-6mu1prhSh9lujDEaL1KRdmpsEMmXzyLeD+IhqjWsnaO7bCSRkOQXs6RLgmMLTKOCM73pTT1xJt0WynjMWNhsUw== tarball: 'file:projects/core-auth.tgz' version: 0.0.0 'file:projects/core-http.tgz': @@ -7698,6 +7715,7 @@ packages: '@azure/core-tracing': 1.0.0-preview.7 '@azure/eslint-plugin-azure-sdk': 2.0.1_ee45056a3a53530214d828c032d67185 '@azure/logger-js': 1.3.2 + '@opentelemetry/api': 0.5.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -7768,7 +7786,7 @@ packages: dev: false name: '@rush-temp/core-http' resolution: - integrity: sha512-3iLOCNXEQHsgOsCTDrLmMqSNldS1N8u1mbIovCrlVdkiK3pr+0N8K8Txoj2/PUVR8VMvt31ZeKwvB9txLTE/tw== + integrity: sha512-NxM8enQsWj0J/kaJ9H2fKKst9SfEeoj89vevX2O4xWSLznQK7ugqkzFn38iMB0KaY+cb0YWsxUaJ3eAOvazHCA== tarball: 'file:projects/core-http.tgz' version: 0.0.0 'file:projects/core-lro.tgz': @@ -7776,6 +7794,7 @@ packages: '@azure/core-arm': 1.0.0-preview.7 '@azure/identity': 1.1.0-preview1 '@microsoft/api-extractor': 7.7.8 + '@opentelemetry/api': 0.5.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-multi-entry': 3.0.0_rollup@1.32.1 @@ -7825,7 +7844,7 @@ packages: dev: false name: '@rush-temp/core-lro' resolution: - integrity: sha512-Q2ycvTiywEt2t//BciGEsxAoAkoUznSrG/mwOj1ssneeb1Yln9zrgPTBr3OxsZpRRoZuIdqJOmKKXAR2ajVw6w== + integrity: sha512-ziRyIVJ5ZtNWLaPeiR8UFzikbGkQm7d9PwVNxSM6d6O9EdaBE9S5WyNrVZGwokJCUDxUggF4SggKMrbq9a3xIw== tarball: 'file:projects/core-lro.tgz' version: 0.0.0 'file:projects/core-paging.tgz': @@ -7851,6 +7870,7 @@ packages: '@azure/eslint-plugin-azure-sdk': 2.0.1_ee45056a3a53530214d828c032d67185 '@microsoft/api-extractor': 7.7.8 '@opencensus/web-types': 0.0.7 + '@opentelemetry/api': 0.5.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -7884,7 +7904,7 @@ packages: dev: false name: '@rush-temp/core-tracing' resolution: - integrity: sha512-SJ+L9sNBKGjTh1Ye4OWZ1aqXJ534jIKQwi5eDRa6irbh1jSZsNUmSMnBxzkM3+0kfQZ8YP7jm6sjPykaOJ4hUQ== + integrity: sha512-xD10RXR+gc7o7pMuwtvKHR3D7Pa9zFbq703Sod9Zs4dbO3VTGrYsim6whHks8wPuOvoB1z169wrjHnE8t5wxiA== tarball: 'file:projects/core-tracing.tgz' version: 0.0.0 'file:projects/cosmos.tgz': @@ -7990,6 +8010,7 @@ packages: '@azure/eslint-plugin-azure-sdk': 2.0.1_ee45056a3a53530214d828c032d67185 '@azure/identity': 1.1.0-preview1 '@microsoft/api-extractor': 7.7.8 + '@opentelemetry/api': 0.5.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-inject': 4.0.1_rollup@1.32.1 @@ -8062,7 +8083,7 @@ packages: dev: false name: '@rush-temp/event-hubs' resolution: - integrity: sha512-i6rPyYLlb/THBjrZMAcWFweSyM4g3rK7Bqpwzlo4RFGQvNil4ea1Ma0TSDYvUPXIWXybSLPKtelORdMLqCb0Hg== + integrity: sha512-TM1ezuhbaDr+5Dnb6J+KcCVm7F9+mImt3MCKLJU3FvWb5xUIPqaiMyw5KeMORRDQAsWmeQVbemnab50K8rV4mg== tarball: 'file:projects/event-hubs.tgz' version: 0.0.0 'file:projects/event-processor-host.tgz': @@ -8192,6 +8213,7 @@ packages: dependencies: '@azure/core-tracing': 1.0.0-preview.7 '@microsoft/api-extractor': 7.7.8 + '@opentelemetry/api': 0.5.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -8241,7 +8263,7 @@ packages: dev: false name: '@rush-temp/identity' resolution: - integrity: sha512-RmqqkFY1LlYsh2Vo7LCCoV7FcY/KsNQRqRYkEHt43BP8e77UKHQZkJgRs7GJjd6E0rlIYg+JVf9P3aM9HAThTg== + integrity: sha512-2ALEwoFWlCLLSg5gHdbk0ZtaiENDJEOibQ9MhjIHFA4iAGyN4SmgA3kTtHY9ZkhdOLn0tiMhF6h/5n/1HfzTbw== tarball: 'file:projects/identity.tgz' version: 0.0.0 'file:projects/keyvault-certificates.tgz': @@ -8250,6 +8272,7 @@ packages: '@azure/eslint-plugin-azure-sdk': 2.0.1_ee45056a3a53530214d828c032d67185 '@azure/identity': 1.1.0-preview1 '@microsoft/api-extractor': 7.7.8 + '@opentelemetry/api': 0.5.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -8308,7 +8331,7 @@ packages: dev: false name: '@rush-temp/keyvault-certificates' resolution: - integrity: sha512-kcF1QeALb78k1ebetS9RMvQ+ERE64bZ+6VbIljX9kFK8eCbWchkiM0VvY3z+4S/L5HAnQ0o7rqdRjgwBqP4w7A== + integrity: sha512-NtxH0ehDRscSh9jYlcqwCpgxqWs/r4SIXscc3PibauDWN7qCH19DtnwsCbx3yPSONP/5JxqjlbxW7XLsAtd8Iw== tarball: 'file:projects/keyvault-certificates.tgz' version: 0.0.0 'file:projects/keyvault-keys.tgz': @@ -8317,6 +8340,7 @@ packages: '@azure/eslint-plugin-azure-sdk': 2.0.1_ee45056a3a53530214d828c032d67185 '@azure/identity': 1.1.0-preview1 '@microsoft/api-extractor': 7.7.8 + '@opentelemetry/api': 0.5.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -8375,7 +8399,7 @@ packages: dev: false name: '@rush-temp/keyvault-keys' resolution: - integrity: sha512-WRzB1mONnSK1/qZdgaW2rO6QRIZLju/WDPqMn0gj+GOznT01XkpB8VMPQ5B0zRwk/N4g/rxGFCULHZ3YK+2/mQ== + integrity: sha512-DYOZs9qhaQPS97Ma+57RxjBUpuyOrzDV2aXzr//Cs5WuAF5pht6i1CUSt11mQcRAeeJVCqlUSs4L3OOcr+HjBQ== tarball: 'file:projects/keyvault-keys.tgz' version: 0.0.0 'file:projects/keyvault-secrets.tgz': @@ -8384,6 +8408,7 @@ packages: '@azure/eslint-plugin-azure-sdk': 2.0.1_ee45056a3a53530214d828c032d67185 '@azure/identity': 1.1.0-preview1 '@microsoft/api-extractor': 7.7.8 + '@opentelemetry/api': 0.5.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -8442,7 +8467,7 @@ packages: dev: false name: '@rush-temp/keyvault-secrets' resolution: - integrity: sha512-MTwfUVkm4XKNPiROswoPlGtuaY8HX+79Lz3JGhWNCxAnSpVQyMirlis1GwmnTWckVU5xV6bY1vahUaqgw4N0hQ== + integrity: sha512-/cokzvxJGQzUNtuOpxI3OtObDzFWzbzJsqiNxPOPtxLiYN5dmQZ9ZEDnIQZtSdZzYR3BWsQw0mlSiNdsTqLRww== tarball: 'file:projects/keyvault-secrets.tgz' version: 0.0.0 'file:projects/logger.tgz': @@ -8503,6 +8528,7 @@ packages: dependencies: '@azure/core-tracing': 1.0.0-preview.7 '@microsoft/api-extractor': 7.7.8 + '@opentelemetry/api': 0.5.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -8552,7 +8578,7 @@ packages: dev: false name: '@rush-temp/search' resolution: - integrity: sha512-6QA0sKVcNaCv3TDdvbD4tSpaU9f+lUmOQYl3tgEYhgIh+4jBHh9vv9Cpga4/IQFVUwWQlDTbY2hlsfR+vRaZSw== + integrity: sha512-z57Kyzt/kRLb14Oovn0u6kZesNPlOz5Gkv3EaERGb8SHgNMlhTZOwB5k1KS2M0nvCBTxO8gIWLCW0L94N4sd4A== tarball: 'file:projects/search.tgz' version: 0.0.0 'file:projects/service-bus.tgz': @@ -8560,6 +8586,7 @@ packages: '@azure/eslint-plugin-azure-sdk': 2.0.1_ee45056a3a53530214d828c032d67185 '@azure/identity': 1.1.0-preview1 '@microsoft/api-extractor': 7.7.8 + '@opentelemetry/api': 0.5.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-inject': 4.0.1_rollup@1.32.1 @@ -8631,7 +8658,7 @@ packages: dev: false name: '@rush-temp/service-bus' resolution: - integrity: sha512-o01tMu6B1o7ABcN8vMFmRH8NMBWva5VkUaxvEVItRm65o5FLyhLvmg39KkmEz6JdgD16WulE+uEbIUdl0Yd+iA== + integrity: sha512-4Cu4SVu9LbvS+x/LG8NZ/V+52EBH1Kmyoy77suX/ggq0JWsUzyEaFI3UwXMExQj/M3V96bazYdRSmEnP2C1HrA== tarball: 'file:projects/service-bus.tgz' version: 0.0.0 'file:projects/storage-blob.tgz': @@ -8639,6 +8666,7 @@ packages: '@azure/core-tracing': 1.0.0-preview.7 '@azure/identity': 1.1.0-preview1 '@microsoft/api-extractor': 7.7.8 + '@opentelemetry/api': 0.5.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-multi-entry': 3.0.0_rollup@1.32.1 @@ -8694,7 +8722,7 @@ packages: dev: false name: '@rush-temp/storage-blob' resolution: - integrity: sha512-JjNNxByexMxaQqbBHffzgp2DnG6gb2nRs/IILCB1d9r3SZ3/t1axzwzHbxQU3fmXN6hOO0brGqYe45IN9SsBPg== + integrity: sha512-tA1aNy9nTEaYNLV7LERkdIu8FjgkMAwDs3YofZN/h0yGaxtodWaNnEi9YS6+n4/doGHCaEbZyTo9VePTTLqP4g== tarball: 'file:projects/storage-blob.tgz' version: 0.0.0 'file:projects/storage-file-datalake.tgz': @@ -8702,6 +8730,7 @@ packages: '@azure/core-tracing': 1.0.0-preview.7 '@azure/identity': 1.1.0-preview1 '@microsoft/api-extractor': 7.7.8 + '@opentelemetry/api': 0.5.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-multi-entry': 3.0.0_rollup@1.32.1 @@ -8765,13 +8794,14 @@ packages: dev: false name: '@rush-temp/storage-file-datalake' resolution: - integrity: sha512-YJACP135onaEKbupR2QZYFSf2be3vfYYimWmKDuE4pocBhObK1ylt/AnJA2QrGwItvok2z3xj0jLGE/F6JTCag== + integrity: sha512-+VKXg2oR1078rj9KlL3Y4HfVREsspBg9eJLZ2C98VxlXXHJSqjhBP80d9UlQJ2zgUw+omthJSKSlMsNH7QWctA== tarball: 'file:projects/storage-file-datalake.tgz' version: 0.0.0 'file:projects/storage-file-share.tgz': dependencies: '@azure/core-tracing': 1.0.0-preview.7 '@microsoft/api-extractor': 7.7.8 + '@opentelemetry/api': 0.5.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-multi-entry': 3.0.0_rollup@1.32.1 @@ -8827,7 +8857,7 @@ packages: dev: false name: '@rush-temp/storage-file-share' resolution: - integrity: sha512-2TEucaS7nUIXXgqLgAWgYhGjLEaTFzIBckjlSNFSqGJxbevcDsWsxBBSvl/M8ld0NTFHqIKnR/ZyJeUEPfcPpA== + integrity: sha512-ZDiQllSobdJ2stQRvFcYiL9WTcNpuV/uErjHfwmCRsE0I6wtOgwyXyp+HVBpyRi2F2vO1+yZxY1Kag5H8BAU+g== tarball: 'file:projects/storage-file-share.tgz' version: 0.0.0 'file:projects/storage-queue.tgz': @@ -8835,6 +8865,7 @@ packages: '@azure/core-tracing': 1.0.0-preview.7 '@azure/identity': 1.1.0-preview1 '@microsoft/api-extractor': 7.7.8 + '@opentelemetry/api': 0.5.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-multi-entry': 3.0.0_rollup@1.32.1 @@ -8889,12 +8920,13 @@ packages: dev: false name: '@rush-temp/storage-queue' resolution: - integrity: sha512-TYoGzVK8a27ch4yuWj4d/UkDPJNYdQH/d+0ToM7+10G/9384QHPcNRcniMqyVkrDZL8D/4rgfHMqudpxmUA+Lg== + integrity: sha512-CVou19M7+hTQYaKKC9JGKL2dtaqW/Uwh8W1MlrgxeXkDUkEr0BZUvmCcksiOkMv49p8YXIm/fp4BFjUeSeEF/A== tarball: 'file:projects/storage-queue.tgz' version: 0.0.0 'file:projects/template.tgz': dependencies: '@microsoft/api-extractor': 7.7.8 + '@opentelemetry/api': 0.5.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -8940,11 +8972,12 @@ packages: dev: false name: '@rush-temp/template' resolution: - integrity: sha512-3wjLFt9oiVh5758lQ5J4UdDi90JhCk5mU4NdAwod4rTh9lE8NH6AqAbjzKhQ5RyHVEzqpJdVBx+43TgkCnvcsw== + integrity: sha512-VuZSPBijG8ONIPLeT6HRDk+MhJQeAJE1PFKR+X0On8mWemy2ZXmPEjMshGmuW9vkKIx6/S/CRJZoJ/qB6oh15g== tarball: 'file:projects/template.tgz' version: 0.0.0 'file:projects/test-utils-recorder.tgz': dependencies: + '@opentelemetry/api': 0.5.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-multi-entry': 3.0.0_rollup@1.32.1 @@ -9001,7 +9034,7 @@ packages: dev: false name: '@rush-temp/test-utils-recorder' resolution: - integrity: sha512-hWi9AH7zhw/6qiKumaAUr1CcF/i/rct5G2rcq4wwmcr16hMVIM+YXEuuEO42JGwDO34gHFgpzA53ky9iPiPm8w== + integrity: sha512-W8ck+Bx40pFznlV9ZZXYHYlDLmj/pOvTcbLD38dNUpDJAebx6ZS9tjQYddJLaGtAlcwVFgTLOt0CYIVJk8tPNQ== tarball: 'file:projects/test-utils-recorder.tgz' version: 0.0.0 'file:projects/testhub.tgz': diff --git a/sdk/core/core-tracing/CHANGELOG.md b/sdk/core/core-tracing/CHANGELOG.md index 77a6c816f518..9f4695224a52 100644 --- a/sdk/core/core-tracing/CHANGELOG.md +++ b/sdk/core/core-tracing/CHANGELOG.md @@ -3,6 +3,11 @@ ## 1.0.0-preview.8 (Unreleased) - Update `TestSpan` to allow setting span attributes [PR link](https://github.com/Azure/azure-sdk-for-js/pull/6565). +- [BREAKING] Migrate to OpenTelemetry 0.5 using the new `@opentelemetry/api` package. There were a few breaking changes: + - `SpanContext` now requires traceFlags to be set. + - `Tracer` has removed `recordSpanData`, `getBinaryFormat`, and `getHttpTextFormat`. + - `Tracer.getCurrentSpan` returns `undefined` instead of `null` when unset. +- [BREAKING] Removed NoopTracer and NoopSpan implementations since this is provided by `@opentelemetry/api` now. ## 1.0.0-preview.7 (2019-12-03) diff --git a/sdk/core/core-tracing/package.json b/sdk/core/core-tracing/package.json index 5d3db7454f33..07edb8540403 100644 --- a/sdk/core/core-tracing/package.json +++ b/sdk/core/core-tracing/package.json @@ -59,7 +59,7 @@ "sideEffects": false, "dependencies": { "@opencensus/web-types": "0.0.7", - "@opentelemetry/types": "^0.2.0", + "@opentelemetry/api": "^0.5.1", "tslib": "^1.10.0" }, "devDependencies": { diff --git a/sdk/core/core-tracing/review/core-tracing.api.md b/sdk/core/core-tracing/review/core-tracing.api.md index 409e2a10097c..69c74ff6b0fd 100644 --- a/sdk/core/core-tracing/review/core-tracing.api.md +++ b/sdk/core/core-tracing/review/core-tracing.api.md @@ -4,18 +4,18 @@ ```ts -import { Attributes } from '@opentelemetry/types'; -import { BinaryFormat } from '@opentelemetry/types'; -import { HttpTextFormat } from '@opentelemetry/types'; +import { Attributes } from '@opentelemetry/api'; +import { NoopSpan } from '@opentelemetry/api'; +import { NoopTracer } from '@opentelemetry/api'; import { Span as OpenCensusSpan } from '@opencensus/web-types'; import { Tracer as OpenCensusTracer } from '@opencensus/web-types'; -import { Span } from '@opentelemetry/types'; -import { SpanContext } from '@opentelemetry/types'; -import { SpanKind } from '@opentelemetry/types'; -import { SpanOptions } from '@opentelemetry/types'; -import { Status } from '@opentelemetry/types'; -import { TimeInput } from '@opentelemetry/types'; -import { Tracer } from '@opentelemetry/types'; +import { Span } from '@opentelemetry/api'; +import { SpanContext } from '@opentelemetry/api'; +import { SpanKind } from '@opentelemetry/api'; +import { SpanOptions } from '@opentelemetry/api'; +import { Status } from '@opentelemetry/api'; +import { TimeInput } from '@opentelemetry/api'; +import { Tracer } from '@opentelemetry/api'; import { TracerBase } from '@opencensus/web-types'; // @public @@ -27,29 +27,6 @@ export function getTraceParentHeader(spanContext: SpanContext): string | undefin // @public export function getTracer(): Tracer; -// @public -export class NoOpSpan implements Span { - addEvent(_name: string, _attributes?: Attributes): this; - context(): SpanContext; - end(_endTime?: number): void; - isRecording(): boolean; - setAttribute(_key: string, _value: unknown): this; - setAttributes(_attributes: Attributes): this; - setStatus(_status: Status): this; - updateName(_name: string): this; -} - -// @public -export class NoOpTracer implements Tracer { - bind(target: T, _span?: Span): T; - getBinaryFormat(): BinaryFormat; - getCurrentSpan(): Span; - getHttpTextFormat(): HttpTextFormat; - recordSpanData(_span: Span): void; - startSpan(_name: string, _options?: SpanOptions): Span; - withSpan ReturnType>(_span: Span, fn: T): ReturnType; -} - export { OpenCensusSpan } // @public @@ -73,11 +50,8 @@ export { OpenCensusTracer } export class OpenCensusTracerWrapper implements Tracer { constructor(tracer: TracerBase); bind(_target: T, _span?: Span): T; - getBinaryFormat(): BinaryFormat; - getCurrentSpan(): Span | null; - getHttpTextFormat(): HttpTextFormat; + getCurrentSpan(): Span | undefined; getWrappedTracer(): TracerBase; - recordSpanData(_span: Span): void; startSpan(name: string, options?: SpanOptions): Span; withSpan unknown>(_span: Span, _fn: T): ReturnType; } @@ -97,7 +71,7 @@ export interface SpanGraphNode { } // @public -export class TestSpan extends NoOpSpan { +export class TestSpan extends NoopSpan { constructor(parentTracer: TestTracer, name: string, context: SpanContext, kind: SpanKind, parentSpanId?: string, startTime?: TimeInput); readonly attributes: Attributes; context(): SpanContext; @@ -116,7 +90,7 @@ export class TestSpan extends NoOpSpan { } // @public -export class TestTracer extends NoOpTracer { +export class TestTracer extends NoopTracer { getActiveSpans(): TestSpan[]; getKnownSpans(): TestSpan[]; getRootSpans(): TestSpan[]; diff --git a/sdk/core/core-tracing/rollup.base.config.js b/sdk/core/core-tracing/rollup.base.config.js index dc178d01e691..9399879bc31b 100644 --- a/sdk/core/core-tracing/rollup.base.config.js +++ b/sdk/core/core-tracing/rollup.base.config.js @@ -82,7 +82,14 @@ export function browserConfig(test = false) { }), cjs({ namedExports: { - "@opentelemetry/types": ["CanonicalCode", "SpanKind", "TraceFlags"], + "@opentelemetry/api": [ + "CanonicalCode", + "SpanKind", + "TraceFlags", + "NOOP_TRACER", + "NoopTracer", + "NoopSpan" + ], assert: ["ok", "fail", "equal", "deepEqual", "deepStrictEqual", "strictEqual"] } }), diff --git a/sdk/core/core-tracing/src/index.ts b/sdk/core/core-tracing/src/index.ts index d5363e031678..abae1f82321b 100644 --- a/sdk/core/core-tracing/src/index.ts +++ b/sdk/core/core-tracing/src/index.ts @@ -4,8 +4,6 @@ export { getTracer, setTracer } from "./tracerProxy"; // Tracers and wrappers -export { NoOpSpan } from "./tracers/noop/noOpSpan"; -export { NoOpTracer } from "./tracers/noop/noOpTracer"; export { OpenCensusSpanWrapper } from "./tracers/opencensus/openCensusSpanWrapper"; export { OpenCensusTracerWrapper } from "./tracers/opencensus/openCensusTracerWrapper"; export { TestTracer, SpanGraph, SpanGraphNode } from "./tracers/test/testTracer"; diff --git a/sdk/core/core-tracing/src/tracerProxy.ts b/sdk/core/core-tracing/src/tracerProxy.ts index f985d1547de4..2628d6db6335 100644 --- a/sdk/core/core-tracing/src/tracerProxy.ts +++ b/sdk/core/core-tracing/src/tracerProxy.ts @@ -1,19 +1,9 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -import { NoOpTracer } from "./tracers/noop/noOpTracer"; -import { Tracer } from "@opentelemetry/types"; +import { Tracer, NOOP_TRACER } from "@opentelemetry/api"; import { getCache } from "./utils/cache"; -let defaultTracer: Tracer; - -function getDefaultTracer(): Tracer { - if (!defaultTracer) { - defaultTracer = new NoOpTracer(); - } - return defaultTracer; -} - /** * Sets the global tracer, enabling tracing for the Azure SDK. * @param tracer An OpenTelemetry Tracer instance. @@ -30,7 +20,7 @@ export function setTracer(tracer: Tracer) { export function getTracer() { const cache = getCache(); if (!cache.tracer) { - return getDefaultTracer(); + return NOOP_TRACER; } return cache.tracer; } diff --git a/sdk/core/core-tracing/src/tracers/noop/noOpBinaryFormat.ts b/sdk/core/core-tracing/src/tracers/noop/noOpBinaryFormat.ts deleted file mode 100644 index 04f800c2946d..000000000000 --- a/sdk/core/core-tracing/src/tracers/noop/noOpBinaryFormat.ts +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -import { BinaryFormat, SpanContext } from "@opentelemetry/types"; - -/** - * A no-op implementation of BinaryFormat to be used when tracing is disabled. - */ -export class NoOpBinaryFormat implements BinaryFormat { - /** Serialize the given SpanContext to a buffer */ - toBytes(_spanContext: SpanContext): ArrayBuffer { - return new ArrayBuffer(0); - } - - /** - * Deserialize a SpanContext from binary encoding. - * Returns null if the buffer does not contain a valid SpanContext. - */ - fromBytes(_buffer: ArrayBuffer): SpanContext | null { - return null; - } -} diff --git a/sdk/core/core-tracing/src/tracers/noop/noOpHttpTextFormat.ts b/sdk/core/core-tracing/src/tracers/noop/noOpHttpTextFormat.ts deleted file mode 100644 index 9ca2938928c9..000000000000 --- a/sdk/core/core-tracing/src/tracers/noop/noOpHttpTextFormat.ts +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -import { HttpTextFormat, SpanContext } from "@opentelemetry/types"; - -/** - * A no-op implementation of HttpTextFormat to be used when tracing is disabled. - */ -export class NoOpHttpTextFormat implements HttpTextFormat { - /** - * Injects the given SpanContext for transmitting to a remote server. - * @param _spanContext The SpanContext to transmit - * @param _format The format of the carrier - * @param _carrier The carrier to propagate through, e.g. an HTTP request - */ - inject(_spanContext: SpanContext, _format: string, _carrier: unknown): void {} - /** - * Returns a SpanContext intance extracted from the carrier. - * @param _format the format of the carrier - * @param _carrier The carrier being used for propagation, e.g. an HTTP request - */ - extract(_format: string, _carrier: unknown): SpanContext | null { - return null; - } -} diff --git a/sdk/core/core-tracing/src/tracers/noop/noOpSpan.ts b/sdk/core/core-tracing/src/tracers/noop/noOpSpan.ts deleted file mode 100644 index 0fe113022b6f..000000000000 --- a/sdk/core/core-tracing/src/tracers/noop/noOpSpan.ts +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -import { Span, SpanContext, Attributes, Status } from "@opentelemetry/types"; - -/** - * A no-op implementation of Span that can safely be used without side-effects. - */ -export class NoOpSpan implements Span { - /** - * Returns the SpanContext associated with this Span. - */ - context(): SpanContext { - return { - spanId: "", - traceId: "" - }; - } - - /** - * Marks the end of Span execution. - * @param _endTime The time to use as the Span's end time. Defaults to - * the current time. - */ - end(_endTime?: number): void { - /* Noop */ - } - - /** - * Sets an attribute on the Span - * @param _key the attribute key - * @param _value the attribute value - */ - setAttribute(_key: string, _value: unknown): this { - return this; - } - - /** - * Sets attributes on the Span - * @param _attributes the attributes to add - */ - setAttributes(_attributes: Attributes): this { - return this; - } - - /** - * Adds an event to the Span - * @param _name The name of the event - * @param _attributes The associated attributes to add for this event - */ - addEvent(_name: string, _attributes?: Attributes): this { - return this; - } - - /** - * Sets a status on the span. Overrides the default of CanonicalCode.OK. - * @param _status The status to set. - */ - setStatus(_status: Status): this { - return this; - } - - /** - * Updates the name of the Span - * @param _name the new Span name - */ - updateName(_name: string): this { - return this; - } - - /** - * Returns whether this span will be recorded - */ - isRecording(): boolean { - return false; - } -} diff --git a/sdk/core/core-tracing/src/tracers/noop/noOpTracer.ts b/sdk/core/core-tracing/src/tracers/noop/noOpTracer.ts deleted file mode 100644 index 3301ad831bf4..000000000000 --- a/sdk/core/core-tracing/src/tracers/noop/noOpTracer.ts +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -import { NoOpSpan } from "./noOpSpan"; -import { BinaryFormat, HttpTextFormat, Tracer, Span, SpanOptions } from "@opentelemetry/types"; -import { NoOpBinaryFormat } from "./noOpBinaryFormat"; -import { NoOpHttpTextFormat } from "./noOpHttpTextFormat"; - -/** - * A no-op implementation of Tracer that can be used when tracing - * is disabled. - */ -export class NoOpTracer implements Tracer { - /** - * Starts a new Span. - * @param _name The name of the span. - * @param _options The SpanOptions used during Span creation. - */ - startSpan(_name: string, _options?: SpanOptions): Span { - return new NoOpSpan(); - } - - /** - * Returns the current Span from the current context, if available. - */ - getCurrentSpan(): Span { - return new NoOpSpan(); - } - - /** - * Executes the given function within the context provided by a Span. - * @param _span The span that provides the context. - * @param fn The function to be executed. - */ - withSpan ReturnType>(_span: Span, fn: T): ReturnType { - return fn(); - } - - /** - * Bind a Span as the target's scope - * @param target An object to bind the scope. - * @param _span A specific Span to use. Otherwise, use the current one. - */ - bind(target: T, _span?: Span): T { - return target; - } - - /** - * Send a pre-populated Span object to the exporter. - * @param _span The span to pass along. - */ - recordSpanData(_span: Span): void { - /* NOOP */ - } - - /** - * Returns the BinaryFormat interface for serializing/deserializing Spans. - */ - getBinaryFormat(): BinaryFormat { - return new NoOpBinaryFormat(); - } - - /** - * Returns the HttpTextFormat interface for injecting/extracting Spans. - */ - getHttpTextFormat(): HttpTextFormat { - return new NoOpHttpTextFormat(); - } -} diff --git a/sdk/core/core-tracing/src/tracers/opencensus/openCensusSpanWrapper.ts b/sdk/core/core-tracing/src/tracers/opencensus/openCensusSpanWrapper.ts index d48bc17a4d03..84352875e633 100644 --- a/sdk/core/core-tracing/src/tracers/opencensus/openCensusSpanWrapper.ts +++ b/sdk/core/core-tracing/src/tracers/opencensus/openCensusSpanWrapper.ts @@ -1,11 +1,11 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -import { SpanContext, Span, SpanOptions, Attributes, Status } from "@opentelemetry/types"; +import { SpanContext, Span, SpanOptions, Attributes, Status, TraceFlags } from "@opentelemetry/api"; import { OpenCensusTraceStateWrapper } from "./openCensusTraceStateWrapper"; import { OpenCensusTracerWrapper } from "./openCensusTracerWrapper"; import { Attributes as OpenCensusAttributes, Span as OpenCensusSpan } from "@opencensus/web-types"; -function isWrappedSpan(span?: Span | SpanContext): span is OpenCensusSpanWrapper { +function isWrappedSpan(span?: Span | SpanContext | null): span is OpenCensusSpanWrapper { return !!span && (span as OpenCensusSpanWrapper).getWrappedSpan !== undefined; } @@ -55,7 +55,12 @@ export class OpenCensusSpanWrapper implements Span { if (options.links) { for (const link of options.links) { // Since there is no way to set the link relationship, leave it as Unspecified. - this._span.addLink(link.spanContext.traceId, link.spanContext.spanId, 0 /* LinkType.UNSPECIFIED */, link.attributes as OpenCensusAttributes); + this._span.addLink( + link.context.traceId, + link.context.spanId, + 0 /* LinkType.UNSPECIFIED */, + link.attributes as OpenCensusAttributes + ); } } } else { @@ -81,7 +86,7 @@ export class OpenCensusSpanWrapper implements Span { return { spanId: openCensusSpanContext.spanId, traceId: openCensusSpanContext.traceId, - traceFlags: openCensusSpanContext.options, + traceFlags: openCensusSpanContext.options as TraceFlags, traceState: new OpenCensusTraceStateWrapper(openCensusSpanContext.traceState) }; } diff --git a/sdk/core/core-tracing/src/tracers/opencensus/openCensusTraceStateWrapper.ts b/sdk/core/core-tracing/src/tracers/opencensus/openCensusTraceStateWrapper.ts index 9df1d37c9a61..3a1e42072209 100644 --- a/sdk/core/core-tracing/src/tracers/opencensus/openCensusTraceStateWrapper.ts +++ b/sdk/core/core-tracing/src/tracers/opencensus/openCensusTraceStateWrapper.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -import { TraceState } from "@opentelemetry/types"; +import { TraceState } from "@opentelemetry/api"; /** * @ignore diff --git a/sdk/core/core-tracing/src/tracers/opencensus/openCensusTracerWrapper.ts b/sdk/core/core-tracing/src/tracers/opencensus/openCensusTracerWrapper.ts index 7c264939dff0..0fe4ae93e061 100644 --- a/sdk/core/core-tracing/src/tracers/opencensus/openCensusTracerWrapper.ts +++ b/sdk/core/core-tracing/src/tracers/opencensus/openCensusTracerWrapper.ts @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -import { BinaryFormat, HttpTextFormat, Tracer, Span, SpanOptions } from "@opentelemetry/types"; +import { Tracer, Span, SpanOptions } from "@opentelemetry/api"; import { OpenCensusSpanWrapper } from "./openCensusSpanWrapper"; import { TracerBase as OpenCensusTracer } from "@opencensus/web-types"; @@ -37,8 +37,8 @@ export class OpenCensusTracerWrapper implements Tracer { /** * Returns the current Span from the current context, if available. */ - getCurrentSpan(): Span | null { - return null; + getCurrentSpan(): Span | undefined { + return undefined; } /** @@ -58,26 +58,4 @@ export class OpenCensusTracerWrapper implements Tracer { bind(_target: T, _span?: Span): T { throw new Error("Method not implemented."); } - - /** - * Send a pre-populated Span object to the exporter. - * @param _span The span to pass along. - */ - recordSpanData(_span: Span): void { - throw new Error("Method not implemented."); - } - - /** - * Returns the BinaryFormat interface for serializing/deserializing Spans. - */ - getBinaryFormat(): BinaryFormat { - throw new Error("Method not implemented."); - } - - /** - * Returns the HttpTextFormat interface for injecting/extracting Spans. - */ - getHttpTextFormat(): HttpTextFormat { - throw new Error("Method not implemented."); - } } diff --git a/sdk/core/core-tracing/src/tracers/test/testSpan.ts b/sdk/core/core-tracing/src/tracers/test/testSpan.ts index cb98d72cb9cb..21301a8e44c5 100644 --- a/sdk/core/core-tracing/src/tracers/test/testSpan.ts +++ b/sdk/core/core-tracing/src/tracers/test/testSpan.ts @@ -1,6 +1,5 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -import { NoOpSpan } from "../noop/noOpSpan"; import { TimeInput, Tracer, @@ -8,14 +7,15 @@ import { Status, SpanContext, CanonicalCode, - Attributes -} from "@opentelemetry/types"; + Attributes, + NoopSpan +} from "@opentelemetry/api"; import { TestTracer } from "./testTracer"; /** * A mock span useful for testing. */ -export class TestSpan extends NoOpSpan { +export class TestSpan extends NoopSpan { /** * The Span's current name */ diff --git a/sdk/core/core-tracing/src/tracers/test/testTracer.ts b/sdk/core/core-tracing/src/tracers/test/testTracer.ts index 0515d944d51f..9181072e37c1 100644 --- a/sdk/core/core-tracing/src/tracers/test/testTracer.ts +++ b/sdk/core/core-tracing/src/tracers/test/testTracer.ts @@ -1,8 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -import { NoOpTracer } from "../noop/noOpTracer"; import { TestSpan } from "./testSpan"; -import { SpanContext, SpanKind, SpanOptions } from "@opentelemetry/types"; +import { SpanContext, SpanKind, SpanOptions, NoopTracer, TraceFlags } from "@opentelemetry/api"; /** * Simple representation of a Span that only has name and child relationships. @@ -33,7 +32,7 @@ export interface SpanGraph { /** * A mock tracer useful for testing */ -export class TestTracer extends NoOpTracer { +export class TestTracer extends NoopTracer { private traceIdCounter = 0; private getNextTraceId(): string { this.traceIdCounter++; @@ -130,7 +129,8 @@ export class TestTracer extends NoOpTracer { const context: SpanContext = { traceId, - spanId: this.getNextSpanId() + spanId: this.getNextSpanId(), + traceFlags: TraceFlags.NONE }; const span = new TestSpan( this, diff --git a/sdk/core/core-tracing/src/utils/cache.ts b/sdk/core/core-tracing/src/utils/cache.ts index dbb36bd64dd3..25909c7c2568 100644 --- a/sdk/core/core-tracing/src/utils/cache.ts +++ b/sdk/core/core-tracing/src/utils/cache.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -import { Tracer } from "@opentelemetry/types"; +import { Tracer } from "@opentelemetry/api"; import { getGlobalObject } from "./global"; const GLOBAL_TRACER_VERSION = 2; diff --git a/sdk/core/core-tracing/src/utils/traceParentHeader.ts b/sdk/core/core-tracing/src/utils/traceParentHeader.ts index 6b38d9c9cac8..72d023e4f7b0 100644 --- a/sdk/core/core-tracing/src/utils/traceParentHeader.ts +++ b/sdk/core/core-tracing/src/utils/traceParentHeader.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -import { SpanContext, TraceFlags } from "@opentelemetry/types"; +import { SpanContext, TraceFlags } from "@opentelemetry/api"; const VERSION = "00"; @@ -54,7 +54,7 @@ export function getTraceParentHeader(spanContext: SpanContext): string | undefin return; } - const flags = spanContext.traceFlags || TraceFlags.UNSAMPLED; + const flags = spanContext.traceFlags || TraceFlags.NONE; const hexFlags = flags.toString(16); const traceFlags = hexFlags.length === 1 ? `0${hexFlags}` : hexFlags; diff --git a/sdk/core/core-tracing/test/traceParentHeader.spec.ts b/sdk/core/core-tracing/test/traceParentHeader.spec.ts index 7df303065118..6b17862aa525 100644 --- a/sdk/core/core-tracing/test/traceParentHeader.spec.ts +++ b/sdk/core/core-tracing/test/traceParentHeader.spec.ts @@ -3,7 +3,7 @@ import * as assert from "assert"; import { extractSpanContextFromTraceParentHeader, getTraceParentHeader } from "../src"; -import { TraceFlags, SpanContext } from "@opentelemetry/types"; +import { TraceFlags, SpanContext } from "@opentelemetry/api"; describe("traceParentHeader", () => { describe("#extractSpanContextFromTraceParentHeader", () => { @@ -22,7 +22,7 @@ describe("traceParentHeader", () => { assert.equal(spanContext.spanId, spanId, "Extracted spanId does not match expectation."); assert.equal( spanContext.traceFlags, - TraceFlags.UNSAMPLED, + TraceFlags.NONE, "Extracted traceFlags do not match expectations." ); }); @@ -77,7 +77,8 @@ describe("traceParentHeader", () => { it("should set the traceFlag to UNSAMPLED if not provided in SpanContext", () => { const spanContext: SpanContext = { spanId: "2222222222222222", - traceId: "11111111111111111111111111111111" + traceId: "11111111111111111111111111111111", + traceFlags: TraceFlags.NONE }; const traceParentHeader = getTraceParentHeader(spanContext); From 513a49aadd539274cb90dd9c2bd9da81fe39a41b Mon Sep 17 00:00:00 2001 From: Jeff Fisher Date: Tue, 24 Mar 2020 16:37:04 -0700 Subject: [PATCH 02/29] Migrate all packages to OpenTelemetry 0.5 --- .../app-configuration/package.json | 2 +- .../src/internal/tracingHelpers.ts | 2 +- .../test/tracingHelpers.spec.ts | 2 +- sdk/core/core-auth/package.json | 2 +- sdk/core/core-auth/src/operationOptions.ts | 2 +- sdk/core/core-http/package.json | 2 +- sdk/core/core-http/rollup.base.config.js | 2 +- sdk/core/core-http/src/operationOptions.ts | 2 +- .../core-http/src/policies/tracingPolicy.ts | 2 +- sdk/core/core-http/src/webResource.ts | 2 +- .../test/policies/tracingPolicyTests.ts | 2 +- sdk/core/core-lro/package.json | 2 +- sdk/core/core-lro/rollup.base.config.js | 2 +- sdk/eventhub/event-hubs/package.json | 2 +- sdk/eventhub/event-hubs/rollup.base.config.js | 2 +- .../src/diagnostics/instrumentEventData.ts | 2 +- .../event-hubs/src/diagnostics/messageSpan.ts | 2 +- sdk/eventhub/event-hubs/src/eventDataBatch.ts | 10 +- .../event-hubs/src/impl/eventHubClient.ts | 2 +- sdk/eventhub/event-hubs/src/partitionPump.ts | 2 +- sdk/eventhub/event-hubs/src/sender.ts | 2 +- .../event-hubs/src/util/operationOptions.ts | 2 +- sdk/eventhub/event-hubs/test/misc.spec.ts | 2 +- .../event-hubs/test/partitionPump.spec.ts | 2 +- sdk/identity/identity/package.json | 2 +- sdk/identity/identity/rollup.base.config.js | 2 +- .../identity/src/client/identityClient.ts | 2 +- .../authorizationCodeCredential.ts | 2 +- .../src/credentials/azureCliCredential.ts | 28 ++-- .../src/credentials/chainedTokenCredential.ts | 2 +- .../clientCertificateCredential.ts | 2 +- .../src/credentials/clientSecretCredential.ts | 2 +- .../src/credentials/deviceCodeCredential.ts | 2 +- .../src/credentials/environmentCredential.ts | 2 +- .../interactiveBrowserCredential.browser.ts | 2 +- .../credentials/managedIdentityCredential.ts | 2 +- .../credentials/usernamePasswordCredential.ts | 2 +- sdk/identity/identity/src/util/tracing.ts | 2 +- .../keyvault-certificates/package.json | 2 +- .../rollup.base.config.js | 2 +- .../keyvault-certificates/src/index.ts | 2 +- sdk/keyvault/keyvault-keys/package.json | 2 +- .../keyvault-keys/rollup.base.config.js | 2 +- .../keyvault-keys/src/cryptographyClient.ts | 2 +- sdk/keyvault/keyvault-keys/src/index.ts | 2 +- sdk/keyvault/keyvault-secrets/package.json | 2 +- .../keyvault-secrets/rollup.base.config.js | 2 +- sdk/keyvault/keyvault-secrets/src/index.ts | 2 +- sdk/search/search/package.json | 2 +- sdk/search/search/rollup.base.config.js | 2 +- sdk/search/search/src/searchIndexClient.ts | 2 +- sdk/search/search/src/searchServiceClient.ts | 2 +- sdk/search/search/src/tracing.ts | 2 +- sdk/search/search/test/tracing.spec.ts | 2 +- sdk/servicebus/service-bus/package.json | 2 +- .../service-bus/rollup.base.config.js | 2 +- .../src/modelsToBeSharedWithEventHubs.ts | 3 +- sdk/storage/storage-blob/package.json | 2 +- .../storage-blob/rollup.base.config.js | 8 +- sdk/storage/storage-blob/src/BlobBatch.ts | 13 +- .../storage-blob/src/BlobBatchClient.ts | 2 +- .../storage-blob/src/BlobServiceClient.ts | 2 +- sdk/storage/storage-blob/src/Clients.ts | 68 ++++----- sdk/storage/storage-blob/src/StorageClient.ts | 2 +- sdk/storage/storage-blob/src/utils/tracing.ts | 2 +- .../storage-file-datalake/package.json | 2 +- .../rollup.base.config.js | 10 +- .../src/DataLakeFileSystemClient.ts | 14 +- .../src/DataLakeLeaseClient.ts | 2 +- .../src/DataLakeServiceClient.ts | 2 +- .../src/StorageClient.ts | 3 +- .../storage-file-datalake/src/clients.ts | 115 ++++++++------- .../src/utils/tracing.ts | 2 +- sdk/storage/storage-file-share/package.json | 2 +- .../storage-file-share/rollup.base.config.js | 8 +- .../storage-file-share/src/ShareClient.ts | 2 +- .../src/ShareDirectoryClient.ts | 4 +- .../storage-file-share/src/ShareFileClient.ts | 61 ++++---- .../src/ShareServiceClient.ts | 2 +- .../storage-file-share/src/StorageClient.ts | 2 +- .../storage-file-share/src/utils/tracing.ts | 2 +- sdk/storage/storage-queue/package.json | 2 +- .../storage-queue/rollup.base.config.js | 8 +- sdk/storage/storage-queue/src/QueueClient.ts | 136 +++++++++--------- .../storage-queue/src/QueueServiceClient.ts | 6 +- .../storage-queue/src/StorageClient.ts | 2 +- .../storage-queue/src/utils/tracing.ts | 2 +- sdk/template/template/package.json | 2 +- sdk/template/template/rollup.base.config.js | 2 +- sdk/test-utils/recorder/package.json | 2 +- sdk/test-utils/recorder/rollup.base.config.js | 2 +- .../ai-text-analytics/package.json | 2 +- .../ai-text-analytics/rollup.base.config.js | 2 +- .../src/textAnalyticsClient.ts | 2 +- .../ai-text-analytics/src/tracing.ts | 2 +- .../ai-text-analytics/test/tracing.spec.ts | 2 +- 96 files changed, 348 insertions(+), 307 deletions(-) diff --git a/sdk/appconfiguration/app-configuration/package.json b/sdk/appconfiguration/app-configuration/package.json index 6cadbd71caa0..b7c6ec20b95f 100644 --- a/sdk/appconfiguration/app-configuration/package.json +++ b/sdk/appconfiguration/app-configuration/package.json @@ -75,7 +75,7 @@ "@azure/core-http": "^1.0.0", "@azure/core-paging": "^1.1.0", "@azure/core-tracing": "1.0.0-preview.7", - "@opentelemetry/types": "^0.2.0", + "@opentelemetry/api": "^0.5.1", "tslib": "^1.10.0" }, "devDependencies": { diff --git a/sdk/appconfiguration/app-configuration/src/internal/tracingHelpers.ts b/sdk/appconfiguration/app-configuration/src/internal/tracingHelpers.ts index bcbd94b603db..a31962a746de 100644 --- a/sdk/appconfiguration/app-configuration/src/internal/tracingHelpers.ts +++ b/sdk/appconfiguration/app-configuration/src/internal/tracingHelpers.ts @@ -2,7 +2,7 @@ // Licensed under the MIT License. import { getTracer } from "@azure/core-tracing"; -import { Span, SpanOptions, SpanKind, CanonicalCode } from "@opentelemetry/types"; +import { Span, SpanOptions, SpanKind, CanonicalCode } from "@opentelemetry/api"; import { RestError } from "@azure/core-http"; diff --git a/sdk/appconfiguration/app-configuration/test/tracingHelpers.spec.ts b/sdk/appconfiguration/app-configuration/test/tracingHelpers.spec.ts index b145771cf060..6665a2fb6f2b 100644 --- a/sdk/appconfiguration/app-configuration/test/tracingHelpers.spec.ts +++ b/sdk/appconfiguration/app-configuration/test/tracingHelpers.spec.ts @@ -4,7 +4,7 @@ import { Spanner } from "../src/internal/tracingHelpers"; import { RestError } from "@azure/core-http"; import { getTracer } from "@azure/core-tracing"; -import { SpanOptions, SpanKind, CanonicalCode } from "@opentelemetry/types"; +import { SpanOptions, SpanKind, CanonicalCode } from "@opentelemetry/api"; import * as assert from "assert"; interface FakeOptions { diff --git a/sdk/core/core-auth/package.json b/sdk/core/core-auth/package.json index 90425ae03fc6..8fe2bc6075e6 100644 --- a/sdk/core/core-auth/package.json +++ b/sdk/core/core-auth/package.json @@ -57,7 +57,7 @@ "dependencies": { "@azure/abort-controller": "^1.0.0", "@azure/core-tracing": "1.0.0-preview.7", - "@opentelemetry/types": "^0.2.0", + "@opentelemetry/api": "^0.5.1", "tslib": "^1.10.0" }, "devDependencies": { diff --git a/sdk/core/core-auth/src/operationOptions.ts b/sdk/core/core-auth/src/operationOptions.ts index ef56fb2f8df1..dc74a6932dfa 100644 --- a/sdk/core/core-auth/src/operationOptions.ts +++ b/sdk/core/core-auth/src/operationOptions.ts @@ -2,7 +2,7 @@ // Licensed under the MIT License. import { AbortSignalLike } from "@azure/abort-controller"; -import { SpanOptions } from "@opentelemetry/types"; +import { SpanOptions } from "@opentelemetry/api"; /** * The base options type for all operations. diff --git a/sdk/core/core-http/package.json b/sdk/core/core-http/package.json index 14b487fa6693..cfb1c8df9a3f 100644 --- a/sdk/core/core-http/package.json +++ b/sdk/core/core-http/package.json @@ -129,7 +129,7 @@ "@azure/core-auth": "^1.0.0", "@azure/core-tracing": "1.0.0-preview.7", "@azure/logger": "^1.0.0", - "@opentelemetry/types": "^0.2.0", + "@opentelemetry/api": "^0.5.1", "@types/node-fetch": "^2.5.0", "@types/tunnel": "^0.0.1", "cross-env": "^6.0.3", diff --git a/sdk/core/core-http/rollup.base.config.js b/sdk/core/core-http/rollup.base.config.js index c1bba3ccc692..363b134d4a50 100644 --- a/sdk/core/core-http/rollup.base.config.js +++ b/sdk/core/core-http/rollup.base.config.js @@ -87,7 +87,7 @@ export function browserConfig(test = false, production = false) { namedExports: { chai: ["assert", "AssertionError", "should", "expect"], events: ["EventEmitter"], - "@opentelemetry/types": ["CanonicalCode", "SpanKind", "TraceFlags"] + "@opentelemetry/api": ["CanonicalCode", "SpanKind", "TraceFlags"] } }), viz({ filename: "dist-browser/browser-stats.html", sourcemap: false }) diff --git a/sdk/core/core-http/src/operationOptions.ts b/sdk/core/core-http/src/operationOptions.ts index 1c148259a9ce..ecfb2b23e0af 100644 --- a/sdk/core/core-http/src/operationOptions.ts +++ b/sdk/core/core-http/src/operationOptions.ts @@ -1,5 +1,5 @@ import { AbortSignalLike } from "@azure/abort-controller"; -import { SpanOptions } from "@opentelemetry/types"; +import { SpanOptions } from "@opentelemetry/api"; import { TransferProgressEvent, RequestOptionsBase } from "./webResource"; /** diff --git a/sdk/core/core-http/src/policies/tracingPolicy.ts b/sdk/core/core-http/src/policies/tracingPolicy.ts index 4603b5ea5476..3b18b6a17a57 100644 --- a/sdk/core/core-http/src/policies/tracingPolicy.ts +++ b/sdk/core/core-http/src/policies/tracingPolicy.ts @@ -2,7 +2,7 @@ // Licensed under the MIT License. import { getTracer, getTraceParentHeader } from "@azure/core-tracing"; -import { SpanOptions, SpanKind } from "@opentelemetry/types"; +import { SpanOptions, SpanKind } from "@opentelemetry/api"; import { RequestPolicyFactory, RequestPolicy, diff --git a/sdk/core/core-http/src/webResource.ts b/sdk/core/core-http/src/webResource.ts index 4a97e761c1b9..f2c70dfc3882 100644 --- a/sdk/core/core-http/src/webResource.ts +++ b/sdk/core/core-http/src/webResource.ts @@ -9,7 +9,7 @@ import { HttpOperationResponse } from "./httpOperationResponse"; import { OperationResponse } from "./operationResponse"; import { ProxySettings } from "./serviceClient"; import { AbortSignalLike } from "@azure/abort-controller"; -import { SpanOptions } from "@opentelemetry/types"; +import { SpanOptions } from "@opentelemetry/api"; export type HttpMethods = | "GET" diff --git a/sdk/core/core-http/test/policies/tracingPolicyTests.ts b/sdk/core/core-http/test/policies/tracingPolicyTests.ts index 0536266537ef..48d8e2998868 100644 --- a/sdk/core/core-http/test/policies/tracingPolicyTests.ts +++ b/sdk/core/core-http/test/policies/tracingPolicyTests.ts @@ -9,7 +9,7 @@ import { HttpHeaders, RequestPolicyOptions } from "../../src/coreHttp"; -import { SpanOptions, SpanContext, TraceFlags } from "@opentelemetry/types"; +import { SpanOptions, SpanContext, TraceFlags } from "@opentelemetry/api"; import { setTracer, NoOpTracer, NoOpSpan } from "@azure/core-tracing"; import { tracingPolicy } from "../../src/policies/tracingPolicy"; diff --git a/sdk/core/core-lro/package.json b/sdk/core/core-lro/package.json index 0a30fe63ef10..4ef20afade0c 100644 --- a/sdk/core/core-lro/package.json +++ b/sdk/core/core-lro/package.json @@ -96,7 +96,7 @@ "dependencies": { "@azure/abort-controller": "^1.0.0", "@azure/core-http": "^1.0.0", - "@opentelemetry/types": "^0.2.0", + "@opentelemetry/api": "^0.5.1", "events": "^3.0.0", "tslib": "^1.10.0" }, diff --git a/sdk/core/core-lro/rollup.base.config.js b/sdk/core/core-lro/rollup.base.config.js index f5bac1aac7e0..dbf2071ca017 100644 --- a/sdk/core/core-lro/rollup.base.config.js +++ b/sdk/core/core-lro/rollup.base.config.js @@ -119,7 +119,7 @@ export function browserConfig(test = false) { cjs({ namedExports: { assert: ["ok", "equal", "strictEqual"], - "@opentelemetry/types": ["CanonicalCode", "SpanKind", "TraceFlags"] + "@opentelemetry/api": ["CanonicalCode", "SpanKind", "TraceFlags"] } }) ] diff --git a/sdk/eventhub/event-hubs/package.json b/sdk/eventhub/event-hubs/package.json index ae117731a1ff..3d8254708e2f 100644 --- a/sdk/eventhub/event-hubs/package.json +++ b/sdk/eventhub/event-hubs/package.json @@ -75,7 +75,7 @@ "@azure/core-asynciterator-polyfill": "^1.0.0", "@azure/core-tracing": "1.0.0-preview.7", "@azure/logger": "^1.0.0", - "@opentelemetry/types": "^0.2.0", + "@opentelemetry/api": "^0.5.1", "async-lock": "^1.1.3", "buffer": "^5.2.1", "debug": "^4.1.1", diff --git a/sdk/eventhub/event-hubs/rollup.base.config.js b/sdk/eventhub/event-hubs/rollup.base.config.js index 95114e74850f..b48c8915fa3c 100644 --- a/sdk/eventhub/event-hubs/rollup.base.config.js +++ b/sdk/eventhub/event-hubs/rollup.base.config.js @@ -132,7 +132,7 @@ export function browserConfig(test = false) { cjs({ namedExports: { events: ["EventEmitter"], - "@opentelemetry/types": ["CanonicalCode", "SpanKind", "TraceFlags"] + "@opentelemetry/api": ["CanonicalCode", "SpanKind", "TraceFlags"] } }), diff --git a/sdk/eventhub/event-hubs/src/diagnostics/instrumentEventData.ts b/sdk/eventhub/event-hubs/src/diagnostics/instrumentEventData.ts index 740d7e5603ec..467a3e2b29d4 100644 --- a/sdk/eventhub/event-hubs/src/diagnostics/instrumentEventData.ts +++ b/sdk/eventhub/event-hubs/src/diagnostics/instrumentEventData.ts @@ -2,7 +2,7 @@ // Licensed under the MIT License. import { getTraceParentHeader, extractSpanContextFromTraceParentHeader } from "@azure/core-tracing"; -import { Span, SpanContext } from "@opentelemetry/types"; +import { Span, SpanContext } from "@opentelemetry/api"; import { EventData } from "../eventData"; /** diff --git a/sdk/eventhub/event-hubs/src/diagnostics/messageSpan.ts b/sdk/eventhub/event-hubs/src/diagnostics/messageSpan.ts index c1172b2b9a5d..c194501bb49a 100644 --- a/sdk/eventhub/event-hubs/src/diagnostics/messageSpan.ts +++ b/sdk/eventhub/event-hubs/src/diagnostics/messageSpan.ts @@ -2,7 +2,7 @@ // Licensed under the MIT License. import { getTracer } from "@azure/core-tracing"; -import { Span, SpanContext, SpanKind } from "@opentelemetry/types"; +import { Span, SpanContext, SpanKind } from "@opentelemetry/api"; /** * @internal diff --git a/sdk/eventhub/event-hubs/src/eventDataBatch.ts b/sdk/eventhub/event-hubs/src/eventDataBatch.ts index 1b0b2bb35139..53f2f61e7115 100644 --- a/sdk/eventhub/event-hubs/src/eventDataBatch.ts +++ b/sdk/eventhub/event-hubs/src/eventDataBatch.ts @@ -6,7 +6,7 @@ import { ConnectionContext } from "./connectionContext"; import { AmqpMessage } from "@azure/core-amqp"; import { message } from "rhea-promise"; import { throwTypeErrorIfParameterMissing } from "./util/error"; -import { Span, SpanContext } from "@opentelemetry/types"; +import { Span, SpanContext } from "@opentelemetry/api"; import { instrumentEventData, TRACEPARENT_PROPERTY } from "./diagnostics/instrumentEventData"; import { createMessageSpan } from "./diagnostics/messageSpan"; @@ -37,11 +37,11 @@ export interface TryAddOptions { /** * An interface representing a batch of events which can be used to send events to Event Hub. - * + * * To create the batch, use the `createBatch()` method on the `EventHubProducerClient`. * To send the batch, use the `sendBatch()` method on the same client. * To fill the batch, use the `tryAdd()` method on the batch itself. - * + * */ export interface EventDataBatch { /** @@ -98,7 +98,7 @@ export interface EventDataBatch { * The AMQP message containing encoded events that were added to the batch. * Used internally by the `sendBatch()` method on the `EventHubProducerClient`. * This is not meant for the user to use directly. - * + * * @readonly * @internal * @ignore @@ -116,7 +116,7 @@ export interface EventDataBatch { /** * An internal class representing a batch of events which can be used to send events to Event Hub. - * + * * @class * @internal * @ignore diff --git a/sdk/eventhub/event-hubs/src/impl/eventHubClient.ts b/sdk/eventhub/event-hubs/src/impl/eventHubClient.ts index 8855388b3b7a..5af9955429d9 100644 --- a/sdk/eventhub/event-hubs/src/impl/eventHubClient.ts +++ b/sdk/eventhub/event-hubs/src/impl/eventHubClient.ts @@ -21,7 +21,7 @@ import { EventHubProducer } from "../sender"; import { EventHubConsumer } from "../receiver"; import { throwTypeErrorIfParameterMissing, throwErrorIfConnectionClosed } from "../util/error"; import { getTracer } from "@azure/core-tracing"; -import { SpanContext, Span, SpanKind, CanonicalCode } from "@opentelemetry/types"; +import { SpanContext, Span, SpanKind, CanonicalCode } from "@opentelemetry/api"; import { getParentSpan } from "../util/operationOptions"; import { OperationNames, EventHubProducerOptions } from "../models/private"; import { diff --git a/sdk/eventhub/event-hubs/src/partitionPump.ts b/sdk/eventhub/event-hubs/src/partitionPump.ts index 1d24c3e42dfe..015b09fe4c68 100644 --- a/sdk/eventhub/event-hubs/src/partitionPump.ts +++ b/sdk/eventhub/event-hubs/src/partitionPump.ts @@ -12,7 +12,7 @@ import { AbortController } from "@azure/abort-controller"; import { MessagingError } from "@azure/core-amqp"; import { getParentSpan, TracingOptions } from "./util/operationOptions"; import { getTracer } from "@azure/core-tracing"; -import { Span, SpanKind, Link, CanonicalCode } from "@opentelemetry/types"; +import { Span, SpanKind, Link, CanonicalCode } from "@opentelemetry/api"; import { extractSpanContextFromEventData } from "./diagnostics/instrumentEventData"; import { ReceivedEventData } from "./eventData"; diff --git a/sdk/eventhub/event-hubs/src/sender.ts b/sdk/eventhub/event-hubs/src/sender.ts index dd4a228958b5..99f3526fefe6 100644 --- a/sdk/eventhub/event-hubs/src/sender.ts +++ b/sdk/eventhub/event-hubs/src/sender.ts @@ -10,7 +10,7 @@ import { logger, logErrorStackTrace } from "./log"; import { throwErrorIfConnectionClosed, throwTypeErrorIfParameterMissing } from "./util/error"; import { EventDataBatch, isEventDataBatch, EventDataBatchImpl } from "./eventDataBatch"; import { getTracer } from "@azure/core-tracing"; -import { SpanContext, Span, SpanKind, CanonicalCode, Link } from "@opentelemetry/types"; +import { SpanContext, Span, SpanKind, CanonicalCode, Link } from "@opentelemetry/api"; import { instrumentEventData, TRACEPARENT_PROPERTY } from "./diagnostics/instrumentEventData"; import { createMessageSpan } from "./diagnostics/messageSpan"; import { getParentSpan } from "./util/operationOptions"; diff --git a/sdk/eventhub/event-hubs/src/util/operationOptions.ts b/sdk/eventhub/event-hubs/src/util/operationOptions.ts index fafc6e60ff29..0bcd43f6b8e6 100644 --- a/sdk/eventhub/event-hubs/src/util/operationOptions.ts +++ b/sdk/eventhub/event-hubs/src/util/operationOptions.ts @@ -2,7 +2,7 @@ // Licensed under the MIT License. import { AbortSignalLike } from "@azure/abort-controller"; -import { Span, SpanContext, SpanOptions } from "@opentelemetry/types"; +import { Span, SpanContext, SpanOptions } from "@opentelemetry/api"; /** * Options for configuring tracing. diff --git a/sdk/eventhub/event-hubs/test/misc.spec.ts b/sdk/eventhub/event-hubs/test/misc.spec.ts index 4f6dc0ba599c..36641bfc2d8f 100644 --- a/sdk/eventhub/event-hubs/test/misc.spec.ts +++ b/sdk/eventhub/event-hubs/test/misc.spec.ts @@ -22,7 +22,7 @@ import { TRACEPARENT_PROPERTY, extractSpanContextFromEventData } from "../src/diagnostics/instrumentEventData"; -import { TraceFlags } from "@opentelemetry/types"; +import { TraceFlags } from "@opentelemetry/api"; import { EventHubConsumer } from "../src/receiver"; import { SubscriptionHandlerForTests } from "./utils/subscriptionHandlerForTests"; const env = getEnvVars(); diff --git a/sdk/eventhub/event-hubs/test/partitionPump.spec.ts b/sdk/eventhub/event-hubs/test/partitionPump.spec.ts index 895fe2ae51b3..2b5f4596cfd0 100644 --- a/sdk/eventhub/event-hubs/test/partitionPump.spec.ts +++ b/sdk/eventhub/event-hubs/test/partitionPump.spec.ts @@ -3,7 +3,7 @@ import { createProcessingSpan, trace } from "../src/partitionPump"; import { NoOpSpan, TestTracer, setTracer, TestSpan } from "@azure/core-tracing"; -import { CanonicalCode, SpanOptions, SpanKind } from "@opentelemetry/types"; +import { CanonicalCode, SpanOptions, SpanKind } from "@opentelemetry/api"; import chai from "chai"; import { ReceivedEventData } from "../src/eventData"; import { instrumentEventData } from "../src/diagnostics/instrumentEventData"; diff --git a/sdk/identity/identity/package.json b/sdk/identity/identity/package.json index c5a3d0642e8c..e0266adab3c0 100644 --- a/sdk/identity/identity/package.json +++ b/sdk/identity/identity/package.json @@ -76,7 +76,7 @@ "@azure/core-http": "^1.0.0", "@azure/core-tracing": "1.0.0-preview.7", "@azure/logger": "^1.0.0", - "@opentelemetry/types": "^0.2.0", + "@opentelemetry/api": "^0.5.1", "events": "^3.0.0", "jws": "^3.2.2", "msal": "^1.0.2", diff --git a/sdk/identity/identity/rollup.base.config.js b/sdk/identity/identity/rollup.base.config.js index fa4a361a7af1..21e91e7fed15 100644 --- a/sdk/identity/identity/rollup.base.config.js +++ b/sdk/identity/identity/rollup.base.config.js @@ -84,7 +84,7 @@ export function browserConfig(test = false) { cjs({ namedExports: { events: ["EventEmitter"], - "@opentelemetry/types": ["CanonicalCode", "SpanKind", "TraceFlags"] + "@opentelemetry/api": ["CanonicalCode", "SpanKind", "TraceFlags"] } }), viz({ filename: "dist-browser/browser-stats.html", sourcemap: false }) diff --git a/sdk/identity/identity/src/client/identityClient.ts b/sdk/identity/identity/src/client/identityClient.ts index 7d87b34b1569..fffdca578678 100644 --- a/sdk/identity/identity/src/client/identityClient.ts +++ b/sdk/identity/identity/src/client/identityClient.ts @@ -11,7 +11,7 @@ import { GetTokenOptions, createPipelineFromOptions } from "@azure/core-http"; -import { CanonicalCode } from "@opentelemetry/types"; +import { CanonicalCode } from "@opentelemetry/api"; import { AuthenticationError, AuthenticationErrorName } from "./errors"; import { createSpan } from "../util/tracing"; import { logger } from "../util/logging"; diff --git a/sdk/identity/identity/src/credentials/authorizationCodeCredential.ts b/sdk/identity/identity/src/credentials/authorizationCodeCredential.ts index 50a8dd5d1dea..e66cc103c063 100644 --- a/sdk/identity/identity/src/credentials/authorizationCodeCredential.ts +++ b/sdk/identity/identity/src/credentials/authorizationCodeCredential.ts @@ -6,7 +6,7 @@ import { createSpan } from "../util/tracing"; import { AuthenticationErrorName } from "../client/errors"; import { TokenCredential, GetTokenOptions, AccessToken } from "@azure/core-http"; import { IdentityClient, TokenResponse, TokenCredentialOptions } from "../client/identityClient"; -import { CanonicalCode } from "@opentelemetry/types"; +import { CanonicalCode } from "@opentelemetry/api"; /** * Enables authentication to Azure Active Directory using an authorization code diff --git a/sdk/identity/identity/src/credentials/azureCliCredential.ts b/sdk/identity/identity/src/credentials/azureCliCredential.ts index 100505a9cfef..8779e334675b 100644 --- a/sdk/identity/identity/src/credentials/azureCliCredential.ts +++ b/sdk/identity/identity/src/credentials/azureCliCredential.ts @@ -4,20 +4,20 @@ import { TokenCredential, GetTokenOptions, AccessToken } from "@azure/core-http"; import { createSpan } from "../util/tracing"; import { AuthenticationErrorName } from "../client/errors"; -import { CanonicalCode } from "@opentelemetry/types"; +import { CanonicalCode } from "@opentelemetry/api"; import { logger } from "../util/logging"; import * as child_process from "child_process"; function getSafeWorkingDir(): string { - if (process.platform === "win32") { - if (!process.env.SystemRoot) { - throw new Error("Azure CLI credential expects a 'SystemRoot' environment variable"); - } - return process.env.SystemRoot; - } else { - return "/bin"; + if (process.platform === "win32") { + if (!process.env.SystemRoot) { + throw new Error("Azure CLI credential expects a 'SystemRoot' environment variable"); } + return process.env.SystemRoot; + } else { + return "/bin"; + } } /** @@ -39,7 +39,7 @@ export class AzureCliCredential implements TokenCredential { try { child_process.exec( `az account get-access-token --output json --resource ${resource}`, - {cwd: getSafeWorkingDir()}, + { cwd: getSafeWorkingDir() }, (error, stdout, stderr) => { resolve({ stdout: stdout, stderr: stderr }); } @@ -72,7 +72,7 @@ export class AzureCliCredential implements TokenCredential { // Check to make sure the scope we get back is a valid scope if (!scope.match(/^[0-9a-zA-Z-.:/]+$/)) { - throw new Error("Invalid scope was specified by the user or calling client") + throw new Error("Invalid scope was specified by the user or calling client"); } let responseData = ""; @@ -86,9 +86,13 @@ export class AzureCliCredential implements TokenCredential { obj.stderr.match("az:(.*)not found") || obj.stderr.startsWith("'az' is not recognized"); if (isNotInstallError) { - throw new Error("Azure CLI could not be found. Please visit https://aka.ms/azure-cli for installation instructions and then, once installed, authenticate to your Azure account using 'az login'."); + throw new Error( + "Azure CLI could not be found. Please visit https://aka.ms/azure-cli for installation instructions and then, once installed, authenticate to your Azure account using 'az login'." + ); } else if (isLoginError) { - throw new Error("Please run 'az login' from a command prompt to authenticate before using this credential."); + throw new Error( + "Please run 'az login' from a command prompt to authenticate before using this credential." + ); } throw new Error(obj.stderr); } else { diff --git a/sdk/identity/identity/src/credentials/chainedTokenCredential.ts b/sdk/identity/identity/src/credentials/chainedTokenCredential.ts index 1e0ce3bc621c..bb7964b2aab1 100644 --- a/sdk/identity/identity/src/credentials/chainedTokenCredential.ts +++ b/sdk/identity/identity/src/credentials/chainedTokenCredential.ts @@ -4,7 +4,7 @@ import { AccessToken, TokenCredential, GetTokenOptions } from "@azure/core-http"; import { AggregateAuthenticationError } from "../client/errors"; import { createSpan } from "../util/tracing"; -import { CanonicalCode } from "@opentelemetry/types"; +import { CanonicalCode } from "@opentelemetry/api"; /** * Enables multiple `TokenCredential` implementations to be tried in order diff --git a/sdk/identity/identity/src/credentials/clientCertificateCredential.ts b/sdk/identity/identity/src/credentials/clientCertificateCredential.ts index 2ed14e6cad11..ad472ce4932b 100644 --- a/sdk/identity/identity/src/credentials/clientCertificateCredential.ts +++ b/sdk/identity/identity/src/credentials/clientCertificateCredential.ts @@ -10,7 +10,7 @@ import { TokenCredential, GetTokenOptions, AccessToken } from "@azure/core-http" import { TokenCredentialOptions, IdentityClient } from "../client/identityClient"; import { createSpan } from "../util/tracing"; import { AuthenticationErrorName } from "../client/errors"; -import { CanonicalCode } from "@opentelemetry/types"; +import { CanonicalCode } from "@opentelemetry/api"; const SelfSignedJwtLifetimeMins = 10; diff --git a/sdk/identity/identity/src/credentials/clientSecretCredential.ts b/sdk/identity/identity/src/credentials/clientSecretCredential.ts index 0f72157bda1b..7d96d5a64124 100644 --- a/sdk/identity/identity/src/credentials/clientSecretCredential.ts +++ b/sdk/identity/identity/src/credentials/clientSecretCredential.ts @@ -6,7 +6,7 @@ import { TokenCredential, GetTokenOptions, AccessToken } from "@azure/core-http" import { TokenCredentialOptions, IdentityClient } from "../client/identityClient"; import { createSpan } from "../util/tracing"; import { AuthenticationErrorName } from "../client/errors"; -import { CanonicalCode } from "@opentelemetry/types"; +import { CanonicalCode } from "@opentelemetry/api"; /** * Enables authentication to Azure Active Directory using a client secret diff --git a/sdk/identity/identity/src/credentials/deviceCodeCredential.ts b/sdk/identity/identity/src/credentials/deviceCodeCredential.ts index ce52d8059b3f..cdaf5c6b1efa 100644 --- a/sdk/identity/identity/src/credentials/deviceCodeCredential.ts +++ b/sdk/identity/identity/src/credentials/deviceCodeCredential.ts @@ -7,7 +7,7 @@ import { IdentityClient, TokenResponse, TokenCredentialOptions } from "../client import { AuthenticationError, AuthenticationErrorName } from "../client/errors"; import { createSpan } from "../util/tracing"; import { delay } from "../util/delay"; -import { CanonicalCode } from "@opentelemetry/types"; +import { CanonicalCode } from "@opentelemetry/api"; import { logger } from "../util/logging"; /** diff --git a/sdk/identity/identity/src/credentials/environmentCredential.ts b/sdk/identity/identity/src/credentials/environmentCredential.ts index e9966e1bf1bc..3e541b059b53 100644 --- a/sdk/identity/identity/src/credentials/environmentCredential.ts +++ b/sdk/identity/identity/src/credentials/environmentCredential.ts @@ -6,7 +6,7 @@ import { TokenCredentialOptions } from "../client/identityClient"; import { ClientSecretCredential } from "./clientSecretCredential"; import { createSpan } from "../util/tracing"; import { AuthenticationError, AuthenticationErrorName } from "../client/errors"; -import { CanonicalCode } from "@opentelemetry/types"; +import { CanonicalCode } from "@opentelemetry/api"; import { logger } from "../util/logging"; import { ClientCertificateCredential } from "./clientCertificateCredential"; import { UsernamePasswordCredential } from "./usernamePasswordCredential"; diff --git a/sdk/identity/identity/src/credentials/interactiveBrowserCredential.browser.ts b/sdk/identity/identity/src/credentials/interactiveBrowserCredential.browser.ts index 9f10696f1db9..2a7c8ee1ab84 100644 --- a/sdk/identity/identity/src/credentials/interactiveBrowserCredential.browser.ts +++ b/sdk/identity/identity/src/credentials/interactiveBrowserCredential.browser.ts @@ -9,7 +9,7 @@ import { InteractiveBrowserCredentialOptions } from "./interactiveBrowserCredentialOptions"; import { createSpan } from "../util/tracing"; -import { CanonicalCode } from "@opentelemetry/types"; +import { CanonicalCode } from "@opentelemetry/api"; import { DefaultTenantId, DeveloperSignOnClientId } from "../constants"; import { logger } from "../util/logging"; diff --git a/sdk/identity/identity/src/credentials/managedIdentityCredential.ts b/sdk/identity/identity/src/credentials/managedIdentityCredential.ts index 753dae102212..4e084c412ae9 100644 --- a/sdk/identity/identity/src/credentials/managedIdentityCredential.ts +++ b/sdk/identity/identity/src/credentials/managedIdentityCredential.ts @@ -12,7 +12,7 @@ import { import { IdentityClient, TokenCredentialOptions } from "../client/identityClient"; import { createSpan } from "../util/tracing"; import { AuthenticationErrorName } from "../client/errors"; -import { CanonicalCode } from "@opentelemetry/types"; +import { CanonicalCode } from "@opentelemetry/api"; import { logger } from "../util/logging"; const DefaultScopeSuffix = "/.default"; diff --git a/sdk/identity/identity/src/credentials/usernamePasswordCredential.ts b/sdk/identity/identity/src/credentials/usernamePasswordCredential.ts index ff6e67b85255..1c3b06725ed9 100644 --- a/sdk/identity/identity/src/credentials/usernamePasswordCredential.ts +++ b/sdk/identity/identity/src/credentials/usernamePasswordCredential.ts @@ -6,7 +6,7 @@ import { TokenCredential, GetTokenOptions, AccessToken } from "@azure/core-http" import { TokenCredentialOptions, IdentityClient } from "../client/identityClient"; import { createSpan } from "../util/tracing"; import { AuthenticationErrorName } from "../client/errors"; -import { CanonicalCode } from "@opentelemetry/types"; +import { CanonicalCode } from "@opentelemetry/api"; /** * Enables authentication to Azure Active Directory with a user's diff --git a/sdk/identity/identity/src/util/tracing.ts b/sdk/identity/identity/src/util/tracing.ts index d6b06e363675..d53bcf709c89 100644 --- a/sdk/identity/identity/src/util/tracing.ts +++ b/sdk/identity/identity/src/util/tracing.ts @@ -3,7 +3,7 @@ import { GetTokenOptions } from "@azure/core-http"; import { getTracer } from "@azure/core-tracing"; -import { Span, SpanKind, SpanOptions } from "@opentelemetry/types"; +import { Span, SpanKind, SpanOptions } from "@opentelemetry/api"; interface OperationTracingOptions { /** diff --git a/sdk/keyvault/keyvault-certificates/package.json b/sdk/keyvault/keyvault-certificates/package.json index 81e966ea8755..78cce28b747f 100644 --- a/sdk/keyvault/keyvault-certificates/package.json +++ b/sdk/keyvault/keyvault-certificates/package.json @@ -89,7 +89,7 @@ "@azure/core-paging": "^1.1.0", "@azure/core-tracing": "1.0.0-preview.7", "@azure/logger": "^1.0.0", - "@opentelemetry/types": "^0.2.0", + "@opentelemetry/api": "^0.5.1", "tslib": "^1.10.0" }, "devDependencies": { diff --git a/sdk/keyvault/keyvault-certificates/rollup.base.config.js b/sdk/keyvault/keyvault-certificates/rollup.base.config.js index 61b5802ba801..d62f3f6d044d 100644 --- a/sdk/keyvault/keyvault-certificates/rollup.base.config.js +++ b/sdk/keyvault/keyvault-certificates/rollup.base.config.js @@ -125,7 +125,7 @@ export function browserConfig(test = false) { cjs({ namedExports: { assert: ["ok", "equal", "strictEqual"], - "@opentelemetry/types": ["CanonicalCode", "SpanKind", "TraceFlags"] + "@opentelemetry/api": ["CanonicalCode", "SpanKind", "TraceFlags"] } }) ] diff --git a/sdk/keyvault/keyvault-certificates/src/index.ts b/sdk/keyvault/keyvault-certificates/src/index.ts index 506619e200f8..15a11a1e0481 100644 --- a/sdk/keyvault/keyvault-certificates/src/index.ts +++ b/sdk/keyvault/keyvault-certificates/src/index.ts @@ -18,7 +18,7 @@ import { } from "@azure/core-http"; import { getTracer } from "@azure/core-tracing"; -import { Span } from "@opentelemetry/types"; +import { Span } from "@opentelemetry/api"; import { logger } from "./log"; import { PollerLike } from "@azure/core-lro"; diff --git a/sdk/keyvault/keyvault-keys/package.json b/sdk/keyvault/keyvault-keys/package.json index 53aee4276b00..91d1792783e5 100644 --- a/sdk/keyvault/keyvault-keys/package.json +++ b/sdk/keyvault/keyvault-keys/package.json @@ -87,7 +87,7 @@ "@azure/core-paging": "^1.1.0", "@azure/core-tracing": "1.0.0-preview.7", "@azure/logger": "^1.0.0", - "@opentelemetry/types": "^0.2.0", + "@opentelemetry/api": "^0.5.1", "tslib": "^1.10.0" }, "devDependencies": { diff --git a/sdk/keyvault/keyvault-keys/rollup.base.config.js b/sdk/keyvault/keyvault-keys/rollup.base.config.js index cbd13d2c2160..d25c576e62b4 100644 --- a/sdk/keyvault/keyvault-keys/rollup.base.config.js +++ b/sdk/keyvault/keyvault-keys/rollup.base.config.js @@ -123,7 +123,7 @@ export function browserConfig(test = false) { cjs({ namedExports: { assert: ["ok", "equal", "strictEqual"], - "@opentelemetry/types": ["CanonicalCode", "SpanKind", "TraceFlags"] + "@opentelemetry/api": ["CanonicalCode", "SpanKind", "TraceFlags"] } }) ] diff --git a/sdk/keyvault/keyvault-keys/src/cryptographyClient.ts b/sdk/keyvault/keyvault-keys/src/cryptographyClient.ts index 9e0ae4a1a25b..47d058669bd9 100644 --- a/sdk/keyvault/keyvault-keys/src/cryptographyClient.ts +++ b/sdk/keyvault/keyvault-keys/src/cryptographyClient.ts @@ -21,7 +21,7 @@ import { } from "@azure/core-http"; import { getTracer } from "@azure/core-tracing"; -import { Span } from "@opentelemetry/types"; +import { Span } from "@opentelemetry/api"; import { logger } from "./log"; import { parseKeyvaultIdentifier } from "./core/utils"; import { SDK_VERSION } from "./core/utils/constants"; diff --git a/sdk/keyvault/keyvault-keys/src/index.ts b/sdk/keyvault/keyvault-keys/src/index.ts index 6b6e2199bbae..1235717c485f 100644 --- a/sdk/keyvault/keyvault-keys/src/index.ts +++ b/sdk/keyvault/keyvault-keys/src/index.ts @@ -13,7 +13,7 @@ import { } from "@azure/core-http"; import { getTracer } from "@azure/core-tracing"; -import { Span } from "@opentelemetry/types"; +import { Span } from "@opentelemetry/api"; import { logger } from "./log"; import "@azure/core-paging"; diff --git a/sdk/keyvault/keyvault-secrets/package.json b/sdk/keyvault/keyvault-secrets/package.json index a596f5688606..db243b0d8fc6 100644 --- a/sdk/keyvault/keyvault-secrets/package.json +++ b/sdk/keyvault/keyvault-secrets/package.json @@ -88,7 +88,7 @@ "@azure/core-paging": "^1.1.0", "@azure/core-tracing": "1.0.0-preview.7", "@azure/logger": "^1.0.0", - "@opentelemetry/types": "^0.2.0", + "@opentelemetry/api": "^0.5.1", "tslib": "^1.10.0" }, "devDependencies": { diff --git a/sdk/keyvault/keyvault-secrets/rollup.base.config.js b/sdk/keyvault/keyvault-secrets/rollup.base.config.js index 1c5f8e4d00b1..03a0249a2cb2 100644 --- a/sdk/keyvault/keyvault-secrets/rollup.base.config.js +++ b/sdk/keyvault/keyvault-secrets/rollup.base.config.js @@ -123,7 +123,7 @@ export function browserConfig(test = false) { cjs({ namedExports: { assert: ["ok", "equal", "strictEqual"], - "@opentelemetry/types": ["CanonicalCode", "SpanKind", "TraceFlags"] + "@opentelemetry/api": ["CanonicalCode", "SpanKind", "TraceFlags"] } }) ] diff --git a/sdk/keyvault/keyvault-secrets/src/index.ts b/sdk/keyvault/keyvault-secrets/src/index.ts index 6054597ec9a0..3fceda333d6b 100644 --- a/sdk/keyvault/keyvault-secrets/src/index.ts +++ b/sdk/keyvault/keyvault-secrets/src/index.ts @@ -13,7 +13,7 @@ import { } from "@azure/core-http"; import { getTracer } from "@azure/core-tracing"; -import { Span } from "@opentelemetry/types"; +import { Span } from "@opentelemetry/api"; import { logger } from "./log"; import "@azure/core-paging"; diff --git a/sdk/search/search/package.json b/sdk/search/search/package.json index 0128c3d60808..8afbe5dc891f 100644 --- a/sdk/search/search/package.json +++ b/sdk/search/search/package.json @@ -73,7 +73,7 @@ "@azure/core-paging": "^1.1.0", "@azure/core-tracing": "1.0.0-preview.7", "@azure/logger": "^1.0.0", - "@opentelemetry/types": "^0.2.0", + "@opentelemetry/api": "^0.5.1", "tslib": "^1.10.0" }, "devDependencies": { diff --git a/sdk/search/search/rollup.base.config.js b/sdk/search/search/rollup.base.config.js index 92e3e2b1bf42..1d04eff8238f 100644 --- a/sdk/search/search/rollup.base.config.js +++ b/sdk/search/search/rollup.base.config.js @@ -86,7 +86,7 @@ export function browserConfig(test = false) { cjs({ namedExports: { chai: ["assert"], - "@opentelemetry/types": ["CanonicalCode", "SpanKind", "TraceFlags"] + "@opentelemetry/api": ["CanonicalCode", "SpanKind", "TraceFlags"] } }), viz({ filename: "dist-browser/browser-stats.html", sourcemap: false }) diff --git a/sdk/search/search/src/searchIndexClient.ts b/sdk/search/search/src/searchIndexClient.ts index 3cbe4c179d91..5f3aeae3b552 100644 --- a/sdk/search/search/src/searchIndexClient.ts +++ b/sdk/search/search/src/searchIndexClient.ts @@ -23,7 +23,7 @@ import { IndexDocumentsResult } from "./generated/data/models"; import { createSpan } from "./tracing"; -import { CanonicalCode } from "@opentelemetry/types"; +import { CanonicalCode } from "@opentelemetry/api"; import { deserialize, serialize } from "./serialization"; import { IndexAction, diff --git a/sdk/search/search/src/searchServiceClient.ts b/sdk/search/search/src/searchServiceClient.ts index de3afd9e6ae1..06ab15e8a44e 100644 --- a/sdk/search/search/src/searchServiceClient.ts +++ b/sdk/search/search/src/searchServiceClient.ts @@ -14,7 +14,7 @@ import { SearchApiKeyCredential } from "./searchApiKeyCredential"; import { SDK_VERSION } from "./constants"; import { logger } from "./logger"; import { createSpan } from "./tracing"; -import { CanonicalCode } from "@opentelemetry/types"; +import { CanonicalCode } from "@opentelemetry/api"; import { Index, ListIndexesOptions, diff --git a/sdk/search/search/src/tracing.ts b/sdk/search/search/src/tracing.ts index 5f1fd403c63d..48c2852039ec 100644 --- a/sdk/search/search/src/tracing.ts +++ b/sdk/search/search/src/tracing.ts @@ -2,7 +2,7 @@ // Licensed under the MIT license. import { getTracer } from "@azure/core-tracing"; -import { Span, SpanOptions, SpanKind } from "@opentelemetry/types"; +import { Span, SpanOptions, SpanKind } from "@opentelemetry/api"; import { OperationOptions } from "@azure/core-http"; type OperationTracingOptions = OperationOptions["tracingOptions"]; diff --git a/sdk/search/search/test/tracing.spec.ts b/sdk/search/search/test/tracing.spec.ts index bcd76f43f9ff..77fc143e738b 100644 --- a/sdk/search/search/test/tracing.spec.ts +++ b/sdk/search/search/test/tracing.spec.ts @@ -5,7 +5,7 @@ import { assert } from "chai"; import * as sinon from "sinon"; import { createSpan } from "../src/tracing"; import { setTracer, TestTracer, TestSpan } from "@azure/core-tracing"; -import { SpanKind } from "@opentelemetry/types"; +import { SpanKind } from "@opentelemetry/api"; import { OperationOptions } from "@azure/core-http"; describe("tracing.createSpan", () => { diff --git a/sdk/servicebus/service-bus/package.json b/sdk/servicebus/service-bus/package.json index 3443e02c01d5..0e392ec6f013 100644 --- a/sdk/servicebus/service-bus/package.json +++ b/sdk/servicebus/service-bus/package.json @@ -79,7 +79,7 @@ "@azure/core-auth": "^1.0.0", "@azure/core-amqp": "^1.1.0", "@azure/core-http": "^1.0.0", - "@opentelemetry/types": "^0.2.0", + "@opentelemetry/api": "^0.5.1", "@types/is-buffer": "^2.0.0", "@types/long": "^4.0.0", "buffer": "^5.2.1", diff --git a/sdk/servicebus/service-bus/rollup.base.config.js b/sdk/servicebus/service-bus/rollup.base.config.js index 007059941795..8c9cabeca73b 100644 --- a/sdk/servicebus/service-bus/rollup.base.config.js +++ b/sdk/servicebus/service-bus/rollup.base.config.js @@ -148,7 +148,7 @@ export function browserConfig(test = false) { namedExports: { events: ["EventEmitter"], long: ["ZERO"], - "@opentelemetry/types": ["CanonicalCode", "SpanKind", "TraceFlags"] + "@opentelemetry/api": ["CanonicalCode", "SpanKind", "TraceFlags"] } }), diff --git a/sdk/servicebus/service-bus/src/modelsToBeSharedWithEventHubs.ts b/sdk/servicebus/service-bus/src/modelsToBeSharedWithEventHubs.ts index cb3687c60355..c5ef749a0210 100644 --- a/sdk/servicebus/service-bus/src/modelsToBeSharedWithEventHubs.ts +++ b/sdk/servicebus/service-bus/src/modelsToBeSharedWithEventHubs.ts @@ -4,7 +4,7 @@ // TODO: this code is a straight-copy from EventHubs. Need to merge. import { AbortSignalLike } from "@azure/abort-controller"; -import { Span, SpanContext, SpanOptions } from "@opentelemetry/types"; +import { Span, SpanContext, SpanOptions } from "@opentelemetry/api"; /** * Options for configuring tracing. @@ -33,7 +33,6 @@ export interface OperationOptions extends TracingOptions { abortSignal?: AbortSignalLike; } - /** * @internal * @ignore diff --git a/sdk/storage/storage-blob/package.json b/sdk/storage/storage-blob/package.json index ff5691a0ea35..3a9f113a3a30 100644 --- a/sdk/storage/storage-blob/package.json +++ b/sdk/storage/storage-blob/package.json @@ -104,7 +104,7 @@ "@azure/core-paging": "^1.1.0", "@azure/core-tracing": "1.0.0-preview.7", "@azure/logger": "^1.0.0", - "@opentelemetry/types": "^0.2.0", + "@opentelemetry/api": "^0.5.1", "events": "^3.0.0", "tslib": "^1.10.0" }, diff --git a/sdk/storage/storage-blob/rollup.base.config.js b/sdk/storage/storage-blob/rollup.base.config.js index d98c122a6b3e..69c43c4c5c52 100644 --- a/sdk/storage/storage-blob/rollup.base.config.js +++ b/sdk/storage/storage-blob/rollup.base.config.js @@ -64,7 +64,11 @@ export function nodeConfig(test = false) { if (test) { // entry point is every test file - baseConfig.input = ["dist-esm/test/*.spec.js", "dist-esm/test/node/*.spec.js", "dist-esm/src/index.js"]; + baseConfig.input = [ + "dist-esm/test/*.spec.js", + "dist-esm/test/node/*.spec.js", + "dist-esm/src/index.js" + ]; baseConfig.plugins.unshift(multiEntry()); // different output file @@ -142,7 +146,7 @@ export function browserConfig(test = false) { "notDeepEqual", "notDeepStrictEqual" ], - "@opentelemetry/types": ["CanonicalCode", "SpanKind", "TraceFlags"] + "@opentelemetry/api": ["CanonicalCode", "SpanKind", "TraceFlags"] } }) ], diff --git a/sdk/storage/storage-blob/src/BlobBatch.ts b/sdk/storage/storage-blob/src/BlobBatch.ts index 599a6e0d280d..42e571aaa6b2 100644 --- a/sdk/storage/storage-blob/src/BlobBatch.ts +++ b/sdk/storage/storage-blob/src/BlobBatch.ts @@ -13,7 +13,7 @@ import { bearerTokenAuthenticationPolicy, isNode } from "@azure/core-http"; -import { CanonicalCode } from "@opentelemetry/types"; +import { CanonicalCode } from "@opentelemetry/api"; import { AnonymousCredential } from "./credentials/AnonymousCredential"; import { BlobClient, BlobDeleteOptions, BlobSetTierOptions } from "./Clients"; import { AccessTier } from "./generatedModels"; @@ -330,10 +330,13 @@ export class BlobBatch { credential: credential }, async () => { - await new BlobClient(url, this.batchRequest.createPipeline(credential)).setAccessTier( - tier, - { ...options, tracingOptions: { ...options!.tracingOptions, spanOptions } } - ); + await new BlobClient( + url, + this.batchRequest.createPipeline(credential) + ).setAccessTier(tier, { + ...options, + tracingOptions: { ...options!.tracingOptions, spanOptions } + }); } ); } catch (e) { diff --git a/sdk/storage/storage-blob/src/BlobBatchClient.ts b/sdk/storage/storage-blob/src/BlobBatchClient.ts index b5aaf1417be7..adc93b07c51b 100644 --- a/sdk/storage/storage-blob/src/BlobBatchClient.ts +++ b/sdk/storage/storage-blob/src/BlobBatchClient.ts @@ -12,7 +12,7 @@ import { BatchResponseParser } from "./BatchResponseParser"; import { utf8ByteLength } from "./BatchUtils"; import { BlobBatch } from "./BlobBatch"; import { AbortSignalLike } from "@azure/abort-controller"; -import { CanonicalCode } from "@opentelemetry/types"; +import { CanonicalCode } from "@opentelemetry/api"; import { createSpan } from "./utils/tracing"; import { HttpResponse, TokenCredential } from "@azure/core-http"; import { Service } from "./generated/src/operations"; diff --git a/sdk/storage/storage-blob/src/BlobServiceClient.ts b/sdk/storage/storage-blob/src/BlobServiceClient.ts index decd35d75b7a..d270a5a36cc7 100644 --- a/sdk/storage/storage-blob/src/BlobServiceClient.ts +++ b/sdk/storage/storage-blob/src/BlobServiceClient.ts @@ -7,7 +7,7 @@ import { HttpResponse, getDefaultProxySettings } from "@azure/core-http"; -import { CanonicalCode } from "@opentelemetry/types"; +import { CanonicalCode } from "@opentelemetry/api"; import { AbortSignalLike } from "@azure/abort-controller"; import { ServiceGetUserDelegationKeyHeaders, diff --git a/sdk/storage/storage-blob/src/Clients.ts b/sdk/storage/storage-blob/src/Clients.ts index 553aa65270f1..44450c0db394 100644 --- a/sdk/storage/storage-blob/src/Clients.ts +++ b/sdk/storage/storage-blob/src/Clients.ts @@ -9,7 +9,7 @@ import { getDefaultProxySettings, URLBuilder } from "@azure/core-http"; -import { CanonicalCode } from "@opentelemetry/types"; +import { CanonicalCode } from "@opentelemetry/api"; import { BlobDownloadResponseModel, CpkInfo, @@ -29,7 +29,7 @@ import { BlobAbortCopyFromURLResponse, BlobCopyFromURLResponse, BlobSetTierResponse, - ContainerEncryptionScope, + ContainerEncryptionScope } from "./generatedModels"; import { AbortSignalLike } from "@azure/abort-controller"; import { BlobDownloadResponse } from "./BlobDownloadResponse"; @@ -48,7 +48,7 @@ import { DEFAULT_MAX_DOWNLOAD_RETRY_REQUESTS, URLConstants, DEFAULT_BLOB_DOWNLOAD_BLOCK_BYTES, - DEFAULT_BLOCK_BUFFER_SIZE_BYTES, + DEFAULT_BLOCK_BUFFER_SIZE_BYTES } from "./utils/constants"; import { setURLParameter, @@ -177,7 +177,7 @@ export interface BlobBeginCopyFromURLOptions extends BlobStartCopyFromURLOptions * @export * @interface BlobBeginCopyFromURLResponse */ -export interface BlobBeginCopyFromURLResponse extends BlobStartCopyFromURLResponse { } +export interface BlobBeginCopyFromURLResponse extends BlobStartCopyFromURLResponse {} /** * Options to configure the {@link BlobClient.download} operation. @@ -737,7 +737,7 @@ export interface BlobSyncCopyFromURLOptions extends CommonOptions { sourceConditions?: ModifiedAccessConditions; /** * Specify the md5 calculated for the range of bytes that must be read from the copy source. - * + * * @type {Uint8Array} * @memberof BlobSyncCopyFromURLOptions */ @@ -3597,7 +3597,7 @@ export class BlockBlobClient extends BlobClient { if (numBlocks > BLOCK_BLOB_MAX_BLOCKS) { throw new RangeError( `The buffer's size is too big or the BlockSize is too small;` + - `the number of blocks must be <= ${BLOCK_BLOB_MAX_BLOCKS}` + `the number of blocks must be <= ${BLOCK_BLOB_MAX_BLOCKS}` ); } @@ -3855,7 +3855,7 @@ export class BlockBlobClient extends BlobClient { if (numBlocks > BLOCK_BLOB_MAX_BLOCKS) { throw new RangeError( `The buffer's size is too big or the BlockSize is too small;` + - `the number of blocks must be <= ${BLOCK_BLOB_MAX_BLOCKS}` + `the number of blocks must be <= ${BLOCK_BLOB_MAX_BLOCKS}` ); } @@ -4746,16 +4746,16 @@ export class PageBlobClient extends BlobClient { } /** - * Gets the collection of page ranges that differ between a specified snapshot and this page blob for managed disks. - * @see https://docs.microsoft.com/rest/api/storageservices/get-page-ranges - * - * @param {number} offset Starting byte position of the page blob - * @param {number} count Number of bytes to get ranges diff. - * @param {string} prevSnapshotUrl URL of snapshot to retrive the difference. - * @param {PageBlobGetPageRangesDiffOptions} [options] Options to the Page Blob Get Page Ranges Diff operation. - * @returns {Promise} Response data for the Page Blob Get Page Range Diff operation. - * @memberof PageBlobClient - */ + * Gets the collection of page ranges that differ between a specified snapshot and this page blob for managed disks. + * @see https://docs.microsoft.com/rest/api/storageservices/get-page-ranges + * + * @param {number} offset Starting byte position of the page blob + * @param {number} count Number of bytes to get ranges diff. + * @param {string} prevSnapshotUrl URL of snapshot to retrive the difference. + * @param {PageBlobGetPageRangesDiffOptions} [options] Options to the Page Blob Get Page Ranges Diff operation. + * @returns {Promise} Response data for the Page Blob Get Page Range Diff operation. + * @memberof PageBlobClient + */ public async getPageRangesDiffForManagedDisks( offset: number, count: number, @@ -5263,7 +5263,7 @@ export interface ContainerCreateOptions extends CommonOptions { access?: PublicAccessType; /** * Container encryption scope info. - * + * * @type {ContainerEncryptionScope} * @memberof ContainerCreateOptions */ @@ -5423,24 +5423,24 @@ export interface SignedIdentifier { export declare type ContainerGetAccessPolicyResponse = { signedIdentifiers: SignedIdentifier[]; } & ContainerGetAccessPolicyHeaders & { - /** - * The underlying HTTP response. - */ - _response: HttpResponse & { /** - * The parsed HTTP response headers. - */ - parsedHeaders: ContainerGetAccessPolicyHeaders; - /** - * The response body as text (string format) + * The underlying HTTP response. */ - bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: SignedIdentifierModel[]; + _response: HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: ContainerGetAccessPolicyHeaders; + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SignedIdentifierModel[]; + }; }; -}; /** * Options to configure {@link ContainerClient.setAccessPolicy} operation. @@ -6528,7 +6528,7 @@ export class ContainerClient extends StorageClient { * * // Gets next marker * let marker = response.continuationToken; - * + * * // Passing next marker as continuationToken * * iterator = containerClient.listBlobsFlat().byPage({ continuationToken: marker, maxPageSize: 10 }); diff --git a/sdk/storage/storage-blob/src/StorageClient.ts b/sdk/storage/storage-blob/src/StorageClient.ts index e04d8d9d73e2..0bd145e73add 100644 --- a/sdk/storage/storage-blob/src/StorageClient.ts +++ b/sdk/storage/storage-blob/src/StorageClient.ts @@ -7,7 +7,7 @@ import { escapeURLPath, getURLScheme, iEqual, getAccountNameFromUrl } from "./ut import { AnonymousCredential } from "./credentials/AnonymousCredential"; import { StorageSharedKeyCredential } from "./credentials/StorageSharedKeyCredential"; import { TokenCredential, isTokenCredential, isNode } from "@azure/core-http"; -import { SpanOptions } from "@opentelemetry/types"; +import { SpanOptions } from "@opentelemetry/api"; /** * An interface for options common to every remote operation. diff --git a/sdk/storage/storage-blob/src/utils/tracing.ts b/sdk/storage/storage-blob/src/utils/tracing.ts index a30b8644ec41..d2c5bfda0f86 100644 --- a/sdk/storage/storage-blob/src/utils/tracing.ts +++ b/sdk/storage/storage-blob/src/utils/tracing.ts @@ -2,7 +2,7 @@ // Licensed under the MIT License. import { getTracer } from "@azure/core-tracing"; -import { Span, SpanOptions, SpanKind } from "@opentelemetry/types"; +import { Span, SpanOptions, SpanKind } from "@opentelemetry/api"; import { OperationTracingOptions } from "../StorageClient"; /** diff --git a/sdk/storage/storage-file-datalake/package.json b/sdk/storage/storage-file-datalake/package.json index c3be4d12fec2..75c09fbd8263 100644 --- a/sdk/storage/storage-file-datalake/package.json +++ b/sdk/storage/storage-file-datalake/package.json @@ -107,7 +107,7 @@ "@azure/identity": "1.1.0-preview1", "@azure/test-utils-recorder": "^1.0.0", "@microsoft/api-extractor": "^7.5.4", - "@opentelemetry/types": "^0.2.0", + "@opentelemetry/api": "^0.5.1", "@rollup/plugin-commonjs": "^11.0.1", "@rollup/plugin-multi-entry": "^3.0.0", "@rollup/plugin-node-resolve": "^7.0.0", diff --git a/sdk/storage/storage-file-datalake/rollup.base.config.js b/sdk/storage/storage-file-datalake/rollup.base.config.js index e16bdbe2206a..e48e830a3968 100644 --- a/sdk/storage/storage-file-datalake/rollup.base.config.js +++ b/sdk/storage/storage-file-datalake/rollup.base.config.js @@ -65,7 +65,7 @@ export function nodeConfig(test = false) { "notDeepEqual", "notDeepStrictEqual" ], - "@opentelemetry/types": ["CanonicalCode", "SpanKind", "TraceFlags"] + "@opentelemetry/api": ["CanonicalCode", "SpanKind", "TraceFlags"] } }) ], @@ -79,7 +79,11 @@ export function nodeConfig(test = false) { if (test) { // entry point is every test file - baseConfig.input = ["dist-esm/test/*.spec.js", "dist-esm/test/node/*.spec.js", "dist-esm/src/index.js"]; + baseConfig.input = [ + "dist-esm/test/*.spec.js", + "dist-esm/test/node/*.spec.js", + "dist-esm/src/index.js" + ]; baseConfig.plugins.unshift(multiEntry()); // different output file @@ -157,7 +161,7 @@ export function browserConfig(test = false) { "notDeepEqual", "notDeepStrictEqual" ], - "@opentelemetry/types": ["CanonicalCode", "SpanKind", "TraceFlags"] + "@opentelemetry/api": ["CanonicalCode", "SpanKind", "TraceFlags"] } }) ], diff --git a/sdk/storage/storage-file-datalake/src/DataLakeFileSystemClient.ts b/sdk/storage/storage-file-datalake/src/DataLakeFileSystemClient.ts index 9ba35d8d5798..ea06d5be6eb0 100644 --- a/sdk/storage/storage-file-datalake/src/DataLakeFileSystemClient.ts +++ b/sdk/storage/storage-file-datalake/src/DataLakeFileSystemClient.ts @@ -3,7 +3,7 @@ import { TokenCredential } from "@azure/core-http"; import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; import { ContainerClient } from "@azure/storage-blob"; -import { CanonicalCode } from "@opentelemetry/types"; +import { CanonicalCode } from "@opentelemetry/api"; import { AnonymousCredential } from "./credentials/AnonymousCredential"; import { StorageSharedKeyCredential } from "./credentials/StorageSharedKeyCredential"; @@ -215,11 +215,15 @@ export class DataLakeFileSystemClient extends StorageClient { * @memberof DataLakeFileSystemClient */ public async exists(options: FileSystemExistsOptions = {}): Promise { - const { span, spanOptions } = createSpan("DataLakeFileSystemClient-exists", options.tracingOptions); + const { span, spanOptions } = createSpan( + "DataLakeFileSystemClient-exists", + options.tracingOptions + ); try { - return await this.blobContainerClient.exists( - { ...options, tracingOptions: { ...options!.tracingOptions, spanOptions } } - ); + return await this.blobContainerClient.exists({ + ...options, + tracingOptions: { ...options!.tracingOptions, spanOptions } + }); } catch (e) { span.setStatus({ code: CanonicalCode.UNKNOWN, diff --git a/sdk/storage/storage-file-datalake/src/DataLakeLeaseClient.ts b/sdk/storage/storage-file-datalake/src/DataLakeLeaseClient.ts index c9f3cf44ac38..4ed47da0a4f2 100644 --- a/sdk/storage/storage-file-datalake/src/DataLakeLeaseClient.ts +++ b/sdk/storage/storage-file-datalake/src/DataLakeLeaseClient.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. import { BlobLeaseClient } from "@azure/storage-blob"; -import { CanonicalCode } from "@opentelemetry/types"; +import { CanonicalCode } from "@opentelemetry/api"; import { Lease, LeaseOperationOptions, LeaseOperationResponse } from "./models"; import { createSpan } from "./utils/tracing"; diff --git a/sdk/storage/storage-file-datalake/src/DataLakeServiceClient.ts b/sdk/storage/storage-file-datalake/src/DataLakeServiceClient.ts index dfe7b0603315..11511d4d0013 100644 --- a/sdk/storage/storage-file-datalake/src/DataLakeServiceClient.ts +++ b/sdk/storage/storage-file-datalake/src/DataLakeServiceClient.ts @@ -21,7 +21,7 @@ import { appendToURLPath } from "./utils/utils.common"; import { createSpan } from "./utils/tracing"; import { toFileSystemPagedAsyncIterableIterator } from "./transforms"; import { ServiceGetUserDelegationKeyOptions, ServiceGetUserDelegationKeyResponse } from "./models"; -import { CanonicalCode } from "@opentelemetry/types"; +import { CanonicalCode } from "@opentelemetry/api"; /** * DataLakeServiceClient allows you to manipulate Azure diff --git a/sdk/storage/storage-file-datalake/src/StorageClient.ts b/sdk/storage/storage-file-datalake/src/StorageClient.ts index 4c39c430ed3a..7a0e0d93b1c7 100644 --- a/sdk/storage/storage-file-datalake/src/StorageClient.ts +++ b/sdk/storage/storage-file-datalake/src/StorageClient.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. import { isNode, isTokenCredential, TokenCredential } from "@azure/core-http"; -import { SpanOptions } from "@opentelemetry/types"; +import { SpanOptions } from "@opentelemetry/api"; import { AnonymousCredential } from "./credentials/AnonymousCredential"; import { StorageSharedKeyCredential } from "./credentials/StorageSharedKeyCredential"; @@ -10,7 +10,6 @@ import { Pipeline } from "./Pipeline"; import { toBlobEndpointUrl, toDfsEndpointUrl } from "./transforms"; import { escapeURLPath, getAccountNameFromUrl, getURLScheme, iEqual } from "./utils/utils.common"; - /** * An interface for options common to every remote operation. */ diff --git a/sdk/storage/storage-file-datalake/src/clients.ts b/sdk/storage/storage-file-datalake/src/clients.ts index f39ccf748cfe..3d15bb942803 100644 --- a/sdk/storage/storage-file-datalake/src/clients.ts +++ b/sdk/storage/storage-file-datalake/src/clients.ts @@ -2,7 +2,7 @@ // Licensed under the MIT License. import { HttpRequestBody, isNode, TokenCredential } from "@azure/core-http"; import { BlobClient } from "@azure/storage-blob"; -import { CanonicalCode } from "@opentelemetry/types"; +import { CanonicalCode } from "@opentelemetry/api"; import { AnonymousCredential } from "./credentials/AnonymousCredential"; import { StorageSharedKeyCredential } from "./credentials/StorageSharedKeyCredential"; @@ -66,7 +66,7 @@ import { FILE_UPLOAD_MAX_CHUNK_SIZE, FILE_MAX_SIZE_BYTES, FILE_UPLOAD_DEFAULT_CHUNK_SIZE, - BLOCK_BLOB_MAX_BLOCKS, + BLOCK_BLOB_MAX_BLOCKS } from "./utils/constants"; import { BufferScheduler } from "./utils/BufferScheduler"; import { Batch } from "./utils/Batch"; @@ -257,7 +257,10 @@ export class DataLakePathClient extends StorageClient { public async exists(options: PathExistsOptions = {}): Promise { const { span, spanOptions } = createSpan("DataLakeFileClient-exists", options.tracingOptions); try { - return await this.blobClient.exists({ ...options, tracingOptions: { ...options!.tracingOptions, spanOptions } }); + return await this.blobClient.exists({ + ...options, + tracingOptions: { ...options!.tracingOptions, spanOptions } + }); } catch (e) { span.setStatus({ code: CanonicalCode.UNKNOWN, @@ -1049,7 +1052,6 @@ export class DataLakeFileClient extends DataLakePathClient { } } - // high level functions /** @@ -1066,16 +1068,20 @@ export class DataLakeFileClient extends DataLakePathClient { filePath: string, options: FileParallelUploadOptions = {} ): Promise { - const { span, spanOptions } = createSpan("DataLakeFileClient-uploadFile", options.tracingOptions); + const { span, spanOptions } = createSpan( + "DataLakeFileClient-uploadFile", + options.tracingOptions + ); try { const size = (await fsStat(filePath)).size; return await this.uploadData( (offset: number, size: number) => { - return () => fs.createReadStream(filePath, { - autoClose: true, - end: offset + size - 1, - start: offset - }); + return () => + fs.createReadStream(filePath, { + autoClose: true, + end: offset + size - 1, + start: offset + }); }, size, { ...options, tracingOptions: { ...options!.tracingOptions, spanOptions } } @@ -1108,7 +1114,7 @@ export class DataLakeFileClient extends DataLakePathClient { if (isNode && data instanceof Buffer) { return this.uploadData( (offset: number, size: number): Buffer => { - return data.slice(offset, offset + size) + return data.slice(offset, offset + size); }, data.length, { ...options, tracingOptions: { ...options!.tracingOptions, spanOptions } } @@ -1135,11 +1141,17 @@ export class DataLakeFileClient extends DataLakePathClient { } private async uploadData( - contentFactory: ((offset: number, size: number) => Buffer) | ((offset: number, size: number) => Blob) | ((offset: number, size: number) => (() => NodeJS.ReadableStream)), + contentFactory: + | ((offset: number, size: number) => Buffer) + | ((offset: number, size: number) => Blob) + | ((offset: number, size: number) => () => NodeJS.ReadableStream), size: number, options: FileParallelUploadOptions = {} ): Promise { - const { span, spanOptions } = createSpan("DataLakeFileClient-uploadData", options.tracingOptions); + const { span, spanOptions } = createSpan( + "DataLakeFileClient-uploadData", + options.tracingOptions + ); try { if (size > FILE_MAX_SIZE_BYTES) { throw new RangeError(`size must be <= ${FILE_MAX_SIZE_BYTES}.`); @@ -1172,9 +1184,7 @@ export class DataLakeFileClient extends DataLakePathClient { } } if (options.chunkSize < 1 || options.chunkSize > FILE_UPLOAD_MAX_CHUNK_SIZE) { - throw new RangeError( - `chunkSize option must be >= 1 and <= ${FILE_UPLOAD_MAX_CHUNK_SIZE}` - ); + throw new RangeError(`chunkSize option must be >= 1 and <= ${FILE_UPLOAD_MAX_CHUNK_SIZE}`); } if (!options.maxConcurrency) { @@ -1187,7 +1197,10 @@ export class DataLakeFileClient extends DataLakePathClient { if (!options.singleUploadThreshold) { options.singleUploadThreshold = FILE_MAX_SINGLE_UPLOAD_THRESHOLD; } - if (options.singleUploadThreshold < 1 || options.singleUploadThreshold > FILE_MAX_SINGLE_UPLOAD_THRESHOLD) { + if ( + options.singleUploadThreshold < 1 || + options.singleUploadThreshold > FILE_MAX_SINGLE_UPLOAD_THRESHOLD + ) { throw new RangeError( `singleUploadThreshold option must be >= 1 and <= ${FILE_MAX_SINGLE_UPLOAD_THRESHOLD}` ); @@ -1208,14 +1221,14 @@ export class DataLakeFileClient extends DataLakePathClient { close: options.close, pathHttpHeaders: options.pathHttpHeaders, tracingOptions: { ...options!.tracingOptions, spanOptions } - }) + }); } const numBlocks: number = Math.floor((size - 1) / options.chunkSize) + 1; if (numBlocks > BLOCK_BLOB_MAX_BLOCKS) { throw new RangeError( `The data's size is too big or the chunkSize is too small;` + - `the number of chunks must be <= ${BLOCK_BLOB_MAX_BLOCKS}` + `the number of chunks must be <= ${BLOCK_BLOB_MAX_BLOCKS}` ); } @@ -1280,9 +1293,12 @@ export class DataLakeFileClient extends DataLakePathClient { */ public async uploadStream( stream: Readable, - options: FileParallelUploadOptions = {}, + options: FileParallelUploadOptions = {} ): Promise { - const { span, spanOptions } = createSpan("DataLakeFileClient-uploadStream", options.tracingOptions); + const { span, spanOptions } = createSpan( + "DataLakeFileClient-uploadStream", + options.tracingOptions + ); try { // Create the file await this.create({ @@ -1302,9 +1318,7 @@ export class DataLakeFileClient extends DataLakePathClient { options.chunkSize = FILE_UPLOAD_DEFAULT_CHUNK_SIZE; } if (options.chunkSize < 1 || options.chunkSize > FILE_UPLOAD_MAX_CHUNK_SIZE) { - throw new RangeError( - `chunkSize option must be >= 1 and <= ${FILE_UPLOAD_MAX_CHUNK_SIZE}` - ); + throw new RangeError(`chunkSize option must be >= 1 and <= ${FILE_UPLOAD_MAX_CHUNK_SIZE}`); } if (!options.maxConcurrency) { options.maxConcurrency = DEFAULT_HIGH_LEVEL_CONCURRENCY; @@ -1422,31 +1436,25 @@ export class DataLakeFileClient extends DataLakePathClient { count = typeof offsetOrCount === "number" ? offsetOrCount : 0; options = (countOrOptions as FileReadToBufferOptions) || {}; } - const { span, spanOptions } = createSpan("DataLakeFileClient-readToBuffer", options.tracingOptions); + const { span, spanOptions } = createSpan( + "DataLakeFileClient-readToBuffer", + options.tracingOptions + ); try { if (buffer) { - return await this.blobClientInternal.downloadToBuffer( - buffer, - offset, - count, - { - ...options, - maxRetryRequestsPerBlock: options.maxRetryRequestsPerChunk, - blockSize: options.chunkSize, - tracingOptions: { ...options!.tracingOptions, spanOptions } - } - ); + return await this.blobClientInternal.downloadToBuffer(buffer, offset, count, { + ...options, + maxRetryRequestsPerBlock: options.maxRetryRequestsPerChunk, + blockSize: options.chunkSize, + tracingOptions: { ...options!.tracingOptions, spanOptions } + }); } else { - return await this.blobClientInternal.downloadToBuffer( - offset, - count, - { - ...options, - maxRetryRequestsPerBlock: options.maxRetryRequestsPerChunk, - blockSize: options.chunkSize, - tracingOptions: { ...options!.tracingOptions, spanOptions } - } - ); + return await this.blobClientInternal.downloadToBuffer(offset, count, { + ...options, + maxRetryRequestsPerBlock: options.maxRetryRequestsPerChunk, + blockSize: options.chunkSize, + tracingOptions: { ...options!.tracingOptions, spanOptions } + }); } } catch (e) { span.setStatus({ @@ -1482,14 +1490,15 @@ export class DataLakeFileClient extends DataLakePathClient { count?: number, options: FileReadOptions = {} ): Promise { - const { span, spanOptions } = createSpan("DataLakeFileClient-readToFile", options.tracingOptions); + const { span, spanOptions } = createSpan( + "DataLakeFileClient-readToFile", + options.tracingOptions + ); try { - return await this.blobClientInternal.downloadToFile( - filePath, - offset, - count, - { ...options, tracingOptions: { ...options!.tracingOptions, spanOptions } } - ); + return await this.blobClientInternal.downloadToFile(filePath, offset, count, { + ...options, + tracingOptions: { ...options!.tracingOptions, spanOptions } + }); } catch (e) { span.setStatus({ code: CanonicalCode.UNKNOWN, diff --git a/sdk/storage/storage-file-datalake/src/utils/tracing.ts b/sdk/storage/storage-file-datalake/src/utils/tracing.ts index 3ff20428b738..9384a9cca71f 100644 --- a/sdk/storage/storage-file-datalake/src/utils/tracing.ts +++ b/sdk/storage/storage-file-datalake/src/utils/tracing.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import { getTracer } from "@azure/core-tracing"; -import { Span, SpanKind, SpanOptions } from "@opentelemetry/types"; +import { Span, SpanKind, SpanOptions } from "@opentelemetry/api"; import { OperationTracingOptions } from "../StorageClient"; diff --git a/sdk/storage/storage-file-share/package.json b/sdk/storage/storage-file-share/package.json index 19ff9bd4635e..030a709bc2ea 100644 --- a/sdk/storage/storage-file-share/package.json +++ b/sdk/storage/storage-file-share/package.json @@ -106,7 +106,7 @@ "@azure/core-paging": "^1.1.0", "@azure/core-tracing": "1.0.0-preview.7", "@azure/logger": "^1.0.0", - "@opentelemetry/types": "^0.2.0", + "@opentelemetry/api": "^0.5.1", "events": "^3.0.0", "tslib": "^1.10.0" }, diff --git a/sdk/storage/storage-file-share/rollup.base.config.js b/sdk/storage/storage-file-share/rollup.base.config.js index 93a65567bd0f..8e99b91c4396 100644 --- a/sdk/storage/storage-file-share/rollup.base.config.js +++ b/sdk/storage/storage-file-share/rollup.base.config.js @@ -64,7 +64,11 @@ export function nodeConfig(test = false) { if (test) { // entry point is every test file - baseConfig.input = ["dist-esm/test/*.spec.js", "dist-esm/test/node/*.spec.js", "dist-esm/src/index.js"]; + baseConfig.input = [ + "dist-esm/test/*.spec.js", + "dist-esm/test/node/*.spec.js", + "dist-esm/src/index.js" + ]; baseConfig.plugins.unshift(multiEntry()); // different output file @@ -143,7 +147,7 @@ export function browserConfig(test = false) { "notEqual", "strictEqual" ], - "@opentelemetry/types": ["CanonicalCode", "SpanKind", "TraceFlags"] + "@opentelemetry/api": ["CanonicalCode", "SpanKind", "TraceFlags"] } }) ], diff --git a/sdk/storage/storage-file-share/src/ShareClient.ts b/sdk/storage/storage-file-share/src/ShareClient.ts index 5fe48e178bca..80fe5d1eb1bf 100644 --- a/sdk/storage/storage-file-share/src/ShareClient.ts +++ b/sdk/storage/storage-file-share/src/ShareClient.ts @@ -2,7 +2,7 @@ // Licensed under the MIT License. import { HttpResponse, isNode } from "@azure/core-http"; -import { CanonicalCode } from "@opentelemetry/types"; +import { CanonicalCode } from "@opentelemetry/api"; import { AbortSignalLike } from "@azure/abort-controller"; import { DeleteSnapshotsOptionType, diff --git a/sdk/storage/storage-file-share/src/ShareDirectoryClient.ts b/sdk/storage/storage-file-share/src/ShareDirectoryClient.ts index 5896dc7bfb9f..775caa5d270d 100644 --- a/sdk/storage/storage-file-share/src/ShareDirectoryClient.ts +++ b/sdk/storage/storage-file-share/src/ShareDirectoryClient.ts @@ -39,7 +39,7 @@ import { Credential } from "./credentials/Credential"; import { AnonymousCredential } from "./credentials/AnonymousCredential"; import { FileSystemAttributes } from "./FileSystemAttributes"; import { createSpan } from "./utils/tracing"; -import { CanonicalCode } from "@opentelemetry/types"; +import { CanonicalCode } from "@opentelemetry/api"; import { HttpResponse } from "@azure/core-http"; /** @@ -68,7 +68,7 @@ export interface DirectoryCreateOptions extends FileAndDirectoryCreateCommonOpti export interface DirectoryProperties extends FileAndDirectorySetPropertiesCommonOptions, - CommonOptions { + CommonOptions { /** * An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation. * For example, use the @azure/abort-controller to create an `AbortSignal`. diff --git a/sdk/storage/storage-file-share/src/ShareFileClient.ts b/sdk/storage/storage-file-share/src/ShareFileClient.ts index 8076013bf34d..4f8a1d896f2d 100644 --- a/sdk/storage/storage-file-share/src/ShareFileClient.ts +++ b/sdk/storage/storage-file-share/src/ShareFileClient.ts @@ -3,7 +3,7 @@ import * as fs from "fs"; import { HttpRequestBody, HttpResponse, isNode, TransferProgressEvent } from "@azure/core-http"; -import { CanonicalCode } from "@opentelemetry/types"; +import { CanonicalCode } from "@opentelemetry/api"; import { AbortSignalLike } from "@azure/abort-controller"; import { FileDownloadResponse } from "./FileDownloadResponse"; import { @@ -96,7 +96,7 @@ export interface FileCreateOptions extends FileAndDirectoryCreateCommonOptions, metadata?: Metadata; /** * Lease access conditions. - * + * * @type {LeaseAccessConditions} * @memberof FileCreateOptions */ @@ -121,14 +121,14 @@ export interface FileProperties extends FileAndDirectorySetPropertiesCommonOptio fileHttpHeaders?: FileHttpHeaders; /** * Lease access conditions. - * + * * @type {LeaseAccessConditions} * @memberof FileProperties */ leaseAccessConditions?: LeaseAccessConditions; } -export interface SetPropertiesResponse extends FileSetHTTPHeadersResponse { } +export interface SetPropertiesResponse extends FileSetHTTPHeadersResponse {} /** * Options to configure the {@link ShareFileClient.delete} operation. @@ -147,7 +147,7 @@ export interface FileDeleteOptions extends CommonOptions { abortSignal?: AbortSignalLike; /** * Lease access conditions. - * + * * @type {LeaseAccessConditions} * @memberof FileDeleteOptions */ @@ -208,7 +208,7 @@ export interface FileDownloadOptions extends CommonOptions { onProgress?: (progress: TransferProgressEvent) => void; /** * Lease access conditions. - * + * * @type {LeaseAccessConditions} * @memberof FileDownloadOptions */ @@ -251,7 +251,7 @@ export interface FileUploadRangeOptions extends CommonOptions { onProgress?: (progress: TransferProgressEvent) => void; /** * Lease access conditions. - * + * * @type {LeaseAccessConditions} * @memberof FileUploadRangeOptions */ @@ -289,7 +289,7 @@ export interface FileUploadRangeFromURLOptions extends CommonOptions { sourceConditions?: SourceModifiedAccessConditions; /** * Lease access conditions. - * + * * @type {LeaseAccessConditions} * @memberof FileUploadRangeFromURLOptions */ @@ -343,7 +343,7 @@ export interface FileGetRangeListOptions extends CommonOptions { range?: Range; /** * Lease access conditions. - * + * * @type {LeaseAccessConditions} * @memberof FileGetRangeListOptions */ @@ -367,7 +367,7 @@ export interface FileGetPropertiesOptions extends CommonOptions { abortSignal?: AbortSignalLike; /** * Lease access conditions. - * + * * @type {LeaseAccessConditions} * @memberof FileGetPropertiesOptions */ @@ -428,7 +428,7 @@ export interface FileStartCopyOptions extends CommonOptions { metadata?: Metadata; /** * Lease access conditions. - * + * * @type {LeaseAccessConditions} * @memberof FileStartCopyOptions */ @@ -439,7 +439,7 @@ export interface FileStartCopyOptions extends CommonOptions { * used. Default value: Inherit. If SDDL is specified as input, it must have owner, group and * dacl. Note: Only one of the x-ms-file-permission or x-ms-file-permission-key should be * specified. - * + * * @type {string} * @memberof FileStartCopyOptions */ @@ -447,14 +447,14 @@ export interface FileStartCopyOptions extends CommonOptions { /** * Key of the permission to be set for the directory/file. Note: Only one of the * x-ms-file-permission or x-ms-file-permission-key should be specified. - * + * * @type {string} * @memberof FileStartCopyOptions */ filePermissionKey?: string; /** * SMB info. - * + * * @type {CopyFileSmbInfo} * @memberof FileStartCopyOptions */ @@ -478,7 +478,7 @@ export interface FileSetMetadataOptions extends CommonOptions { abortSignal?: AbortSignalLike; /** * Lease access conditions. - * + * * @type {LeaseAccessConditions} * @memberof FileSetMetadataOptions */ @@ -493,7 +493,7 @@ export interface FileSetMetadataOptions extends CommonOptions { */ export interface FileSetHttpHeadersOptions extends FileAndDirectorySetPropertiesCommonOptions, - CommonOptions { + CommonOptions { /** * An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation. * For example, use the @azure/abort-controller to create an `AbortSignal`. @@ -504,7 +504,7 @@ export interface FileSetHttpHeadersOptions abortSignal?: AbortSignalLike; /** * Lease access conditions. - * + * * @type {LeaseAccessConditions} * @memberof FileSetHttpHeadersOptions */ @@ -528,7 +528,7 @@ export interface FileAbortCopyFromURLOptions extends CommonOptions { abortSignal?: AbortSignalLike; /** * Lease access conditions. - * + * * @type {LeaseAccessConditions} * @memberof FileAbortCopyFromURLOptions */ @@ -543,7 +543,7 @@ export interface FileAbortCopyFromURLOptions extends CommonOptions { */ export interface FileResizeOptions extends FileAndDirectorySetPropertiesCommonOptions, - CommonOptions { + CommonOptions { /** * An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation. * For example, use the @azure/abort-controller to create an `AbortSignal`. @@ -554,7 +554,7 @@ export interface FileResizeOptions abortSignal?: AbortSignalLike; /** * Lease access conditions. - * + * * @type {LeaseAccessConditions} * @memberof FileResizeOptions */ @@ -578,7 +578,7 @@ export interface FileClearRangeOptions extends CommonOptions { abortSignal?: AbortSignalLike; /** * Lease access conditions. - * + * * @type {LeaseAccessConditions} * @memberof FileClearRangeOptions */ @@ -728,7 +728,7 @@ export interface FileUploadStreamOptions extends CommonOptions { onProgress?: (progress: TransferProgressEvent) => void; /** * Lease access conditions. - * + * * @type {LeaseAccessConditions} * @memberof FileUploadStreamOptions */ @@ -796,7 +796,7 @@ export interface FileParallelUploadOptions extends CommonOptions { concurrency?: number; /** * Lease access conditions. - * + * * @type {LeaseAccessConditions} * @memberof FileParallelUploadOptions */ @@ -864,7 +864,7 @@ export interface FileDownloadToBufferOptions extends CommonOptions { concurrency?: number; /** * Lease access conditions. - * + * * @type {LeaseAccessConditions} * @memberof FileDownloadToBufferOptions */ @@ -2183,8 +2183,8 @@ export class ShareFileClient extends StorageClient { } catch (error) { throw new Error( `Unable to allocate a buffer of size: ${count} bytes. Please try passing your own Buffer to ` + - 'the "downloadToBuffer method or try using other moethods like "download" or "downloadToFile".' + - `\t ${error.message}` + 'the "downloadToBuffer method or try using other moethods like "download" or "downloadToFile".' + + `\t ${error.message}` ); } } @@ -2298,7 +2298,7 @@ export class ShareFileClient extends StorageClient { if (transferProgress + buffer.length > size) { throw new RangeError( `Stream size is larger than file size ${size} bytes, uploading failed. ` + - `Please make sure stream length is less or equal than file size.` + `Please make sure stream length is less or equal than file size.` ); } @@ -2593,7 +2593,7 @@ export class ShareFileClient extends StorageClient { return { closedHandlesCount: handlesClosed, - closeFailureCount: numberOfHandlesFailedToClose, + closeFailureCount: numberOfHandlesFailedToClose }; } catch (e) { span.setStatus({ @@ -2833,7 +2833,10 @@ export class ShareLeaseClient { proposedLeaseId: string, options: LeaseOperationOptions = {} ): Promise { - const { span, spanOptions } = createSpan("ShareLeaseClient-changeLease", options.tracingOptions); + const { span, spanOptions } = createSpan( + "ShareLeaseClient-changeLease", + options.tracingOptions + ); try { const response = await this._file.changeLease(this._leaseId, { proposedLeaseId, diff --git a/sdk/storage/storage-file-share/src/ShareServiceClient.ts b/sdk/storage/storage-file-share/src/ShareServiceClient.ts index a978373b0dbf..466e3d8c8b05 100644 --- a/sdk/storage/storage-file-share/src/ShareServiceClient.ts +++ b/sdk/storage/storage-file-share/src/ShareServiceClient.ts @@ -23,7 +23,7 @@ import { AnonymousCredential } from "./credentials/AnonymousCredential"; import "@azure/core-paging"; import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; import { isNode } from "@azure/core-http"; -import { CanonicalCode } from "@opentelemetry/types"; +import { CanonicalCode } from "@opentelemetry/api"; import { createSpan } from "./utils/tracing"; /** diff --git a/sdk/storage/storage-file-share/src/StorageClient.ts b/sdk/storage/storage-file-share/src/StorageClient.ts index 8b6b2ac7ff39..aecdc0f8c448 100644 --- a/sdk/storage/storage-file-share/src/StorageClient.ts +++ b/sdk/storage/storage-file-share/src/StorageClient.ts @@ -5,7 +5,7 @@ import { StorageClientContext } from "./generated/src/storageClientContext"; import { Pipeline } from "./Pipeline"; import { escapeURLPath, getAccountNameFromUrl } from "./utils/utils.common"; import { SERVICE_VERSION } from "./utils/constants"; -import { SpanOptions } from "@opentelemetry/types"; +import { SpanOptions } from "@opentelemetry/api"; /** * An interface for options common to every remote operation. diff --git a/sdk/storage/storage-file-share/src/utils/tracing.ts b/sdk/storage/storage-file-share/src/utils/tracing.ts index c0c4992345ef..0a3c0a555279 100644 --- a/sdk/storage/storage-file-share/src/utils/tracing.ts +++ b/sdk/storage/storage-file-share/src/utils/tracing.ts @@ -2,7 +2,7 @@ // Licensed under the MIT License. import { getTracer } from "@azure/core-tracing"; -import { Span, SpanOptions, SpanKind } from "@opentelemetry/types"; +import { Span, SpanOptions, SpanKind } from "@opentelemetry/api"; import { OperationTracingOptions } from "../StorageClient"; /** diff --git a/sdk/storage/storage-queue/package.json b/sdk/storage/storage-queue/package.json index 2a273ba87154..bd09d5636681 100644 --- a/sdk/storage/storage-queue/package.json +++ b/sdk/storage/storage-queue/package.json @@ -103,7 +103,7 @@ "@azure/core-paging": "^1.1.0", "@azure/core-tracing": "1.0.0-preview.7", "@azure/logger": "^1.0.0", - "@opentelemetry/types": "^0.2.0", + "@opentelemetry/api": "^0.5.1", "tslib": "^1.10.0" }, "devDependencies": { diff --git a/sdk/storage/storage-queue/rollup.base.config.js b/sdk/storage/storage-queue/rollup.base.config.js index 89e85baa620d..c4289c1b63ff 100644 --- a/sdk/storage/storage-queue/rollup.base.config.js +++ b/sdk/storage/storage-queue/rollup.base.config.js @@ -56,7 +56,11 @@ export function nodeConfig(test = false) { if (test) { // entry point is every test file - baseConfig.input = ["dist-esm/test/*.spec.js", "dist-esm/test/node/*.spec.js", "dist-esm/src/index.js"]; + baseConfig.input = [ + "dist-esm/test/*.spec.js", + "dist-esm/test/node/*.spec.js", + "dist-esm/src/index.js" + ]; baseConfig.plugins.unshift(multiEntry()); // different output file @@ -115,7 +119,7 @@ export function browserConfig(test = false) { cjs({ namedExports: { assert: ["ok", "deepEqual", "equal", "fail", "deepStrictEqual", "strictEqual"], - "@opentelemetry/types": ["CanonicalCode", "SpanKind", "TraceFlags"] + "@opentelemetry/api": ["CanonicalCode", "SpanKind", "TraceFlags"] } }) ], diff --git a/sdk/storage/storage-queue/src/QueueClient.ts b/sdk/storage/storage-queue/src/QueueClient.ts index 0d54b0622495..8138d3564eec 100644 --- a/sdk/storage/storage-queue/src/QueueClient.ts +++ b/sdk/storage/storage-queue/src/QueueClient.ts @@ -9,7 +9,7 @@ import { getDefaultProxySettings, URLBuilder } from "@azure/core-http"; -import { CanonicalCode } from "@opentelemetry/types"; +import { CanonicalCode } from "@opentelemetry/api"; import { EnqueuedMessage, DequeuedMessageItem, @@ -193,24 +193,24 @@ export interface SignedIdentifier { export declare type QueueGetAccessPolicyResponse = { signedIdentifiers: SignedIdentifier[]; } & QueueGetAccessPolicyHeaders & { - /** - * The underlying HTTP response. - */ - _response: HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: QueueGetAccessPolicyHeaders; - /** - * The response body as text (string format) - */ - bodyAsText: string; /** - * The response body as parsed JSON or XML + * The underlying HTTP response. */ - parsedBody: SignedIdentifierModel[]; + _response: HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: QueueGetAccessPolicyHeaders; + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: SignedIdentifierModel[]; + }; }; -}; /** * Options to configure {@link QueueClient.clearMessages} operation @@ -236,7 +236,7 @@ export interface QueueClearMessagesOptions extends CommonOptions { * @interface QueueSendMessageOptions * @extends {MessagesEnqueueOptionalParams} */ -export interface QueueSendMessageOptions extends MessagesEnqueueOptionalParams, CommonOptions { } +export interface QueueSendMessageOptions extends MessagesEnqueueOptionalParams, CommonOptions {} /** * Options to configure {@link QueueClient.receiveMessages} operation @@ -245,7 +245,7 @@ export interface QueueSendMessageOptions extends MessagesEnqueueOptionalParams, * @interface QueueReceiveMessageOptions * @extends {MessagesDequeueOptionalParams} */ -export interface QueueReceiveMessageOptions extends MessagesDequeueOptionalParams, CommonOptions { } +export interface QueueReceiveMessageOptions extends MessagesDequeueOptionalParams, CommonOptions {} /** * Options to configure {@link QueueClient.peekMessages} operation @@ -254,7 +254,7 @@ export interface QueueReceiveMessageOptions extends MessagesDequeueOptionalParam * @interface QueuePeekMessagesOptions * @extends {MessagesPeekOptionalParams} */ -export interface QueuePeekMessagesOptions extends MessagesPeekOptionalParams, CommonOptions { } +export interface QueuePeekMessagesOptions extends MessagesPeekOptionalParams, CommonOptions {} /** * Contains the response data for the {@link QueueClient.sendMessage} operation. @@ -286,24 +286,24 @@ export declare type QueueSendMessageResponse = { */ nextVisibleOn: Date; } & MessagesEnqueueHeaders & { - /** - * The underlying HTTP response. - */ - _response: HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: MessagesEnqueueHeaders; - /** - * The response body as text (string format) - */ - bodyAsText: string; /** - * The response body as parsed JSON or XML + * The underlying HTTP response. */ - parsedBody: EnqueuedMessage[]; + _response: HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: MessagesEnqueueHeaders; + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: EnqueuedMessage[]; + }; }; -}; /** * The object returned in the `receivedMessageItems` array when calling {@link QueueClient.receiveMessages}. @@ -318,24 +318,24 @@ export declare type ReceivedMessageItem = DequeuedMessageItem; export declare type QueueReceiveMessageResponse = { receivedMessageItems: ReceivedMessageItem[]; } & MessagesDequeueHeaders & { - /** - * The underlying HTTP response. - */ - _response: HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: MessagesDequeueHeaders; - /** - * The response body as text (string format) - */ - bodyAsText: string; /** - * The response body as parsed JSON or XML + * The underlying HTTP response. */ - parsedBody: ReceivedMessageItem[]; + _response: HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: MessagesDequeueHeaders; + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: ReceivedMessageItem[]; + }; }; -}; /** * Contains the response data for the {@link QueueClient.peekMessages} operation. @@ -343,24 +343,24 @@ export declare type QueueReceiveMessageResponse = { export declare type QueuePeekMessagesResponse = { peekedMessageItems: PeekedMessageItem[]; } & MessagesPeekHeaders & { - /** - * The underlying HTTP response. - */ - _response: HttpResponse & { - /** - * The parsed HTTP response headers. - */ - parsedHeaders: MessagesPeekHeaders; - /** - * The response body as text (string format) - */ - bodyAsText: string; /** - * The response body as parsed JSON or XML + * The underlying HTTP response. */ - parsedBody: PeekedMessageItem[]; + _response: HttpResponse & { + /** + * The parsed HTTP response headers. + */ + parsedHeaders: MessagesPeekHeaders; + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PeekedMessageItem[]; + }; }; -}; /** * Options to configure the {@link QueueClient.deleteMessage} operation @@ -796,9 +796,13 @@ export class QueueClient extends StorageClient { for (const identifier of queueAcl || []) { acl.push({ accessPolicy: { - expiresOn: identifier.accessPolicy.expiresOn ? truncatedISO8061Date(identifier.accessPolicy.expiresOn) : undefined, + expiresOn: identifier.accessPolicy.expiresOn + ? truncatedISO8061Date(identifier.accessPolicy.expiresOn) + : undefined, permissions: identifier.accessPolicy.permissions, - startsOn: identifier.accessPolicy.startsOn ? truncatedISO8061Date(identifier.accessPolicy.startsOn) : undefined + startsOn: identifier.accessPolicy.startsOn + ? truncatedISO8061Date(identifier.accessPolicy.startsOn) + : undefined }, id: identifier.id }); diff --git a/sdk/storage/storage-queue/src/QueueServiceClient.ts b/sdk/storage/storage-queue/src/QueueServiceClient.ts index 231d5a9cda17..b51de84fa844 100644 --- a/sdk/storage/storage-queue/src/QueueServiceClient.ts +++ b/sdk/storage/storage-queue/src/QueueServiceClient.ts @@ -7,7 +7,7 @@ import { isNode, getDefaultProxySettings } from "@azure/core-http"; -import { CanonicalCode } from "@opentelemetry/types"; +import { CanonicalCode } from "@opentelemetry/api"; import { ListQueuesIncludeType, QueueCreateResponse, @@ -459,7 +459,7 @@ export class QueueServiceClient extends StorageClient { * let i = 1; * let iterator = queueServiceClient.listQueues().byPage({ maxPageSize: 2 }); * let item = (await iterator.next()).value; - * + * * // Prints 2 queue names * if (item.queueItems) { * for (const queueItem of item.queueItems) { @@ -469,7 +469,7 @@ export class QueueServiceClient extends StorageClient { * } * // Gets next marker * let marker = item.continuationToken; - * + * * // Passing next marker as continuationToken * iterator = queueServiceClient.listQueues().byPage({ continuationToken: marker, maxPageSize: 10 }); * item = (await iterator.next()).value; diff --git a/sdk/storage/storage-queue/src/StorageClient.ts b/sdk/storage/storage-queue/src/StorageClient.ts index c19414f71aff..2185ce16e33e 100644 --- a/sdk/storage/storage-queue/src/StorageClient.ts +++ b/sdk/storage/storage-queue/src/StorageClient.ts @@ -4,7 +4,7 @@ import { StorageClientContext } from "./generated/src/storageClientContext"; import { Pipeline } from "./Pipeline"; import { getAccountNameFromUrl, getStorageClientContext } from "./utils/utils.common"; -import { SpanOptions } from "@opentelemetry/types"; +import { SpanOptions } from "@opentelemetry/api"; /** * An interface for options common to every remote operation. diff --git a/sdk/storage/storage-queue/src/utils/tracing.ts b/sdk/storage/storage-queue/src/utils/tracing.ts index 6635b6228e1b..355c93824fc3 100644 --- a/sdk/storage/storage-queue/src/utils/tracing.ts +++ b/sdk/storage/storage-queue/src/utils/tracing.ts @@ -2,7 +2,7 @@ // Licensed under the MIT License. import { getTracer } from "@azure/core-tracing"; -import { Span, SpanOptions, SpanKind } from "@opentelemetry/types"; +import { Span, SpanOptions, SpanKind } from "@opentelemetry/api"; import { OperationTracingOptions } from "../StorageClient"; /** diff --git a/sdk/template/template/package.json b/sdk/template/template/package.json index 789140c1414f..e133b95dd6cd 100644 --- a/sdk/template/template/package.json +++ b/sdk/template/template/package.json @@ -62,7 +62,7 @@ "prettier": "@azure/eslint-plugin-azure-sdk/prettier.json", "dependencies": { "@azure/core-http": "^1.0.0", - "@opentelemetry/types": "^0.2.0", + "@opentelemetry/api": "^0.5.1", "events": "^3.0.0", "tslib": "^1.10.0" }, diff --git a/sdk/template/template/rollup.base.config.js b/sdk/template/template/rollup.base.config.js index f4a1c5082341..ca5953c7f2d4 100644 --- a/sdk/template/template/rollup.base.config.js +++ b/sdk/template/template/rollup.base.config.js @@ -84,7 +84,7 @@ export function browserConfig(test = false) { cjs({ namedExports: { events: ["EventEmitter"], - "@opentelemetry/types": ["CanonicalCode", "SpanKind", "TraceFlags"] + "@opentelemetry/api": ["CanonicalCode", "SpanKind", "TraceFlags"] } }), viz({ filename: "dist-browser/browser-stats.html", sourcemap: false }) diff --git a/sdk/test-utils/recorder/package.json b/sdk/test-utils/recorder/package.json index fbe0e7f4d868..618c5db58776 100644 --- a/sdk/test-utils/recorder/package.json +++ b/sdk/test-utils/recorder/package.json @@ -58,7 +58,7 @@ "private": true, "dependencies": { "@azure/core-http": "^1.0.0", - "@opentelemetry/types": "^0.2.0", + "@opentelemetry/api": "^0.5.1", "fs-extra": "^8.1.0", "nise": "^1.4.10", "nock": "^11.7.0", diff --git a/sdk/test-utils/recorder/rollup.base.config.js b/sdk/test-utils/recorder/rollup.base.config.js index 4f65e7fa6feb..637f9fa1b3f3 100644 --- a/sdk/test-utils/recorder/rollup.base.config.js +++ b/sdk/test-utils/recorder/rollup.base.config.js @@ -84,7 +84,7 @@ export function browserConfig(test = false) { // https://github.com/rollup/rollup-plugin-commonjs/issues/394 namedExports: { "events/": ["EventEmitter"], - "@opentelemetry/types": ["CanonicalCode", "SpanKind", "TraceFlags"] + "@opentelemetry/api": ["CanonicalCode", "SpanKind", "TraceFlags"] } }), viz({ filename: "dist-browser/browser-stats.html", sourcemap: false }) diff --git a/sdk/textanalytics/ai-text-analytics/package.json b/sdk/textanalytics/ai-text-analytics/package.json index 674ba1bc664b..139dbc467732 100644 --- a/sdk/textanalytics/ai-text-analytics/package.json +++ b/sdk/textanalytics/ai-text-analytics/package.json @@ -76,7 +76,7 @@ "@azure/core-http": "^1.0.0", "@azure/core-tracing": "1.0.0-preview.7", "@azure/logger": "^1.0.0", - "@opentelemetry/types": "^0.2.0", + "@opentelemetry/api": "^0.5.1", "tslib": "^1.10.0" }, "devDependencies": { diff --git a/sdk/textanalytics/ai-text-analytics/rollup.base.config.js b/sdk/textanalytics/ai-text-analytics/rollup.base.config.js index b2044aacef7e..fc485415f647 100644 --- a/sdk/textanalytics/ai-text-analytics/rollup.base.config.js +++ b/sdk/textanalytics/ai-text-analytics/rollup.base.config.js @@ -96,7 +96,7 @@ export function browserConfig(test = false, production = false) { namedExports: { chai: ["assert", "expect", "use"], events: ["EventEmitter"], - "@opentelemetry/types": ["CanonicalCode", "SpanKind", "TraceFlags"] + "@opentelemetry/api": ["CanonicalCode", "SpanKind", "TraceFlags"] } }), viz({ filename: "dist-browser/browser-stats.html", sourcemap: false }) diff --git a/sdk/textanalytics/ai-text-analytics/src/textAnalyticsClient.ts b/sdk/textanalytics/ai-text-analytics/src/textAnalyticsClient.ts index 1bc77160db34..7ca74f210622 100644 --- a/sdk/textanalytics/ai-text-analytics/src/textAnalyticsClient.ts +++ b/sdk/textanalytics/ai-text-analytics/src/textAnalyticsClient.ts @@ -45,7 +45,7 @@ import { } from "./recognizeLinkedEntitiesResultCollection"; import { TextAnalyticsApiKeyCredential } from "./textAnalyticsApiKeyCredential"; import { createSpan } from "./tracing"; -import { CanonicalCode } from "@opentelemetry/types"; +import { CanonicalCode } from "@opentelemetry/api"; const DEFAULT_COGNITIVE_SCOPE = "https://cognitiveservices.azure.com/.default"; diff --git a/sdk/textanalytics/ai-text-analytics/src/tracing.ts b/sdk/textanalytics/ai-text-analytics/src/tracing.ts index a65432b71003..5f87d2459f3b 100644 --- a/sdk/textanalytics/ai-text-analytics/src/tracing.ts +++ b/sdk/textanalytics/ai-text-analytics/src/tracing.ts @@ -2,7 +2,7 @@ // Licensed under the MIT license. import { getTracer } from "@azure/core-tracing"; -import { Span, SpanOptions, SpanKind } from "@opentelemetry/types"; +import { Span, SpanOptions, SpanKind } from "@opentelemetry/api"; import { OperationOptions } from "@azure/core-http"; type OperationTracingOptions = OperationOptions["tracingOptions"]; diff --git a/sdk/textanalytics/ai-text-analytics/test/tracing.spec.ts b/sdk/textanalytics/ai-text-analytics/test/tracing.spec.ts index e6a675b494f8..0d14ef90300f 100644 --- a/sdk/textanalytics/ai-text-analytics/test/tracing.spec.ts +++ b/sdk/textanalytics/ai-text-analytics/test/tracing.spec.ts @@ -5,7 +5,7 @@ import { assert } from "chai"; import * as sinon from "sinon"; import { createSpan } from "../src/tracing"; import { setTracer, TestTracer, TestSpan } from "@azure/core-tracing"; -import { SpanKind } from "@opentelemetry/types"; +import { SpanKind } from "@opentelemetry/api"; import { OperationOptions } from "../../../core/core-auth/types/core-auth"; describe("tracing.createSpan", () => { From 4b4533c2da0f7f697ec8182b22c19b50341b2699 Mon Sep 17 00:00:00 2001 From: Jeff Fisher Date: Tue, 24 Mar 2020 16:38:41 -0700 Subject: [PATCH 03/29] Bump version of core-tracing --- sdk/appconfiguration/app-configuration/package.json | 2 +- sdk/core/core-auth/package.json | 2 +- sdk/core/core-http/package.json | 2 +- sdk/eventhub/event-hubs/package.json | 2 +- sdk/identity/identity/package.json | 2 +- sdk/keyvault/keyvault-certificates/package.json | 2 +- sdk/keyvault/keyvault-keys/package.json | 2 +- sdk/keyvault/keyvault-secrets/package.json | 2 +- sdk/search/search/package.json | 2 +- sdk/storage/storage-blob/package.json | 2 +- sdk/storage/storage-file-datalake/package.json | 2 +- sdk/storage/storage-file-share/package.json | 2 +- sdk/storage/storage-queue/package.json | 2 +- sdk/textanalytics/ai-text-analytics/package.json | 2 +- 14 files changed, 14 insertions(+), 14 deletions(-) diff --git a/sdk/appconfiguration/app-configuration/package.json b/sdk/appconfiguration/app-configuration/package.json index b7c6ec20b95f..1d52ee819fb9 100644 --- a/sdk/appconfiguration/app-configuration/package.json +++ b/sdk/appconfiguration/app-configuration/package.json @@ -74,7 +74,7 @@ "@azure/core-asynciterator-polyfill": "^1.0.0", "@azure/core-http": "^1.0.0", "@azure/core-paging": "^1.1.0", - "@azure/core-tracing": "1.0.0-preview.7", + "@azure/core-tracing": "1.0.0-preview.8", "@opentelemetry/api": "^0.5.1", "tslib": "^1.10.0" }, diff --git a/sdk/core/core-auth/package.json b/sdk/core/core-auth/package.json index 8fe2bc6075e6..57877c958de8 100644 --- a/sdk/core/core-auth/package.json +++ b/sdk/core/core-auth/package.json @@ -56,7 +56,7 @@ "sideEffects": false, "dependencies": { "@azure/abort-controller": "^1.0.0", - "@azure/core-tracing": "1.0.0-preview.7", + "@azure/core-tracing": "1.0.0-preview.8", "@opentelemetry/api": "^0.5.1", "tslib": "^1.10.0" }, diff --git a/sdk/core/core-http/package.json b/sdk/core/core-http/package.json index cfb1c8df9a3f..762d0033866c 100644 --- a/sdk/core/core-http/package.json +++ b/sdk/core/core-http/package.json @@ -127,7 +127,7 @@ "dependencies": { "@azure/abort-controller": "^1.0.0", "@azure/core-auth": "^1.0.0", - "@azure/core-tracing": "1.0.0-preview.7", + "@azure/core-tracing": "1.0.0-preview.8", "@azure/logger": "^1.0.0", "@opentelemetry/api": "^0.5.1", "@types/node-fetch": "^2.5.0", diff --git a/sdk/eventhub/event-hubs/package.json b/sdk/eventhub/event-hubs/package.json index 3d8254708e2f..261ea491d1f6 100644 --- a/sdk/eventhub/event-hubs/package.json +++ b/sdk/eventhub/event-hubs/package.json @@ -73,7 +73,7 @@ "@azure/abort-controller": "^1.0.0", "@azure/core-amqp": "^1.1.0", "@azure/core-asynciterator-polyfill": "^1.0.0", - "@azure/core-tracing": "1.0.0-preview.7", + "@azure/core-tracing": "1.0.0-preview.8", "@azure/logger": "^1.0.0", "@opentelemetry/api": "^0.5.1", "async-lock": "^1.1.3", diff --git a/sdk/identity/identity/package.json b/sdk/identity/identity/package.json index e0266adab3c0..229f105899ff 100644 --- a/sdk/identity/identity/package.json +++ b/sdk/identity/identity/package.json @@ -74,7 +74,7 @@ "sideEffects": false, "dependencies": { "@azure/core-http": "^1.0.0", - "@azure/core-tracing": "1.0.0-preview.7", + "@azure/core-tracing": "1.0.0-preview.8", "@azure/logger": "^1.0.0", "@opentelemetry/api": "^0.5.1", "events": "^3.0.0", diff --git a/sdk/keyvault/keyvault-certificates/package.json b/sdk/keyvault/keyvault-certificates/package.json index 78cce28b747f..70295716c0db 100644 --- a/sdk/keyvault/keyvault-certificates/package.json +++ b/sdk/keyvault/keyvault-certificates/package.json @@ -87,7 +87,7 @@ "@azure/core-http": "^1.0.0", "@azure/core-lro": "^1.0.0", "@azure/core-paging": "^1.1.0", - "@azure/core-tracing": "1.0.0-preview.7", + "@azure/core-tracing": "1.0.0-preview.8", "@azure/logger": "^1.0.0", "@opentelemetry/api": "^0.5.1", "tslib": "^1.10.0" diff --git a/sdk/keyvault/keyvault-keys/package.json b/sdk/keyvault/keyvault-keys/package.json index 91d1792783e5..3cd9de710f17 100644 --- a/sdk/keyvault/keyvault-keys/package.json +++ b/sdk/keyvault/keyvault-keys/package.json @@ -85,7 +85,7 @@ "@azure/core-http": "^1.0.0", "@azure/core-lro": "^1.0.0", "@azure/core-paging": "^1.1.0", - "@azure/core-tracing": "1.0.0-preview.7", + "@azure/core-tracing": "1.0.0-preview.8", "@azure/logger": "^1.0.0", "@opentelemetry/api": "^0.5.1", "tslib": "^1.10.0" diff --git a/sdk/keyvault/keyvault-secrets/package.json b/sdk/keyvault/keyvault-secrets/package.json index db243b0d8fc6..dfbd0b9241db 100644 --- a/sdk/keyvault/keyvault-secrets/package.json +++ b/sdk/keyvault/keyvault-secrets/package.json @@ -86,7 +86,7 @@ "@azure/core-http": "^1.0.0", "@azure/core-lro": "^1.0.0", "@azure/core-paging": "^1.1.0", - "@azure/core-tracing": "1.0.0-preview.7", + "@azure/core-tracing": "1.0.0-preview.8", "@azure/logger": "^1.0.0", "@opentelemetry/api": "^0.5.1", "tslib": "^1.10.0" diff --git a/sdk/search/search/package.json b/sdk/search/search/package.json index 8afbe5dc891f..f0ce8a1db93b 100644 --- a/sdk/search/search/package.json +++ b/sdk/search/search/package.json @@ -71,7 +71,7 @@ "dependencies": { "@azure/core-http": "^1.0.0", "@azure/core-paging": "^1.1.0", - "@azure/core-tracing": "1.0.0-preview.7", + "@azure/core-tracing": "1.0.0-preview.8", "@azure/logger": "^1.0.0", "@opentelemetry/api": "^0.5.1", "tslib": "^1.10.0" diff --git a/sdk/storage/storage-blob/package.json b/sdk/storage/storage-blob/package.json index 3a9f113a3a30..4ddfa6646139 100644 --- a/sdk/storage/storage-blob/package.json +++ b/sdk/storage/storage-blob/package.json @@ -102,7 +102,7 @@ "@azure/core-http": "^1.0.3", "@azure/core-lro": "^1.0.0", "@azure/core-paging": "^1.1.0", - "@azure/core-tracing": "1.0.0-preview.7", + "@azure/core-tracing": "1.0.0-preview.8", "@azure/logger": "^1.0.0", "@opentelemetry/api": "^0.5.1", "events": "^3.0.0", diff --git a/sdk/storage/storage-file-datalake/package.json b/sdk/storage/storage-file-datalake/package.json index 75c09fbd8263..5982aaa1fafd 100644 --- a/sdk/storage/storage-file-datalake/package.json +++ b/sdk/storage/storage-file-datalake/package.json @@ -97,7 +97,7 @@ "@azure/abort-controller": "^1.0.0", "@azure/core-http": "^1.0.3", "@azure/core-paging": "^1.1.0", - "@azure/core-tracing": "1.0.0-preview.7", + "@azure/core-tracing": "1.0.0-preview.8", "@azure/logger": "^1.0.0", "@azure/storage-blob": "^12.0.0", "events": "^3.0.0", diff --git a/sdk/storage/storage-file-share/package.json b/sdk/storage/storage-file-share/package.json index 030a709bc2ea..e9e21cbafcaa 100644 --- a/sdk/storage/storage-file-share/package.json +++ b/sdk/storage/storage-file-share/package.json @@ -104,7 +104,7 @@ "@azure/abort-controller": "^1.0.0", "@azure/core-http": "^1.0.3", "@azure/core-paging": "^1.1.0", - "@azure/core-tracing": "1.0.0-preview.7", + "@azure/core-tracing": "1.0.0-preview.8", "@azure/logger": "^1.0.0", "@opentelemetry/api": "^0.5.1", "events": "^3.0.0", diff --git a/sdk/storage/storage-queue/package.json b/sdk/storage/storage-queue/package.json index bd09d5636681..36da9fa74a59 100644 --- a/sdk/storage/storage-queue/package.json +++ b/sdk/storage/storage-queue/package.json @@ -101,7 +101,7 @@ "@azure/abort-controller": "^1.0.0", "@azure/core-http": "^1.0.3", "@azure/core-paging": "^1.1.0", - "@azure/core-tracing": "1.0.0-preview.7", + "@azure/core-tracing": "1.0.0-preview.8", "@azure/logger": "^1.0.0", "@opentelemetry/api": "^0.5.1", "tslib": "^1.10.0" diff --git a/sdk/textanalytics/ai-text-analytics/package.json b/sdk/textanalytics/ai-text-analytics/package.json index 139dbc467732..cc66acb3d7e9 100644 --- a/sdk/textanalytics/ai-text-analytics/package.json +++ b/sdk/textanalytics/ai-text-analytics/package.json @@ -74,7 +74,7 @@ "autoPublish": false, "dependencies": { "@azure/core-http": "^1.0.0", - "@azure/core-tracing": "1.0.0-preview.7", + "@azure/core-tracing": "1.0.0-preview.8", "@azure/logger": "^1.0.0", "@opentelemetry/api": "^0.5.1", "tslib": "^1.10.0" From d7d569133dd3ade6fb938325b0ba09778e230532 Mon Sep 17 00:00:00 2001 From: Jeff Fisher Date: Tue, 24 Mar 2020 16:40:47 -0700 Subject: [PATCH 04/29] Bump cache version --- sdk/core/core-tracing/src/utils/cache.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sdk/core/core-tracing/src/utils/cache.ts b/sdk/core/core-tracing/src/utils/cache.ts index 25909c7c2568..9a5e3dc20eaf 100644 --- a/sdk/core/core-tracing/src/utils/cache.ts +++ b/sdk/core/core-tracing/src/utils/cache.ts @@ -4,7 +4,10 @@ import { Tracer } from "@opentelemetry/api"; import { getGlobalObject } from "./global"; -const GLOBAL_TRACER_VERSION = 2; +// V1 = OpenTelemetry 0.1 +// V2 = OpenTelemetry 0.2 +// V3 = OpenTelemetry 0.5.1 +const GLOBAL_TRACER_VERSION = 3; // preview5 shipped with @azure/core-tracing.tracerCache // and didn't have smart detection for collisions const GLOBAL_TRACER_SYMBOL = Symbol.for("@azure/core-tracing.tracerCache2"); From 37cb01b95a11571ca88d5474e0ea218060cf4a5d Mon Sep 17 00:00:00 2001 From: Jeff Fisher Date: Tue, 24 Mar 2020 18:08:02 -0700 Subject: [PATCH 05/29] Fixup changelog --- sdk/core/core-tracing/CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/sdk/core/core-tracing/CHANGELOG.md b/sdk/core/core-tracing/CHANGELOG.md index 9f4695224a52..45ddb3ea40bd 100644 --- a/sdk/core/core-tracing/CHANGELOG.md +++ b/sdk/core/core-tracing/CHANGELOG.md @@ -7,6 +7,7 @@ - `SpanContext` now requires traceFlags to be set. - `Tracer` has removed `recordSpanData`, `getBinaryFormat`, and `getHttpTextFormat`. - `Tracer.getCurrentSpan` returns `undefined` instead of `null` when unset. + - `Link` objects renamed `spanContext` property to `context`. - [BREAKING] Removed NoopTracer and NoopSpan implementations since this is provided by `@opentelemetry/api` now. ## 1.0.0-preview.7 (2019-12-03) From ac2011ac695b749a1dce21ebea125b455b07ea61 Mon Sep 17 00:00:00 2001 From: Jeff Fisher Date: Tue, 24 Mar 2020 18:08:14 -0700 Subject: [PATCH 06/29] Fix build breaks --- common/config/rush/pnpm-lock.yaml | 28 +++++++++---------- .../app-configuration/package.json | 2 +- sdk/core/core-amqp/package.json | 2 +- sdk/core/core-auth/review/core-auth.api.md | 2 +- sdk/core/core-http/rollup.base.config.js | 9 +++++- .../test/policies/tracingPolicyTests.ts | 19 +++++++++---- sdk/core/core-lro/package.json | 2 +- sdk/core/core-lro/rollup.base.config.js | 9 +++++- sdk/eventhub/event-hubs/package.json | 2 +- .../event-hubs/review/event-hubs.api.md | 6 ++-- sdk/eventhub/event-hubs/rollup.base.config.js | 9 +++++- sdk/eventhub/event-hubs/src/partitionPump.ts | 2 +- sdk/eventhub/event-hubs/src/sender.ts | 4 +-- .../event-hubs/src/util/operationOptions.ts | 8 ++---- sdk/eventhub/event-hubs/test/misc.spec.ts | 2 +- .../event-hubs/test/partitionPump.spec.ts | 10 +++---- sdk/identity/identity/rollup.base.config.js | 9 +++++- .../manual-integration/AzureVM/package.json | 2 +- .../Cloudshell/package.json | 2 +- .../Kubernetes/package.json | 2 +- .../keyvault-certificates/package.json | 2 +- .../rollup.base.config.js | 9 +++++- sdk/keyvault/keyvault-keys/package.json | 2 +- .../keyvault-keys/rollup.base.config.js | 9 +++++- sdk/keyvault/keyvault-secrets/package.json | 2 +- .../keyvault-secrets/rollup.base.config.js | 9 +++++- sdk/search/search/rollup.base.config.js | 9 +++++- sdk/search/search/test/tracing.spec.ts | 4 +-- sdk/servicebus/service-bus/package.json | 2 +- .../service-bus/rollup.base.config.js | 9 +++++- .../src/modelsToBeSharedWithEventHubs.ts | 8 ++---- sdk/storage/storage-blob/package.json | 2 +- .../storage-blob/review/storage-blob.api.md | 2 +- .../storage-blob/rollup.base.config.js | 9 +++++- .../storage-file-datalake/package.json | 2 +- .../review/storage-file-datalake.api.md | 2 +- .../rollup.base.config.js | 18 ++++++++++-- .../samples/package.json | 2 +- .../review/storage-file-share.api.md | 2 +- .../storage-file-share/rollup.base.config.js | 9 +++++- sdk/storage/storage-queue/package.json | 2 +- .../storage-queue/review/storage-queue.api.md | 2 +- .../storage-queue/rollup.base.config.js | 9 +++++- sdk/template/template/rollup.base.config.js | 9 +++++- sdk/test-utils/recorder/rollup.base.config.js | 9 +++++- .../ai-text-analytics/package.json | 2 +- .../ai-text-analytics/rollup.base.config.js | 9 +++++- .../ai-text-analytics/test/tracing.spec.ts | 4 +-- 48 files changed, 204 insertions(+), 86 deletions(-) diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 64c6131b77f7..968e9bae4ec1 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -7501,7 +7501,7 @@ packages: dev: false name: '@rush-temp/ai-text-analytics' resolution: - integrity: sha512-Zg9N+JbZhkAfG7fAeLNqoJDMQgMV9tvP+Xx50+4iETRNspo/pK2wEV8ygxhf44BGtEr+vQkMlAMW8wM71AObCg== + integrity: sha512-roidmaKP9qBYmPVB9jM7huP9Z8a5LWMLmjTfG3kFR7hU3ZfjHlbN7fWWYNpIpqOfzZ7GIQ78gFoVrq9MVmRNuA== tarball: 'file:projects/ai-text-analytics.tgz' version: 0.0.0 'file:projects/app-configuration.tgz': @@ -7545,7 +7545,7 @@ packages: dev: false name: '@rush-temp/app-configuration' resolution: - integrity: sha512-cQU+khE9MUe6O9v4H7HOQNfyud5JF1n3FLqW23Io2fPVgOW+dcbi66//bGOEwzqQ7aICa6cm83nSvGHUSMrLHg== + integrity: sha512-Uxjd+6ynmqKYjSLUSS6ipODBJrtJB/7iILysiUpd6rEXrrjHc5Z6r7a9j2NGkmrV4vLUcvD8Eturq2/HwILddQ== tarball: 'file:projects/app-configuration.tgz' version: 0.0.0 'file:projects/core-amqp.tgz': @@ -7707,7 +7707,7 @@ packages: dev: false name: '@rush-temp/core-auth' resolution: - integrity: sha512-6mu1prhSh9lujDEaL1KRdmpsEMmXzyLeD+IhqjWsnaO7bCSRkOQXs6RLgmMLTKOCM73pTT1xJt0WynjMWNhsUw== + integrity: sha512-73QwUsn/yLnNUthJ3dxdxykYsPP3eHaNzBt6TTiLLkwegVOXitJPJzPx2MM5lJTDk6Uh+ZPx3huQmYYXdp3vLw== tarball: 'file:projects/core-auth.tgz' version: 0.0.0 'file:projects/core-http.tgz': @@ -7786,7 +7786,7 @@ packages: dev: false name: '@rush-temp/core-http' resolution: - integrity: sha512-NxM8enQsWj0J/kaJ9H2fKKst9SfEeoj89vevX2O4xWSLznQK7ugqkzFn38iMB0KaY+cb0YWsxUaJ3eAOvazHCA== + integrity: sha512-72hsH+Vu4PG5z4QRsVqa9Y0et9MbKJZZKKXCcxh/+2pXoisHcN9lku3JP6Zo1NEioAD7mVbEe9vk3iC38cKdmQ== tarball: 'file:projects/core-http.tgz' version: 0.0.0 'file:projects/core-lro.tgz': @@ -8083,7 +8083,7 @@ packages: dev: false name: '@rush-temp/event-hubs' resolution: - integrity: sha512-TM1ezuhbaDr+5Dnb6J+KcCVm7F9+mImt3MCKLJU3FvWb5xUIPqaiMyw5KeMORRDQAsWmeQVbemnab50K8rV4mg== + integrity: sha512-SiEamTsoSmE5dzVeoAHYr2cHFHD59V3Tu+kT1CKWugh7cqgda01oMk3N40Gwn09vDx8/iX0Ck0zvtc6xSAxRUA== tarball: 'file:projects/event-hubs.tgz' version: 0.0.0 'file:projects/event-processor-host.tgz': @@ -8263,7 +8263,7 @@ packages: dev: false name: '@rush-temp/identity' resolution: - integrity: sha512-2ALEwoFWlCLLSg5gHdbk0ZtaiENDJEOibQ9MhjIHFA4iAGyN4SmgA3kTtHY9ZkhdOLn0tiMhF6h/5n/1HfzTbw== + integrity: sha512-5EyHuRKpApAGUT0eYlXkRyT/9nUnZtQU4VY7NaFqD9/IqsvtiZLjgey4RqcTNIG8oS9OqGYOoigY46cgftE+Ng== tarball: 'file:projects/identity.tgz' version: 0.0.0 'file:projects/keyvault-certificates.tgz': @@ -8331,7 +8331,7 @@ packages: dev: false name: '@rush-temp/keyvault-certificates' resolution: - integrity: sha512-NtxH0ehDRscSh9jYlcqwCpgxqWs/r4SIXscc3PibauDWN7qCH19DtnwsCbx3yPSONP/5JxqjlbxW7XLsAtd8Iw== + integrity: sha512-wW26ism8BFf9y9m4bjCgYlS/6Tf9hpm87UssWXTbn7K6oHYo4tq8kq5fzP6ALQ+JKlV4Yu6nntHos4+4ZsosAw== tarball: 'file:projects/keyvault-certificates.tgz' version: 0.0.0 'file:projects/keyvault-keys.tgz': @@ -8399,7 +8399,7 @@ packages: dev: false name: '@rush-temp/keyvault-keys' resolution: - integrity: sha512-DYOZs9qhaQPS97Ma+57RxjBUpuyOrzDV2aXzr//Cs5WuAF5pht6i1CUSt11mQcRAeeJVCqlUSs4L3OOcr+HjBQ== + integrity: sha512-2dWWrRkPdwWK4rLgNz0hzte4ErnuKBAbuOhtTZIdCtFsdTng1GAj2E4SsqkYa19wGy/H/XDTHKyDov0s77FqLA== tarball: 'file:projects/keyvault-keys.tgz' version: 0.0.0 'file:projects/keyvault-secrets.tgz': @@ -8467,7 +8467,7 @@ packages: dev: false name: '@rush-temp/keyvault-secrets' resolution: - integrity: sha512-/cokzvxJGQzUNtuOpxI3OtObDzFWzbzJsqiNxPOPtxLiYN5dmQZ9ZEDnIQZtSdZzYR3BWsQw0mlSiNdsTqLRww== + integrity: sha512-Oc/Aw1gApVibVep+CfBoLBDy3+cLXHPObZ39Nj3FfWtsaCBqJzK4KGT0VQvYNNKx4id3aCTLcTIzEi51p+8Tfw== tarball: 'file:projects/keyvault-secrets.tgz' version: 0.0.0 'file:projects/logger.tgz': @@ -8578,7 +8578,7 @@ packages: dev: false name: '@rush-temp/search' resolution: - integrity: sha512-z57Kyzt/kRLb14Oovn0u6kZesNPlOz5Gkv3EaERGb8SHgNMlhTZOwB5k1KS2M0nvCBTxO8gIWLCW0L94N4sd4A== + integrity: sha512-EbZmjj/THFQP2w0gttMG7hThKfaQnv3fUrfCtxJZnZvt8vgQs3vfZWVeLmZbatt6xt782Bk8vrzZb1IvYsanRQ== tarball: 'file:projects/search.tgz' version: 0.0.0 'file:projects/service-bus.tgz': @@ -8722,7 +8722,7 @@ packages: dev: false name: '@rush-temp/storage-blob' resolution: - integrity: sha512-tA1aNy9nTEaYNLV7LERkdIu8FjgkMAwDs3YofZN/h0yGaxtodWaNnEi9YS6+n4/doGHCaEbZyTo9VePTTLqP4g== + integrity: sha512-X1KUGMBVWdKaGjoderA4gNroHLCQjgEXhb/+DClEDnjcroKbkGxTuV5Q9kEy8vE17S3LSKyEYarOuSZ292KGTA== tarball: 'file:projects/storage-blob.tgz' version: 0.0.0 'file:projects/storage-file-datalake.tgz': @@ -8794,7 +8794,7 @@ packages: dev: false name: '@rush-temp/storage-file-datalake' resolution: - integrity: sha512-+VKXg2oR1078rj9KlL3Y4HfVREsspBg9eJLZ2C98VxlXXHJSqjhBP80d9UlQJ2zgUw+omthJSKSlMsNH7QWctA== + integrity: sha512-548JJA9G5ie3O0aIEY6BLkg7yt8ZfJvFH92oaMBuadCPFCrRztCr9CX1koNK/kHLctvhzT751r6+M7NZp2oYCQ== tarball: 'file:projects/storage-file-datalake.tgz' version: 0.0.0 'file:projects/storage-file-share.tgz': @@ -8857,7 +8857,7 @@ packages: dev: false name: '@rush-temp/storage-file-share' resolution: - integrity: sha512-ZDiQllSobdJ2stQRvFcYiL9WTcNpuV/uErjHfwmCRsE0I6wtOgwyXyp+HVBpyRi2F2vO1+yZxY1Kag5H8BAU+g== + integrity: sha512-VKmfBM/9NSTKq3Cis164wMnATg6cTQ7NJ6OSkYJG4zJlNdWEnQ9EviOcCgk8YWKLUqbwx6iyfUnVzOcIFdt8WQ== tarball: 'file:projects/storage-file-share.tgz' version: 0.0.0 'file:projects/storage-queue.tgz': @@ -8920,7 +8920,7 @@ packages: dev: false name: '@rush-temp/storage-queue' resolution: - integrity: sha512-CVou19M7+hTQYaKKC9JGKL2dtaqW/Uwh8W1MlrgxeXkDUkEr0BZUvmCcksiOkMv49p8YXIm/fp4BFjUeSeEF/A== + integrity: sha512-d/LSYTTvzNN7/BYz0Z5NMiRYRzmi+FsHMINV945Hg3fr+n2k4YjVl1jCISjjr6R6vWvsGCJ0RiSEohJyM57P5A== tarball: 'file:projects/storage-queue.tgz' version: 0.0.0 'file:projects/template.tgz': diff --git a/sdk/appconfiguration/app-configuration/package.json b/sdk/appconfiguration/app-configuration/package.json index 1d52ee819fb9..35705d38bb11 100644 --- a/sdk/appconfiguration/app-configuration/package.json +++ b/sdk/appconfiguration/app-configuration/package.json @@ -79,7 +79,7 @@ "tslib": "^1.10.0" }, "devDependencies": { - "@azure/identity": "1.1.0-preview1", + "@azure/identity": "1.1.0-preview.2", "@microsoft/api-extractor": "^7.5.4", "@rollup/plugin-commonjs": "^11.0.1", "@rollup/plugin-multi-entry": "^3.0.0", diff --git a/sdk/core/core-amqp/package.json b/sdk/core/core-amqp/package.json index c7ccd560ccdd..2265b3f3ae86 100644 --- a/sdk/core/core-amqp/package.json +++ b/sdk/core/core-amqp/package.json @@ -76,7 +76,7 @@ }, "devDependencies": { "@azure/eslint-plugin-azure-sdk": "^2.0.1", - "@azure/identity": "1.1.0-preview1", + "@azure/identity": "1.1.0-preview.2", "@rollup/plugin-commonjs": "^11.0.1", "@rollup/plugin-inject": "^4.0.0", "@rollup/plugin-json": "^4.0.0", diff --git a/sdk/core/core-auth/review/core-auth.api.md b/sdk/core/core-auth/review/core-auth.api.md index b5ed3ddc288f..e4a19d95eb70 100644 --- a/sdk/core/core-auth/review/core-auth.api.md +++ b/sdk/core/core-auth/review/core-auth.api.md @@ -5,7 +5,7 @@ ```ts import { AbortSignalLike } from '@azure/abort-controller'; -import { SpanOptions } from '@opentelemetry/types'; +import { SpanOptions } from '@opentelemetry/api'; export { AbortSignalLike } diff --git a/sdk/core/core-http/rollup.base.config.js b/sdk/core/core-http/rollup.base.config.js index 363b134d4a50..158a4b0cdb0a 100644 --- a/sdk/core/core-http/rollup.base.config.js +++ b/sdk/core/core-http/rollup.base.config.js @@ -87,7 +87,14 @@ export function browserConfig(test = false, production = false) { namedExports: { chai: ["assert", "AssertionError", "should", "expect"], events: ["EventEmitter"], - "@opentelemetry/api": ["CanonicalCode", "SpanKind", "TraceFlags"] + "@opentelemetry/api": [ + "CanonicalCode", + "SpanKind", + "TraceFlags", + "NoopSpan", + "NoopTracer", + "NOOP_TRACER" + ] } }), viz({ filename: "dist-browser/browser-stats.html", sourcemap: false }) diff --git a/sdk/core/core-http/test/policies/tracingPolicyTests.ts b/sdk/core/core-http/test/policies/tracingPolicyTests.ts index 48d8e2998868..66fb22be618e 100644 --- a/sdk/core/core-http/test/policies/tracingPolicyTests.ts +++ b/sdk/core/core-http/test/policies/tracingPolicyTests.ts @@ -9,11 +9,18 @@ import { HttpHeaders, RequestPolicyOptions } from "../../src/coreHttp"; -import { SpanOptions, SpanContext, TraceFlags } from "@opentelemetry/api"; -import { setTracer, NoOpTracer, NoOpSpan } from "@azure/core-tracing"; +import { + SpanOptions, + SpanContext, + TraceFlags, + NoopSpan, + NoopTracer, + NOOP_TRACER +} from "@opentelemetry/api"; +import { setTracer } from "@azure/core-tracing"; import { tracingPolicy } from "../../src/policies/tracingPolicy"; -class MockSpan extends NoOpSpan { +class MockSpan extends NoopSpan { private _endCalled = false; constructor( @@ -53,14 +60,14 @@ class MockSpan extends NoOpSpan { } } -class MockTracer extends NoOpTracer { +class MockTracer extends NoopTracer { private spans: MockSpan[] = []; private _startSpanCalled = false; constructor( private traceId = "", private spanId = "", - private flags = TraceFlags.UNSAMPLED, + private flags = TraceFlags.NONE, private state = "" ) { super(); @@ -230,7 +237,7 @@ describe("tracingPolicy", function() { }); it("will not set headers if span is a NoOpSpan", async () => { - setTracer(new NoOpTracer()); + setTracer(NOOP_TRACER); const request = new WebResource(); request.spanOptions = { parent: ROOT_SPAN diff --git a/sdk/core/core-lro/package.json b/sdk/core/core-lro/package.json index 4ef20afade0c..9af556fd9b6f 100644 --- a/sdk/core/core-lro/package.json +++ b/sdk/core/core-lro/package.json @@ -102,7 +102,7 @@ }, "devDependencies": { "@azure/core-arm": "1.0.0-preview.7", - "@azure/identity": "1.1.0-preview1", + "@azure/identity": "1.1.0-preview.2", "@microsoft/api-extractor": "^7.5.4", "@rollup/plugin-commonjs": "^11.0.1", "@rollup/plugin-multi-entry": "^3.0.0", diff --git a/sdk/core/core-lro/rollup.base.config.js b/sdk/core/core-lro/rollup.base.config.js index dbf2071ca017..a58d21972ef3 100644 --- a/sdk/core/core-lro/rollup.base.config.js +++ b/sdk/core/core-lro/rollup.base.config.js @@ -119,7 +119,14 @@ export function browserConfig(test = false) { cjs({ namedExports: { assert: ["ok", "equal", "strictEqual"], - "@opentelemetry/api": ["CanonicalCode", "SpanKind", "TraceFlags"] + "@opentelemetry/api": [ + "CanonicalCode", + "SpanKind", + "TraceFlags", + "NOOP_TRACER", + "NoopSpan", + "NoopTracer" + ] } }) ] diff --git a/sdk/eventhub/event-hubs/package.json b/sdk/eventhub/event-hubs/package.json index 261ea491d1f6..a2dc2c7667d4 100644 --- a/sdk/eventhub/event-hubs/package.json +++ b/sdk/eventhub/event-hubs/package.json @@ -88,7 +88,7 @@ }, "devDependencies": { "@azure/eslint-plugin-azure-sdk": "^2.0.1", - "@azure/identity": "1.1.0-preview1", + "@azure/identity": "1.1.0-preview.2", "@microsoft/api-extractor": "^7.5.4", "@rollup/plugin-commonjs": "^11.0.1", "@rollup/plugin-inject": "^4.0.0", diff --git a/sdk/eventhub/event-hubs/review/event-hubs.api.md b/sdk/eventhub/event-hubs/review/event-hubs.api.md index a510e6c158ea..7c5e1b6d09da 100644 --- a/sdk/eventhub/event-hubs/review/event-hubs.api.md +++ b/sdk/eventhub/event-hubs/review/event-hubs.api.md @@ -7,9 +7,9 @@ import { AbortSignalLike } from '@azure/abort-controller'; import { MessagingError } from '@azure/core-amqp'; import { RetryOptions } from '@azure/core-amqp'; -import { Span } from '@opentelemetry/types'; -import { SpanContext } from '@opentelemetry/types'; -import { SpanOptions } from '@opentelemetry/types'; +import { Span } from '@opentelemetry/api'; +import { SpanContext } from '@opentelemetry/api'; +import { SpanOptions } from '@opentelemetry/api'; import { TokenCredential } from '@azure/core-amqp'; import { WebSocketImpl } from 'rhea-promise'; import { WebSocketOptions } from '@azure/core-amqp'; diff --git a/sdk/eventhub/event-hubs/rollup.base.config.js b/sdk/eventhub/event-hubs/rollup.base.config.js index b48c8915fa3c..c3483db303ce 100644 --- a/sdk/eventhub/event-hubs/rollup.base.config.js +++ b/sdk/eventhub/event-hubs/rollup.base.config.js @@ -132,7 +132,14 @@ export function browserConfig(test = false) { cjs({ namedExports: { events: ["EventEmitter"], - "@opentelemetry/api": ["CanonicalCode", "SpanKind", "TraceFlags"] + "@opentelemetry/api": [ + "CanonicalCode", + "SpanKind", + "TraceFlags", + "NOOP_TRACER", + "NoopSpan", + "NoopTracer" + ] } }), diff --git a/sdk/eventhub/event-hubs/src/partitionPump.ts b/sdk/eventhub/event-hubs/src/partitionPump.ts index 015b09fe4c68..0fa279a83d69 100644 --- a/sdk/eventhub/event-hubs/src/partitionPump.ts +++ b/sdk/eventhub/event-hubs/src/partitionPump.ts @@ -181,7 +181,7 @@ export function createProcessingSpan( } links.push({ - spanContext + context: spanContext }); } diff --git a/sdk/eventhub/event-hubs/src/sender.ts b/sdk/eventhub/event-hubs/src/sender.ts index 99f3526fefe6..79ea53accccf 100644 --- a/sdk/eventhub/event-hubs/src/sender.ts +++ b/sdk/eventhub/event-hubs/src/sender.ts @@ -249,9 +249,9 @@ export class EventHubProducer { parentSpan?: Span | SpanContext, spanContextsToLink: SpanContext[] = [] ): Span { - const links: Link[] = spanContextsToLink.map((spanContext) => { + const links: Link[] = spanContextsToLink.map((context) => { return { - spanContext + context }; }); const tracer = getTracer(); diff --git a/sdk/eventhub/event-hubs/src/util/operationOptions.ts b/sdk/eventhub/event-hubs/src/util/operationOptions.ts index 0bcd43f6b8e6..77ab8020cbdd 100644 --- a/sdk/eventhub/event-hubs/src/util/operationOptions.ts +++ b/sdk/eventhub/event-hubs/src/util/operationOptions.ts @@ -38,10 +38,6 @@ export interface OperationOptions extends TracingOptions { export function getParentSpan( options: Pick ): Span | SpanContext | undefined { - return ( - options && - options.tracingOptions && - options.tracingOptions.spanOptions && - options.tracingOptions.spanOptions.parent - ); + const parent = options.tracingOptions?.spanOptions?.parent; + return parent || undefined; } diff --git a/sdk/eventhub/event-hubs/test/misc.spec.ts b/sdk/eventhub/event-hubs/test/misc.spec.ts index 36641bfc2d8f..b0673848985f 100644 --- a/sdk/eventhub/event-hubs/test/misc.spec.ts +++ b/sdk/eventhub/event-hubs/test/misc.spec.ts @@ -355,7 +355,7 @@ describe("Misc tests #RunnableInBrowser", function(): void { should.equal(spanContext!.spanId, spanId, "Extracted spanId does not match expectation."); should.equal( spanContext!.traceFlags, - TraceFlags.UNSAMPLED, + TraceFlags.NONE, "Extracted traceFlags do not match expectations." ); }); diff --git a/sdk/eventhub/event-hubs/test/partitionPump.spec.ts b/sdk/eventhub/event-hubs/test/partitionPump.spec.ts index 2b5f4596cfd0..b9b91ef7fd5c 100644 --- a/sdk/eventhub/event-hubs/test/partitionPump.spec.ts +++ b/sdk/eventhub/event-hubs/test/partitionPump.spec.ts @@ -2,8 +2,8 @@ // Licensed under the MIT License. import { createProcessingSpan, trace } from "../src/partitionPump"; -import { NoOpSpan, TestTracer, setTracer, TestSpan } from "@azure/core-tracing"; -import { CanonicalCode, SpanOptions, SpanKind } from "@opentelemetry/api"; +import { TestTracer, setTracer, TestSpan } from "@azure/core-tracing"; +import { CanonicalCode, SpanOptions, SpanKind, NOOP_SPAN } from "@opentelemetry/api"; import chai from "chai"; import { ReceivedEventData } from "../src/eventData"; import { instrumentEventData } from "../src/diagnostics/instrumentEventData"; @@ -33,7 +33,7 @@ describe("PartitionPump", () => { } it("basic span properties are set", async () => { - const fakeParentSpan = new NoOpSpan(); + const fakeParentSpan = NOOP_SPAN; const tracer = new TestTracer2(); setTracer(tracer); @@ -90,8 +90,8 @@ describe("PartitionPump", () => { tracer.spanOptions!.links!.length.should.equal(3 - 1); // the test tracer just hands out a string integer that just gets // incremented - tracer.spanOptions!.links![0]!.spanContext.traceId.should.equal(firstEvent.context().traceId); - tracer.spanOptions!.links![1]!.spanContext.traceId.should.equal(thirdEvent.context().traceId); + tracer.spanOptions!.links![0]!.context.traceId.should.equal(firstEvent.context().traceId); + tracer.spanOptions!.links![1]!.context.traceId.should.equal(thirdEvent.context().traceId); }); it("trace - normal", async () => { diff --git a/sdk/identity/identity/rollup.base.config.js b/sdk/identity/identity/rollup.base.config.js index 21e91e7fed15..54a40e0cf602 100644 --- a/sdk/identity/identity/rollup.base.config.js +++ b/sdk/identity/identity/rollup.base.config.js @@ -84,7 +84,14 @@ export function browserConfig(test = false) { cjs({ namedExports: { events: ["EventEmitter"], - "@opentelemetry/api": ["CanonicalCode", "SpanKind", "TraceFlags"] + "@opentelemetry/api": [ + "CanonicalCode", + "SpanKind", + "TraceFlags", + "NOOP_TRACER", + "NoopSpan", + "NoopTracer" + ] } }), viz({ filename: "dist-browser/browser-stats.html", sourcemap: false }) diff --git a/sdk/identity/identity/test/manual-integration/AzureVM/package.json b/sdk/identity/identity/test/manual-integration/AzureVM/package.json index bf3a2a5b8f84..b2872261cbb7 100644 --- a/sdk/identity/identity/test/manual-integration/AzureVM/package.json +++ b/sdk/identity/identity/test/manual-integration/AzureVM/package.json @@ -9,7 +9,7 @@ "author": "", "license": "ISC", "dependencies": { - "@azure/identity": "1.1.0-preview1", + "@azure/identity": "1.1.0-preview.2", "@azure/keyvault-secrets": "^4.0.2" } } diff --git a/sdk/identity/identity/test/manual-integration/Cloudshell/package.json b/sdk/identity/identity/test/manual-integration/Cloudshell/package.json index bb1aead780f1..62e1f5db85c0 100644 --- a/sdk/identity/identity/test/manual-integration/Cloudshell/package.json +++ b/sdk/identity/identity/test/manual-integration/Cloudshell/package.json @@ -9,7 +9,7 @@ "author": "", "license": "ISC", "dependencies": { - "@azure/identity": "1.1.0-preview1", + "@azure/identity": "1.1.0-preview.2", "@azure/keyvault-secrets": "^4.0.2" } } diff --git a/sdk/identity/identity/test/manual-integration/Kubernetes/package.json b/sdk/identity/identity/test/manual-integration/Kubernetes/package.json index ed86521ab704..8c9d15a2480d 100644 --- a/sdk/identity/identity/test/manual-integration/Kubernetes/package.json +++ b/sdk/identity/identity/test/manual-integration/Kubernetes/package.json @@ -11,7 +11,7 @@ "dependencies": { "yargs": "15.1.0", "@types/yargs": "15.0.3", - "@azure/identity": "1.1.0-preview1", + "@azure/identity": "1.1.0-preview.2", "@azure/keyvault-secrets": "^4.0.2" } } diff --git a/sdk/keyvault/keyvault-certificates/package.json b/sdk/keyvault/keyvault-certificates/package.json index 70295716c0db..42e4ee09afb1 100644 --- a/sdk/keyvault/keyvault-certificates/package.json +++ b/sdk/keyvault/keyvault-certificates/package.json @@ -94,7 +94,7 @@ }, "devDependencies": { "@azure/eslint-plugin-azure-sdk": "^2.0.1", - "@azure/identity": "1.1.0-preview1", + "@azure/identity": "1.1.0-preview.2", "@azure/keyvault-keys": "^4.1.0-preview.1", "@azure/keyvault-secrets": "^4.1.0-preview.1", "@azure/test-utils-recorder": "^1.0.0", diff --git a/sdk/keyvault/keyvault-certificates/rollup.base.config.js b/sdk/keyvault/keyvault-certificates/rollup.base.config.js index d62f3f6d044d..3f51313aa619 100644 --- a/sdk/keyvault/keyvault-certificates/rollup.base.config.js +++ b/sdk/keyvault/keyvault-certificates/rollup.base.config.js @@ -125,7 +125,14 @@ export function browserConfig(test = false) { cjs({ namedExports: { assert: ["ok", "equal", "strictEqual"], - "@opentelemetry/api": ["CanonicalCode", "SpanKind", "TraceFlags"] + "@opentelemetry/api": [ + "CanonicalCode", + "SpanKind", + "TraceFlags", + "NOOP_TRACER", + "NoopSpan", + "NoopTracer" + ] } }) ] diff --git a/sdk/keyvault/keyvault-keys/package.json b/sdk/keyvault/keyvault-keys/package.json index 3cd9de710f17..f799cebbbbda 100644 --- a/sdk/keyvault/keyvault-keys/package.json +++ b/sdk/keyvault/keyvault-keys/package.json @@ -93,7 +93,7 @@ "devDependencies": { "@azure/abort-controller": "^1.0.0", "@azure/eslint-plugin-azure-sdk": "^2.0.1", - "@azure/identity": "1.1.0-preview1", + "@azure/identity": "1.1.0-preview.2", "@azure/test-utils-recorder": "^1.0.0", "@microsoft/api-extractor": "^7.5.4", "@rollup/plugin-commonjs": "^11.0.1", diff --git a/sdk/keyvault/keyvault-keys/rollup.base.config.js b/sdk/keyvault/keyvault-keys/rollup.base.config.js index d25c576e62b4..845360f5193d 100644 --- a/sdk/keyvault/keyvault-keys/rollup.base.config.js +++ b/sdk/keyvault/keyvault-keys/rollup.base.config.js @@ -123,7 +123,14 @@ export function browserConfig(test = false) { cjs({ namedExports: { assert: ["ok", "equal", "strictEqual"], - "@opentelemetry/api": ["CanonicalCode", "SpanKind", "TraceFlags"] + "@opentelemetry/api": [ + "CanonicalCode", + "SpanKind", + "TraceFlags", + "NOOP_TRACER", + "NoopSpan", + "NoopTracer" + ] } }) ] diff --git a/sdk/keyvault/keyvault-secrets/package.json b/sdk/keyvault/keyvault-secrets/package.json index dfbd0b9241db..56034a368b93 100644 --- a/sdk/keyvault/keyvault-secrets/package.json +++ b/sdk/keyvault/keyvault-secrets/package.json @@ -93,7 +93,7 @@ }, "devDependencies": { "@azure/eslint-plugin-azure-sdk": "^2.0.1", - "@azure/identity": "1.1.0-preview1", + "@azure/identity": "1.1.0-preview.2", "@azure/test-utils-recorder": "^1.0.0", "@microsoft/api-extractor": "^7.5.4", "@rollup/plugin-commonjs": "^11.0.1", diff --git a/sdk/keyvault/keyvault-secrets/rollup.base.config.js b/sdk/keyvault/keyvault-secrets/rollup.base.config.js index 03a0249a2cb2..9ec66df6db48 100644 --- a/sdk/keyvault/keyvault-secrets/rollup.base.config.js +++ b/sdk/keyvault/keyvault-secrets/rollup.base.config.js @@ -123,7 +123,14 @@ export function browserConfig(test = false) { cjs({ namedExports: { assert: ["ok", "equal", "strictEqual"], - "@opentelemetry/api": ["CanonicalCode", "SpanKind", "TraceFlags"] + "@opentelemetry/api": [ + "CanonicalCode", + "SpanKind", + "TraceFlags", + "NOOP_TRACER", + "NoopSpan", + "NoopTracer" + ] } }) ] diff --git a/sdk/search/search/rollup.base.config.js b/sdk/search/search/rollup.base.config.js index 1d04eff8238f..96248df5803f 100644 --- a/sdk/search/search/rollup.base.config.js +++ b/sdk/search/search/rollup.base.config.js @@ -86,7 +86,14 @@ export function browserConfig(test = false) { cjs({ namedExports: { chai: ["assert"], - "@opentelemetry/api": ["CanonicalCode", "SpanKind", "TraceFlags"] + "@opentelemetry/api": [ + "CanonicalCode", + "SpanKind", + "TraceFlags", + "NOOP_TRACER", + "NoopSpan", + "NoopTracer" + ] } }), viz({ filename: "dist-browser/browser-stats.html", sourcemap: false }) diff --git a/sdk/search/search/test/tracing.spec.ts b/sdk/search/search/test/tracing.spec.ts index 77fc143e738b..5858011f91d9 100644 --- a/sdk/search/search/test/tracing.spec.ts +++ b/sdk/search/search/test/tracing.spec.ts @@ -5,7 +5,7 @@ import { assert } from "chai"; import * as sinon from "sinon"; import { createSpan } from "../src/tracing"; import { setTracer, TestTracer, TestSpan } from "@azure/core-tracing"; -import { SpanKind } from "@opentelemetry/api"; +import { SpanKind, TraceFlags } from "@opentelemetry/api"; import { OperationOptions } from "@azure/core-http"; describe("tracing.createSpan", () => { @@ -14,7 +14,7 @@ describe("tracing.createSpan", () => { const testSpan = new TestSpan( tracer, "testing", - { traceId: "", spanId: "" }, + { traceId: "", spanId: "", traceFlags: TraceFlags.NONE }, SpanKind.INTERNAL ); const setAttributeSpy = sinon.spy(testSpan, "setAttribute"); diff --git a/sdk/servicebus/service-bus/package.json b/sdk/servicebus/service-bus/package.json index 0e392ec6f013..71fd14a14d1a 100644 --- a/sdk/servicebus/service-bus/package.json +++ b/sdk/servicebus/service-bus/package.json @@ -92,7 +92,7 @@ }, "devDependencies": { "@azure/eslint-plugin-azure-sdk": "^2.0.1", - "@azure/identity": "1.1.0-preview1", + "@azure/identity": "1.1.0-preview.2", "@microsoft/api-extractor": "^7.5.4", "@rollup/plugin-commonjs": "^11.0.1", "@rollup/plugin-inject": "^4.0.0", diff --git a/sdk/servicebus/service-bus/rollup.base.config.js b/sdk/servicebus/service-bus/rollup.base.config.js index 8c9cabeca73b..b5f43a49caaf 100644 --- a/sdk/servicebus/service-bus/rollup.base.config.js +++ b/sdk/servicebus/service-bus/rollup.base.config.js @@ -148,7 +148,14 @@ export function browserConfig(test = false) { namedExports: { events: ["EventEmitter"], long: ["ZERO"], - "@opentelemetry/api": ["CanonicalCode", "SpanKind", "TraceFlags"] + "@opentelemetry/api": [ + "CanonicalCode", + "SpanKind", + "TraceFlags", + "NOOP_TRACER", + "NoopSpan", + "NoopTracer" + ] } }), diff --git a/sdk/servicebus/service-bus/src/modelsToBeSharedWithEventHubs.ts b/sdk/servicebus/service-bus/src/modelsToBeSharedWithEventHubs.ts index c5ef749a0210..17e4436133e4 100644 --- a/sdk/servicebus/service-bus/src/modelsToBeSharedWithEventHubs.ts +++ b/sdk/servicebus/service-bus/src/modelsToBeSharedWithEventHubs.ts @@ -40,10 +40,6 @@ export interface OperationOptions extends TracingOptions { export function getParentSpan( options: Pick ): Span | SpanContext | undefined { - return ( - options && - options.tracingOptions && - options.tracingOptions.spanOptions && - options.tracingOptions.spanOptions.parent - ); + const parent = options.tracingOptions?.spanOptions?.parent; + return parent || undefined; } diff --git a/sdk/storage/storage-blob/package.json b/sdk/storage/storage-blob/package.json index 4ddfa6646139..895f89bd40aa 100644 --- a/sdk/storage/storage-blob/package.json +++ b/sdk/storage/storage-blob/package.json @@ -109,7 +109,7 @@ "tslib": "^1.10.0" }, "devDependencies": { - "@azure/identity": "1.1.0-preview1", + "@azure/identity": "1.1.0-preview.2", "@azure/test-utils-recorder": "^1.0.0", "@microsoft/api-extractor": "^7.5.4", "@rollup/plugin-multi-entry": "^3.0.0", diff --git a/sdk/storage/storage-blob/review/storage-blob.api.md b/sdk/storage/storage-blob/review/storage-blob.api.md index 4e353b1a8cb4..6e446bd8557c 100644 --- a/sdk/storage/storage-blob/review/storage-blob.api.md +++ b/sdk/storage/storage-blob/review/storage-blob.api.md @@ -24,7 +24,7 @@ import { RequestPolicyFactory } from '@azure/core-http'; import { RequestPolicyOptions } from '@azure/core-http'; import { RestError } from '@azure/core-http'; import { ServiceClientOptions } from '@azure/core-http'; -import { SpanOptions } from '@opentelemetry/types'; +import { SpanOptions } from '@opentelemetry/api'; import { TokenCredential } from '@azure/core-http'; import { TransferProgressEvent } from '@azure/core-http'; import { UserAgentOptions } from '@azure/core-http'; diff --git a/sdk/storage/storage-blob/rollup.base.config.js b/sdk/storage/storage-blob/rollup.base.config.js index 69c43c4c5c52..b50e59768b4e 100644 --- a/sdk/storage/storage-blob/rollup.base.config.js +++ b/sdk/storage/storage-blob/rollup.base.config.js @@ -146,7 +146,14 @@ export function browserConfig(test = false) { "notDeepEqual", "notDeepStrictEqual" ], - "@opentelemetry/api": ["CanonicalCode", "SpanKind", "TraceFlags"] + "@opentelemetry/api": [ + "CanonicalCode", + "SpanKind", + "TraceFlags", + "NOOP_TRACER", + "NoopSpan", + "NoopTracer" + ] } }) ], diff --git a/sdk/storage/storage-file-datalake/package.json b/sdk/storage/storage-file-datalake/package.json index 5982aaa1fafd..27f218f0389a 100644 --- a/sdk/storage/storage-file-datalake/package.json +++ b/sdk/storage/storage-file-datalake/package.json @@ -104,7 +104,7 @@ "tslib": "^1.10.0" }, "devDependencies": { - "@azure/identity": "1.1.0-preview1", + "@azure/identity": "1.1.0-preview.2", "@azure/test-utils-recorder": "^1.0.0", "@microsoft/api-extractor": "^7.5.4", "@opentelemetry/api": "^0.5.1", diff --git a/sdk/storage/storage-file-datalake/review/storage-file-datalake.api.md b/sdk/storage/storage-file-datalake/review/storage-file-datalake.api.md index d0c931a0fb58..39c15e1ef23f 100644 --- a/sdk/storage/storage-file-datalake/review/storage-file-datalake.api.md +++ b/sdk/storage/storage-file-datalake/review/storage-file-datalake.api.md @@ -30,7 +30,7 @@ import { RequestPolicyOptions } from '@azure/core-http'; import { RestError } from '@azure/core-http'; import { ServiceClientOptions } from '@azure/core-http'; import { ServiceListContainersSegmentResponse } from '@azure/storage-blob'; -import { SpanOptions } from '@opentelemetry/types'; +import { SpanOptions } from '@opentelemetry/api'; import { TokenCredential } from '@azure/core-http'; import { TransferProgressEvent } from '@azure/core-http'; import { UserAgentOptions } from '@azure/core-http'; diff --git a/sdk/storage/storage-file-datalake/rollup.base.config.js b/sdk/storage/storage-file-datalake/rollup.base.config.js index e48e830a3968..3562c05fad19 100644 --- a/sdk/storage/storage-file-datalake/rollup.base.config.js +++ b/sdk/storage/storage-file-datalake/rollup.base.config.js @@ -65,7 +65,14 @@ export function nodeConfig(test = false) { "notDeepEqual", "notDeepStrictEqual" ], - "@opentelemetry/api": ["CanonicalCode", "SpanKind", "TraceFlags"] + "@opentelemetry/api": [ + "CanonicalCode", + "SpanKind", + "TraceFlags", + "NOOP_TRACER", + "NoopSpan", + "NoopTracer" + ] } }) ], @@ -161,7 +168,14 @@ export function browserConfig(test = false) { "notDeepEqual", "notDeepStrictEqual" ], - "@opentelemetry/api": ["CanonicalCode", "SpanKind", "TraceFlags"] + "@opentelemetry/api": [ + "CanonicalCode", + "SpanKind", + "TraceFlags", + "NOOP_TRACER", + "NoopSpan", + "NoopTracer" + ] } }) ], diff --git a/sdk/storage/storage-file-datalake/samples/package.json b/sdk/storage/storage-file-datalake/samples/package.json index aac0f788647c..33aa62975f6f 100644 --- a/sdk/storage/storage-file-datalake/samples/package.json +++ b/sdk/storage/storage-file-datalake/samples/package.json @@ -10,7 +10,7 @@ "author": "", "license": "MIT", "dependencies": { - "@azure/identity": "1.1.0-preview1", + "@azure/identity": "1.1.0-preview.2", "@azure/storage-file-datalake": "^12.0.0", "execa": "^3.2.0" } diff --git a/sdk/storage/storage-file-share/review/storage-file-share.api.md b/sdk/storage/storage-file-share/review/storage-file-share.api.md index ab14fc2fe7c4..9c8c73eb6ddb 100644 --- a/sdk/storage/storage-file-share/review/storage-file-share.api.md +++ b/sdk/storage/storage-file-share/review/storage-file-share.api.md @@ -22,7 +22,7 @@ import { RequestPolicyFactory } from '@azure/core-http'; import { RequestPolicyOptions } from '@azure/core-http'; import { RestError } from '@azure/core-http'; import { ServiceClientOptions } from '@azure/core-http'; -import { SpanOptions } from '@opentelemetry/types'; +import { SpanOptions } from '@opentelemetry/api'; import { TransferProgressEvent } from '@azure/core-http'; import { UserAgentOptions } from '@azure/core-http'; import { WebResource } from '@azure/core-http'; diff --git a/sdk/storage/storage-file-share/rollup.base.config.js b/sdk/storage/storage-file-share/rollup.base.config.js index 8e99b91c4396..2186acbdb540 100644 --- a/sdk/storage/storage-file-share/rollup.base.config.js +++ b/sdk/storage/storage-file-share/rollup.base.config.js @@ -147,7 +147,14 @@ export function browserConfig(test = false) { "notEqual", "strictEqual" ], - "@opentelemetry/api": ["CanonicalCode", "SpanKind", "TraceFlags"] + "@opentelemetry/api": [ + "CanonicalCode", + "SpanKind", + "TraceFlags", + "NOOP_TRACER", + "NoopSpan", + "NoopTracer" + ] } }) ], diff --git a/sdk/storage/storage-queue/package.json b/sdk/storage/storage-queue/package.json index 36da9fa74a59..1c1f519528c1 100644 --- a/sdk/storage/storage-queue/package.json +++ b/sdk/storage/storage-queue/package.json @@ -107,7 +107,7 @@ "tslib": "^1.10.0" }, "devDependencies": { - "@azure/identity": "1.1.0-preview1", + "@azure/identity": "1.1.0-preview.2", "@azure/test-utils-recorder": "^1.0.0", "@microsoft/api-extractor": "^7.5.4", "@rollup/plugin-commonjs": "^11.0.1", diff --git a/sdk/storage/storage-queue/review/storage-queue.api.md b/sdk/storage/storage-queue/review/storage-queue.api.md index 1be540f4e299..78cc585cb5ab 100644 --- a/sdk/storage/storage-queue/review/storage-queue.api.md +++ b/sdk/storage/storage-queue/review/storage-queue.api.md @@ -21,7 +21,7 @@ import { RequestPolicyFactory } from '@azure/core-http'; import { RequestPolicyOptions } from '@azure/core-http'; import { RestError } from '@azure/core-http'; import { ServiceClientOptions } from '@azure/core-http'; -import { SpanOptions } from '@opentelemetry/types'; +import { SpanOptions } from '@opentelemetry/api'; import { TokenCredential } from '@azure/core-http'; import { UserAgentOptions } from '@azure/core-http'; import { WebResource } from '@azure/core-http'; diff --git a/sdk/storage/storage-queue/rollup.base.config.js b/sdk/storage/storage-queue/rollup.base.config.js index c4289c1b63ff..15c39eda9e4a 100644 --- a/sdk/storage/storage-queue/rollup.base.config.js +++ b/sdk/storage/storage-queue/rollup.base.config.js @@ -119,7 +119,14 @@ export function browserConfig(test = false) { cjs({ namedExports: { assert: ["ok", "deepEqual", "equal", "fail", "deepStrictEqual", "strictEqual"], - "@opentelemetry/api": ["CanonicalCode", "SpanKind", "TraceFlags"] + "@opentelemetry/api": [ + "CanonicalCode", + "SpanKind", + "TraceFlags", + "NOOP_TRACER", + "NoopSpan", + "NoopTracer" + ] } }) ], diff --git a/sdk/template/template/rollup.base.config.js b/sdk/template/template/rollup.base.config.js index ca5953c7f2d4..4588b3cebb5b 100644 --- a/sdk/template/template/rollup.base.config.js +++ b/sdk/template/template/rollup.base.config.js @@ -84,7 +84,14 @@ export function browserConfig(test = false) { cjs({ namedExports: { events: ["EventEmitter"], - "@opentelemetry/api": ["CanonicalCode", "SpanKind", "TraceFlags"] + "@opentelemetry/api": [ + "CanonicalCode", + "SpanKind", + "TraceFlags", + "NOOP_TRACER", + "NoopSpan", + "NoopTracer" + ] } }), viz({ filename: "dist-browser/browser-stats.html", sourcemap: false }) diff --git a/sdk/test-utils/recorder/rollup.base.config.js b/sdk/test-utils/recorder/rollup.base.config.js index 637f9fa1b3f3..36ef258a70fc 100644 --- a/sdk/test-utils/recorder/rollup.base.config.js +++ b/sdk/test-utils/recorder/rollup.base.config.js @@ -84,7 +84,14 @@ export function browserConfig(test = false) { // https://github.com/rollup/rollup-plugin-commonjs/issues/394 namedExports: { "events/": ["EventEmitter"], - "@opentelemetry/api": ["CanonicalCode", "SpanKind", "TraceFlags"] + "@opentelemetry/api": [ + "CanonicalCode", + "SpanKind", + "TraceFlags", + "NOOP_TRACER", + "NoopSpan", + "NoopTracer" + ] } }), viz({ filename: "dist-browser/browser-stats.html", sourcemap: false }) diff --git a/sdk/textanalytics/ai-text-analytics/package.json b/sdk/textanalytics/ai-text-analytics/package.json index cc66acb3d7e9..20498b0efeb3 100644 --- a/sdk/textanalytics/ai-text-analytics/package.json +++ b/sdk/textanalytics/ai-text-analytics/package.json @@ -80,7 +80,7 @@ "tslib": "^1.10.0" }, "devDependencies": { - "@azure/identity": "1.1.0-preview1", + "@azure/identity": "1.1.0-preview.2", "@azure/test-utils-recorder": "^1.0.0", "@microsoft/api-extractor": "^7.5.4", "@rollup/plugin-commonjs": "^11.0.1", diff --git a/sdk/textanalytics/ai-text-analytics/rollup.base.config.js b/sdk/textanalytics/ai-text-analytics/rollup.base.config.js index fc485415f647..08acacd078a3 100644 --- a/sdk/textanalytics/ai-text-analytics/rollup.base.config.js +++ b/sdk/textanalytics/ai-text-analytics/rollup.base.config.js @@ -96,7 +96,14 @@ export function browserConfig(test = false, production = false) { namedExports: { chai: ["assert", "expect", "use"], events: ["EventEmitter"], - "@opentelemetry/api": ["CanonicalCode", "SpanKind", "TraceFlags"] + "@opentelemetry/api": [ + "CanonicalCode", + "SpanKind", + "TraceFlags", + "NOOP_TRACER", + "NoopSpan", + "NoopTracer" + ] } }), viz({ filename: "dist-browser/browser-stats.html", sourcemap: false }) diff --git a/sdk/textanalytics/ai-text-analytics/test/tracing.spec.ts b/sdk/textanalytics/ai-text-analytics/test/tracing.spec.ts index 0d14ef90300f..bef6834c85b6 100644 --- a/sdk/textanalytics/ai-text-analytics/test/tracing.spec.ts +++ b/sdk/textanalytics/ai-text-analytics/test/tracing.spec.ts @@ -5,7 +5,7 @@ import { assert } from "chai"; import * as sinon from "sinon"; import { createSpan } from "../src/tracing"; import { setTracer, TestTracer, TestSpan } from "@azure/core-tracing"; -import { SpanKind } from "@opentelemetry/api"; +import { SpanKind, TraceFlags } from "@opentelemetry/api"; import { OperationOptions } from "../../../core/core-auth/types/core-auth"; describe("tracing.createSpan", () => { @@ -14,7 +14,7 @@ describe("tracing.createSpan", () => { const testSpan = new TestSpan( tracer, "testing", - { traceId: "", spanId: "" }, + { traceId: "", spanId: "", traceFlags: TraceFlags.NONE }, SpanKind.INTERNAL ); const setAttributeSpy = sinon.spy(testSpan, "setAttribute"); From a06d2e593b948c3a12519cc619bb954135736239 Mon Sep 17 00:00:00 2001 From: Jeff Fisher Date: Tue, 24 Mar 2020 18:27:36 -0700 Subject: [PATCH 07/29] Fix named export --- sdk/eventhub/event-hubs/rollup.base.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sdk/eventhub/event-hubs/rollup.base.config.js b/sdk/eventhub/event-hubs/rollup.base.config.js index c3483db303ce..4e1343943761 100644 --- a/sdk/eventhub/event-hubs/rollup.base.config.js +++ b/sdk/eventhub/event-hubs/rollup.base.config.js @@ -138,7 +138,8 @@ export function browserConfig(test = false) { "TraceFlags", "NOOP_TRACER", "NoopSpan", - "NoopTracer" + "NoopTracer", + "NOOP_SPAN" ] } }), From f2b1a77a665f14759f648f837e6e58797f047485 Mon Sep 17 00:00:00 2001 From: Jeff Fisher Date: Wed, 25 Mar 2020 12:15:53 -0700 Subject: [PATCH 08/29] Revert using OT noop --- sdk/core/core-http/rollup.base.config.js | 9 +-- .../test/policies/tracingPolicyTests.ts | 17 ++-- sdk/core/core-lro/rollup.base.config.js | 9 +-- sdk/core/core-tracing/CHANGELOG.md | 1 - .../core-tracing/review/core-tracing.api.md | 26 ++++++- sdk/core/core-tracing/rollup.base.config.js | 9 +-- sdk/core/core-tracing/src/index.ts | 2 + sdk/core/core-tracing/src/tracerProxy.ts | 14 +++- .../core-tracing/src/tracers/noop/noOpSpan.ts | 77 +++++++++++++++++++ .../src/tracers/noop/noOpTracer.ts | 44 +++++++++++ .../core-tracing/src/tracers/test/testSpan.ts | 6 +- .../src/tracers/test/testTracer.ts | 5 +- sdk/eventhub/event-hubs/rollup.base.config.js | 10 +-- sdk/identity/identity/rollup.base.config.js | 9 +-- .../rollup.base.config.js | 9 +-- .../keyvault-keys/rollup.base.config.js | 9 +-- .../keyvault-secrets/rollup.base.config.js | 9 +-- sdk/search/search/rollup.base.config.js | 9 +-- .../service-bus/rollup.base.config.js | 9 +-- .../storage-blob/rollup.base.config.js | 9 +-- .../rollup.base.config.js | 18 +---- .../storage-file-share/rollup.base.config.js | 9 +-- .../storage-queue/rollup.base.config.js | 9 +-- sdk/template/template/rollup.base.config.js | 9 +-- sdk/test-utils/recorder/rollup.base.config.js | 9 +-- .../ai-text-analytics/rollup.base.config.js | 9 +-- 26 files changed, 186 insertions(+), 169 deletions(-) create mode 100644 sdk/core/core-tracing/src/tracers/noop/noOpSpan.ts create mode 100644 sdk/core/core-tracing/src/tracers/noop/noOpTracer.ts diff --git a/sdk/core/core-http/rollup.base.config.js b/sdk/core/core-http/rollup.base.config.js index 158a4b0cdb0a..363b134d4a50 100644 --- a/sdk/core/core-http/rollup.base.config.js +++ b/sdk/core/core-http/rollup.base.config.js @@ -87,14 +87,7 @@ export function browserConfig(test = false, production = false) { namedExports: { chai: ["assert", "AssertionError", "should", "expect"], events: ["EventEmitter"], - "@opentelemetry/api": [ - "CanonicalCode", - "SpanKind", - "TraceFlags", - "NoopSpan", - "NoopTracer", - "NOOP_TRACER" - ] + "@opentelemetry/api": ["CanonicalCode", "SpanKind", "TraceFlags"] } }), viz({ filename: "dist-browser/browser-stats.html", sourcemap: false }) diff --git a/sdk/core/core-http/test/policies/tracingPolicyTests.ts b/sdk/core/core-http/test/policies/tracingPolicyTests.ts index 66fb22be618e..8db5f572dfa8 100644 --- a/sdk/core/core-http/test/policies/tracingPolicyTests.ts +++ b/sdk/core/core-http/test/policies/tracingPolicyTests.ts @@ -9,18 +9,11 @@ import { HttpHeaders, RequestPolicyOptions } from "../../src/coreHttp"; -import { - SpanOptions, - SpanContext, - TraceFlags, - NoopSpan, - NoopTracer, - NOOP_TRACER -} from "@opentelemetry/api"; -import { setTracer } from "@azure/core-tracing"; +import { SpanOptions, SpanContext, TraceFlags } from "@opentelemetry/api"; +import { setTracer, NoOpTracer, NoOpSpan } from "@azure/core-tracing"; import { tracingPolicy } from "../../src/policies/tracingPolicy"; -class MockSpan extends NoopSpan { +class MockSpan extends NoOpSpan { private _endCalled = false; constructor( @@ -60,7 +53,7 @@ class MockSpan extends NoopSpan { } } -class MockTracer extends NoopTracer { +class MockTracer extends NoOpTracer { private spans: MockSpan[] = []; private _startSpanCalled = false; @@ -237,7 +230,7 @@ describe("tracingPolicy", function() { }); it("will not set headers if span is a NoOpSpan", async () => { - setTracer(NOOP_TRACER); + setTracer(new NoOpTracer()); const request = new WebResource(); request.spanOptions = { parent: ROOT_SPAN diff --git a/sdk/core/core-lro/rollup.base.config.js b/sdk/core/core-lro/rollup.base.config.js index a58d21972ef3..dbf2071ca017 100644 --- a/sdk/core/core-lro/rollup.base.config.js +++ b/sdk/core/core-lro/rollup.base.config.js @@ -119,14 +119,7 @@ export function browserConfig(test = false) { cjs({ namedExports: { assert: ["ok", "equal", "strictEqual"], - "@opentelemetry/api": [ - "CanonicalCode", - "SpanKind", - "TraceFlags", - "NOOP_TRACER", - "NoopSpan", - "NoopTracer" - ] + "@opentelemetry/api": ["CanonicalCode", "SpanKind", "TraceFlags"] } }) ] diff --git a/sdk/core/core-tracing/CHANGELOG.md b/sdk/core/core-tracing/CHANGELOG.md index 45ddb3ea40bd..ab6252b13d79 100644 --- a/sdk/core/core-tracing/CHANGELOG.md +++ b/sdk/core/core-tracing/CHANGELOG.md @@ -8,7 +8,6 @@ - `Tracer` has removed `recordSpanData`, `getBinaryFormat`, and `getHttpTextFormat`. - `Tracer.getCurrentSpan` returns `undefined` instead of `null` when unset. - `Link` objects renamed `spanContext` property to `context`. -- [BREAKING] Removed NoopTracer and NoopSpan implementations since this is provided by `@opentelemetry/api` now. ## 1.0.0-preview.7 (2019-12-03) diff --git a/sdk/core/core-tracing/review/core-tracing.api.md b/sdk/core/core-tracing/review/core-tracing.api.md index 69c74ff6b0fd..8237988b1454 100644 --- a/sdk/core/core-tracing/review/core-tracing.api.md +++ b/sdk/core/core-tracing/review/core-tracing.api.md @@ -5,8 +5,6 @@ ```ts import { Attributes } from '@opentelemetry/api'; -import { NoopSpan } from '@opentelemetry/api'; -import { NoopTracer } from '@opentelemetry/api'; import { Span as OpenCensusSpan } from '@opencensus/web-types'; import { Tracer as OpenCensusTracer } from '@opencensus/web-types'; import { Span } from '@opentelemetry/api'; @@ -27,6 +25,26 @@ export function getTraceParentHeader(spanContext: SpanContext): string | undefin // @public export function getTracer(): Tracer; +// @public +export class NoOpSpan implements Span { + addEvent(_name: string, _attributes?: Attributes): this; + context(): SpanContext; + end(_endTime?: number): void; + isRecording(): boolean; + setAttribute(_key: string, _value: unknown): this; + setAttributes(_attributes: Attributes): this; + setStatus(_status: Status): this; + updateName(_name: string): this; +} + +// @public +export class NoOpTracer implements Tracer { + bind(target: T, _span?: Span): T; + getCurrentSpan(): Span; + startSpan(_name: string, _options?: SpanOptions): Span; + withSpan ReturnType>(_span: Span, fn: T): ReturnType; +} + export { OpenCensusSpan } // @public @@ -71,7 +89,7 @@ export interface SpanGraphNode { } // @public -export class TestSpan extends NoopSpan { +export class TestSpan extends NoOpSpan { constructor(parentTracer: TestTracer, name: string, context: SpanContext, kind: SpanKind, parentSpanId?: string, startTime?: TimeInput); readonly attributes: Attributes; context(): SpanContext; @@ -90,7 +108,7 @@ export class TestSpan extends NoopSpan { } // @public -export class TestTracer extends NoopTracer { +export class TestTracer extends NoOpTracer { getActiveSpans(): TestSpan[]; getKnownSpans(): TestSpan[]; getRootSpans(): TestSpan[]; diff --git a/sdk/core/core-tracing/rollup.base.config.js b/sdk/core/core-tracing/rollup.base.config.js index 9399879bc31b..f5ff60416e58 100644 --- a/sdk/core/core-tracing/rollup.base.config.js +++ b/sdk/core/core-tracing/rollup.base.config.js @@ -82,14 +82,7 @@ export function browserConfig(test = false) { }), cjs({ namedExports: { - "@opentelemetry/api": [ - "CanonicalCode", - "SpanKind", - "TraceFlags", - "NOOP_TRACER", - "NoopTracer", - "NoopSpan" - ], + "@opentelemetry/api": ["CanonicalCode", "SpanKind", "TraceFlags"], assert: ["ok", "fail", "equal", "deepEqual", "deepStrictEqual", "strictEqual"] } }), diff --git a/sdk/core/core-tracing/src/index.ts b/sdk/core/core-tracing/src/index.ts index abae1f82321b..d5363e031678 100644 --- a/sdk/core/core-tracing/src/index.ts +++ b/sdk/core/core-tracing/src/index.ts @@ -4,6 +4,8 @@ export { getTracer, setTracer } from "./tracerProxy"; // Tracers and wrappers +export { NoOpSpan } from "./tracers/noop/noOpSpan"; +export { NoOpTracer } from "./tracers/noop/noOpTracer"; export { OpenCensusSpanWrapper } from "./tracers/opencensus/openCensusSpanWrapper"; export { OpenCensusTracerWrapper } from "./tracers/opencensus/openCensusTracerWrapper"; export { TestTracer, SpanGraph, SpanGraphNode } from "./tracers/test/testTracer"; diff --git a/sdk/core/core-tracing/src/tracerProxy.ts b/sdk/core/core-tracing/src/tracerProxy.ts index 2628d6db6335..5f193d4adcf3 100644 --- a/sdk/core/core-tracing/src/tracerProxy.ts +++ b/sdk/core/core-tracing/src/tracerProxy.ts @@ -1,9 +1,19 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -import { Tracer, NOOP_TRACER } from "@opentelemetry/api"; +import { NoOpTracer } from "./tracers/noop/noOpTracer"; +import { Tracer } from "@opentelemetry/api"; import { getCache } from "./utils/cache"; +let defaultTracer: Tracer; + +function getDefaultTracer(): Tracer { + if (!defaultTracer) { + defaultTracer = new NoOpTracer(); + } + return defaultTracer; +} + /** * Sets the global tracer, enabling tracing for the Azure SDK. * @param tracer An OpenTelemetry Tracer instance. @@ -20,7 +30,7 @@ export function setTracer(tracer: Tracer) { export function getTracer() { const cache = getCache(); if (!cache.tracer) { - return NOOP_TRACER; + return getDefaultTracer(); } return cache.tracer; } diff --git a/sdk/core/core-tracing/src/tracers/noop/noOpSpan.ts b/sdk/core/core-tracing/src/tracers/noop/noOpSpan.ts new file mode 100644 index 000000000000..a73c4269a1bb --- /dev/null +++ b/sdk/core/core-tracing/src/tracers/noop/noOpSpan.ts @@ -0,0 +1,77 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +import { Span, SpanContext, Attributes, Status, TraceFlags } from "@opentelemetry/api"; + +/** + * A no-op implementation of Span that can safely be used without side-effects. + */ +export class NoOpSpan implements Span { + /** + * Returns the SpanContext associated with this Span. + */ + context(): SpanContext { + return { + spanId: "", + traceId: "", + traceFlags: TraceFlags.NONE + }; + } + + /** + * Marks the end of Span execution. + * @param _endTime The time to use as the Span's end time. Defaults to + * the current time. + */ + end(_endTime?: number): void { + /* Noop */ + } + + /** + * Sets an attribute on the Span + * @param _key the attribute key + * @param _value the attribute value + */ + setAttribute(_key: string, _value: unknown): this { + return this; + } + + /** + * Sets attributes on the Span + * @param _attributes the attributes to add + */ + setAttributes(_attributes: Attributes): this { + return this; + } + + /** + * Adds an event to the Span + * @param _name The name of the event + * @param _attributes The associated attributes to add for this event + */ + addEvent(_name: string, _attributes?: Attributes): this { + return this; + } + + /** + * Sets a status on the span. Overrides the default of CanonicalCode.OK. + * @param _status The status to set. + */ + setStatus(_status: Status): this { + return this; + } + + /** + * Updates the name of the Span + * @param _name the new Span name + */ + updateName(_name: string): this { + return this; + } + + /** + * Returns whether this span will be recorded + */ + isRecording(): boolean { + return false; + } +} diff --git a/sdk/core/core-tracing/src/tracers/noop/noOpTracer.ts b/sdk/core/core-tracing/src/tracers/noop/noOpTracer.ts new file mode 100644 index 000000000000..e49056fc3840 --- /dev/null +++ b/sdk/core/core-tracing/src/tracers/noop/noOpTracer.ts @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +import { NoOpSpan } from "./noOpSpan"; +import { Tracer, Span, SpanOptions } from "@opentelemetry/api"; + +/** + * A no-op implementation of Tracer that can be used when tracing + * is disabled. + */ +export class NoOpTracer implements Tracer { + /** + * Starts a new Span. + * @param _name The name of the span. + * @param _options The SpanOptions used during Span creation. + */ + startSpan(_name: string, _options?: SpanOptions): Span { + return new NoOpSpan(); + } + + /** + * Returns the current Span from the current context, if available. + */ + getCurrentSpan(): Span { + return new NoOpSpan(); + } + + /** + * Executes the given function within the context provided by a Span. + * @param _span The span that provides the context. + * @param fn The function to be executed. + */ + withSpan ReturnType>(_span: Span, fn: T): ReturnType { + return fn(); + } + + /** + * Bind a Span as the target's scope + * @param target An object to bind the scope. + * @param _span A specific Span to use. Otherwise, use the current one. + */ + bind(target: T, _span?: Span): T { + return target; + } +} diff --git a/sdk/core/core-tracing/src/tracers/test/testSpan.ts b/sdk/core/core-tracing/src/tracers/test/testSpan.ts index 21301a8e44c5..7fd93f394df9 100644 --- a/sdk/core/core-tracing/src/tracers/test/testSpan.ts +++ b/sdk/core/core-tracing/src/tracers/test/testSpan.ts @@ -7,15 +7,15 @@ import { Status, SpanContext, CanonicalCode, - Attributes, - NoopSpan + Attributes } from "@opentelemetry/api"; +import { NoOpSpan } from "../noop/noOpSpan"; import { TestTracer } from "./testTracer"; /** * A mock span useful for testing. */ -export class TestSpan extends NoopSpan { +export class TestSpan extends NoOpSpan { /** * The Span's current name */ diff --git a/sdk/core/core-tracing/src/tracers/test/testTracer.ts b/sdk/core/core-tracing/src/tracers/test/testTracer.ts index 9181072e37c1..3c0faafde6a0 100644 --- a/sdk/core/core-tracing/src/tracers/test/testTracer.ts +++ b/sdk/core/core-tracing/src/tracers/test/testTracer.ts @@ -1,7 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. import { TestSpan } from "./testSpan"; -import { SpanContext, SpanKind, SpanOptions, NoopTracer, TraceFlags } from "@opentelemetry/api"; +import { NoOpTracer } from "../noop/noOpTracer"; +import { SpanContext, SpanKind, SpanOptions, TraceFlags } from "@opentelemetry/api"; /** * Simple representation of a Span that only has name and child relationships. @@ -32,7 +33,7 @@ export interface SpanGraph { /** * A mock tracer useful for testing */ -export class TestTracer extends NoopTracer { +export class TestTracer extends NoOpTracer { private traceIdCounter = 0; private getNextTraceId(): string { this.traceIdCounter++; diff --git a/sdk/eventhub/event-hubs/rollup.base.config.js b/sdk/eventhub/event-hubs/rollup.base.config.js index 4e1343943761..b48c8915fa3c 100644 --- a/sdk/eventhub/event-hubs/rollup.base.config.js +++ b/sdk/eventhub/event-hubs/rollup.base.config.js @@ -132,15 +132,7 @@ export function browserConfig(test = false) { cjs({ namedExports: { events: ["EventEmitter"], - "@opentelemetry/api": [ - "CanonicalCode", - "SpanKind", - "TraceFlags", - "NOOP_TRACER", - "NoopSpan", - "NoopTracer", - "NOOP_SPAN" - ] + "@opentelemetry/api": ["CanonicalCode", "SpanKind", "TraceFlags"] } }), diff --git a/sdk/identity/identity/rollup.base.config.js b/sdk/identity/identity/rollup.base.config.js index 54a40e0cf602..21e91e7fed15 100644 --- a/sdk/identity/identity/rollup.base.config.js +++ b/sdk/identity/identity/rollup.base.config.js @@ -84,14 +84,7 @@ export function browserConfig(test = false) { cjs({ namedExports: { events: ["EventEmitter"], - "@opentelemetry/api": [ - "CanonicalCode", - "SpanKind", - "TraceFlags", - "NOOP_TRACER", - "NoopSpan", - "NoopTracer" - ] + "@opentelemetry/api": ["CanonicalCode", "SpanKind", "TraceFlags"] } }), viz({ filename: "dist-browser/browser-stats.html", sourcemap: false }) diff --git a/sdk/keyvault/keyvault-certificates/rollup.base.config.js b/sdk/keyvault/keyvault-certificates/rollup.base.config.js index 3f51313aa619..d62f3f6d044d 100644 --- a/sdk/keyvault/keyvault-certificates/rollup.base.config.js +++ b/sdk/keyvault/keyvault-certificates/rollup.base.config.js @@ -125,14 +125,7 @@ export function browserConfig(test = false) { cjs({ namedExports: { assert: ["ok", "equal", "strictEqual"], - "@opentelemetry/api": [ - "CanonicalCode", - "SpanKind", - "TraceFlags", - "NOOP_TRACER", - "NoopSpan", - "NoopTracer" - ] + "@opentelemetry/api": ["CanonicalCode", "SpanKind", "TraceFlags"] } }) ] diff --git a/sdk/keyvault/keyvault-keys/rollup.base.config.js b/sdk/keyvault/keyvault-keys/rollup.base.config.js index 845360f5193d..d25c576e62b4 100644 --- a/sdk/keyvault/keyvault-keys/rollup.base.config.js +++ b/sdk/keyvault/keyvault-keys/rollup.base.config.js @@ -123,14 +123,7 @@ export function browserConfig(test = false) { cjs({ namedExports: { assert: ["ok", "equal", "strictEqual"], - "@opentelemetry/api": [ - "CanonicalCode", - "SpanKind", - "TraceFlags", - "NOOP_TRACER", - "NoopSpan", - "NoopTracer" - ] + "@opentelemetry/api": ["CanonicalCode", "SpanKind", "TraceFlags"] } }) ] diff --git a/sdk/keyvault/keyvault-secrets/rollup.base.config.js b/sdk/keyvault/keyvault-secrets/rollup.base.config.js index 9ec66df6db48..03a0249a2cb2 100644 --- a/sdk/keyvault/keyvault-secrets/rollup.base.config.js +++ b/sdk/keyvault/keyvault-secrets/rollup.base.config.js @@ -123,14 +123,7 @@ export function browserConfig(test = false) { cjs({ namedExports: { assert: ["ok", "equal", "strictEqual"], - "@opentelemetry/api": [ - "CanonicalCode", - "SpanKind", - "TraceFlags", - "NOOP_TRACER", - "NoopSpan", - "NoopTracer" - ] + "@opentelemetry/api": ["CanonicalCode", "SpanKind", "TraceFlags"] } }) ] diff --git a/sdk/search/search/rollup.base.config.js b/sdk/search/search/rollup.base.config.js index 96248df5803f..1d04eff8238f 100644 --- a/sdk/search/search/rollup.base.config.js +++ b/sdk/search/search/rollup.base.config.js @@ -86,14 +86,7 @@ export function browserConfig(test = false) { cjs({ namedExports: { chai: ["assert"], - "@opentelemetry/api": [ - "CanonicalCode", - "SpanKind", - "TraceFlags", - "NOOP_TRACER", - "NoopSpan", - "NoopTracer" - ] + "@opentelemetry/api": ["CanonicalCode", "SpanKind", "TraceFlags"] } }), viz({ filename: "dist-browser/browser-stats.html", sourcemap: false }) diff --git a/sdk/servicebus/service-bus/rollup.base.config.js b/sdk/servicebus/service-bus/rollup.base.config.js index b5f43a49caaf..8c9cabeca73b 100644 --- a/sdk/servicebus/service-bus/rollup.base.config.js +++ b/sdk/servicebus/service-bus/rollup.base.config.js @@ -148,14 +148,7 @@ export function browserConfig(test = false) { namedExports: { events: ["EventEmitter"], long: ["ZERO"], - "@opentelemetry/api": [ - "CanonicalCode", - "SpanKind", - "TraceFlags", - "NOOP_TRACER", - "NoopSpan", - "NoopTracer" - ] + "@opentelemetry/api": ["CanonicalCode", "SpanKind", "TraceFlags"] } }), diff --git a/sdk/storage/storage-blob/rollup.base.config.js b/sdk/storage/storage-blob/rollup.base.config.js index b50e59768b4e..69c43c4c5c52 100644 --- a/sdk/storage/storage-blob/rollup.base.config.js +++ b/sdk/storage/storage-blob/rollup.base.config.js @@ -146,14 +146,7 @@ export function browserConfig(test = false) { "notDeepEqual", "notDeepStrictEqual" ], - "@opentelemetry/api": [ - "CanonicalCode", - "SpanKind", - "TraceFlags", - "NOOP_TRACER", - "NoopSpan", - "NoopTracer" - ] + "@opentelemetry/api": ["CanonicalCode", "SpanKind", "TraceFlags"] } }) ], diff --git a/sdk/storage/storage-file-datalake/rollup.base.config.js b/sdk/storage/storage-file-datalake/rollup.base.config.js index 3562c05fad19..e48e830a3968 100644 --- a/sdk/storage/storage-file-datalake/rollup.base.config.js +++ b/sdk/storage/storage-file-datalake/rollup.base.config.js @@ -65,14 +65,7 @@ export function nodeConfig(test = false) { "notDeepEqual", "notDeepStrictEqual" ], - "@opentelemetry/api": [ - "CanonicalCode", - "SpanKind", - "TraceFlags", - "NOOP_TRACER", - "NoopSpan", - "NoopTracer" - ] + "@opentelemetry/api": ["CanonicalCode", "SpanKind", "TraceFlags"] } }) ], @@ -168,14 +161,7 @@ export function browserConfig(test = false) { "notDeepEqual", "notDeepStrictEqual" ], - "@opentelemetry/api": [ - "CanonicalCode", - "SpanKind", - "TraceFlags", - "NOOP_TRACER", - "NoopSpan", - "NoopTracer" - ] + "@opentelemetry/api": ["CanonicalCode", "SpanKind", "TraceFlags"] } }) ], diff --git a/sdk/storage/storage-file-share/rollup.base.config.js b/sdk/storage/storage-file-share/rollup.base.config.js index 2186acbdb540..8e99b91c4396 100644 --- a/sdk/storage/storage-file-share/rollup.base.config.js +++ b/sdk/storage/storage-file-share/rollup.base.config.js @@ -147,14 +147,7 @@ export function browserConfig(test = false) { "notEqual", "strictEqual" ], - "@opentelemetry/api": [ - "CanonicalCode", - "SpanKind", - "TraceFlags", - "NOOP_TRACER", - "NoopSpan", - "NoopTracer" - ] + "@opentelemetry/api": ["CanonicalCode", "SpanKind", "TraceFlags"] } }) ], diff --git a/sdk/storage/storage-queue/rollup.base.config.js b/sdk/storage/storage-queue/rollup.base.config.js index 15c39eda9e4a..c4289c1b63ff 100644 --- a/sdk/storage/storage-queue/rollup.base.config.js +++ b/sdk/storage/storage-queue/rollup.base.config.js @@ -119,14 +119,7 @@ export function browserConfig(test = false) { cjs({ namedExports: { assert: ["ok", "deepEqual", "equal", "fail", "deepStrictEqual", "strictEqual"], - "@opentelemetry/api": [ - "CanonicalCode", - "SpanKind", - "TraceFlags", - "NOOP_TRACER", - "NoopSpan", - "NoopTracer" - ] + "@opentelemetry/api": ["CanonicalCode", "SpanKind", "TraceFlags"] } }) ], diff --git a/sdk/template/template/rollup.base.config.js b/sdk/template/template/rollup.base.config.js index 4588b3cebb5b..ca5953c7f2d4 100644 --- a/sdk/template/template/rollup.base.config.js +++ b/sdk/template/template/rollup.base.config.js @@ -84,14 +84,7 @@ export function browserConfig(test = false) { cjs({ namedExports: { events: ["EventEmitter"], - "@opentelemetry/api": [ - "CanonicalCode", - "SpanKind", - "TraceFlags", - "NOOP_TRACER", - "NoopSpan", - "NoopTracer" - ] + "@opentelemetry/api": ["CanonicalCode", "SpanKind", "TraceFlags"] } }), viz({ filename: "dist-browser/browser-stats.html", sourcemap: false }) diff --git a/sdk/test-utils/recorder/rollup.base.config.js b/sdk/test-utils/recorder/rollup.base.config.js index 36ef258a70fc..637f9fa1b3f3 100644 --- a/sdk/test-utils/recorder/rollup.base.config.js +++ b/sdk/test-utils/recorder/rollup.base.config.js @@ -84,14 +84,7 @@ export function browserConfig(test = false) { // https://github.com/rollup/rollup-plugin-commonjs/issues/394 namedExports: { "events/": ["EventEmitter"], - "@opentelemetry/api": [ - "CanonicalCode", - "SpanKind", - "TraceFlags", - "NOOP_TRACER", - "NoopSpan", - "NoopTracer" - ] + "@opentelemetry/api": ["CanonicalCode", "SpanKind", "TraceFlags"] } }), viz({ filename: "dist-browser/browser-stats.html", sourcemap: false }) diff --git a/sdk/textanalytics/ai-text-analytics/rollup.base.config.js b/sdk/textanalytics/ai-text-analytics/rollup.base.config.js index 08acacd078a3..fc485415f647 100644 --- a/sdk/textanalytics/ai-text-analytics/rollup.base.config.js +++ b/sdk/textanalytics/ai-text-analytics/rollup.base.config.js @@ -96,14 +96,7 @@ export function browserConfig(test = false, production = false) { namedExports: { chai: ["assert", "expect", "use"], events: ["EventEmitter"], - "@opentelemetry/api": [ - "CanonicalCode", - "SpanKind", - "TraceFlags", - "NOOP_TRACER", - "NoopSpan", - "NoopTracer" - ] + "@opentelemetry/api": ["CanonicalCode", "SpanKind", "TraceFlags"] } }), viz({ filename: "dist-browser/browser-stats.html", sourcemap: false }) From 8e455ba84ba26251ba68b250e5ff7b2b27602269 Mon Sep 17 00:00:00 2001 From: Jeff Fisher Date: Wed, 25 Mar 2020 12:30:07 -0700 Subject: [PATCH 09/29] fix build break --- .../event-hubs/test/partitionPump.spec.ts | 20 +++++++++---------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/sdk/eventhub/event-hubs/test/partitionPump.spec.ts b/sdk/eventhub/event-hubs/test/partitionPump.spec.ts index b9b91ef7fd5c..882b1f2a4dd2 100644 --- a/sdk/eventhub/event-hubs/test/partitionPump.spec.ts +++ b/sdk/eventhub/event-hubs/test/partitionPump.spec.ts @@ -2,8 +2,8 @@ // Licensed under the MIT License. import { createProcessingSpan, trace } from "../src/partitionPump"; -import { TestTracer, setTracer, TestSpan } from "@azure/core-tracing"; -import { CanonicalCode, SpanOptions, SpanKind, NOOP_SPAN } from "@opentelemetry/api"; +import { TestTracer, setTracer, TestSpan, NoOpSpan } from "@azure/core-tracing"; +import { CanonicalCode, SpanOptions, SpanKind } from "@opentelemetry/api"; import chai from "chai"; import { ReceivedEventData } from "../src/eventData"; import { instrumentEventData } from "../src/diagnostics/instrumentEventData"; @@ -33,7 +33,7 @@ describe("PartitionPump", () => { } it("basic span properties are set", async () => { - const fakeParentSpan = NOOP_SPAN; + const fakeParentSpan = new NoOpSpan(); const tracer = new TestTracer2(); setTracer(tracer); @@ -51,15 +51,13 @@ describe("PartitionPump", () => { tracer.spanOptions!.kind!.should.equal(SpanKind.CONSUMER); tracer.spanOptions!.parent!.should.equal(fakeParentSpan); - // TODO: re-enable the following verification after moving to @azure/core-tracing 1.0.0-preview.8 - // attributes is added after preview.7. - // const attributes = tracer.getRootSpans()[0].attributes; + const attributes = tracer.getRootSpans()[0].attributes; - // attributes!.should.deep.equal({ - // component: "eventhubs", - // "message_bus.destination": "theeventhubname", - // "peer.address": "theendpoint" - // }); + attributes!.should.deep.equal({ + component: "eventhubs", + "message_bus.destination": "theeventhubname", + "peer.address": "theendpoint" + }); }); it("received events are linked to this span using Diagnostic-Id", async () => { From 3bb121dd4c2fbd0ff808ee686287df2ed8772101 Mon Sep 17 00:00:00 2001 From: Jeff Fisher Date: Wed, 25 Mar 2020 21:19:42 -0700 Subject: [PATCH 10/29] update lockfil --- common/config/rush/pnpm-lock.yaml | 87 +++++++++++++++++++++---------- 1 file changed, 60 insertions(+), 27 deletions(-) diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 8b60e7a51d42..b677f545499f 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -325,6 +325,20 @@ packages: node: '>=6.0' resolution: integrity: sha512-xB+w7ZDAu3YBzqH44rCmG9/RlrOmFuDPt/bpf17eJr8eZSrLt7nc7LnWdxM9Mmoj/YKMHpxRg28txu3TcpiL+g== + /@opentelemetry/api/0.5.1: + dependencies: + '@opentelemetry/context-base': 0.5.1 + dev: false + engines: + node: '>=8.0.0' + resolution: + integrity: sha512-7l57iZ2qdnEzAvORZZjKZ3m8eHqOfjd+DFTG5IEr2+WzPX3BqM142233trRro8smiKN9t5JXYjEM9q8edwEa5Q== + /@opentelemetry/context-base/0.5.1: + dev: false + engines: + node: '>=8.0.0' + resolution: + integrity: sha512-GIQI9Gf4jgmlbWvVphGEA7XHUFmvDFKThYZe8VxVqzTrt2aTImGwSFc6Fys6UgnJkwxSK1NveerA8zdMZUNbVQ== /@opentelemetry/types/0.2.0: deprecated: 'Package renamed to @opentelemetry/api, see https://github.com/open-telemetry/opentelemetry-js' dev: false @@ -7641,7 +7655,7 @@ packages: dev: false name: '@rush-temp/abort-controller' resolution: - integrity: sha512-l9Uczvqyxh910HVtQM7aeVzvNHWgSmMT3Td9t7xL6DTOVExjZEgplYt+/EJxsbIw1v7+HMHB+fRnn+HQRT2Jmg== + integrity: sha512-7EvepVBXcQER3lrq7k/dqiBz3Rekb7Op5kKqzjGyI2+pQJFN/VTgNxJy/wIp/BKHRSVkwiR5hYNURhzJ+5+IUA== tarball: 'file:projects/abort-controller.tgz' version: 0.0.0 'file:projects/ai-text-analytics.tgz': @@ -7649,6 +7663,7 @@ packages: '@azure/core-tracing': 1.0.0-preview.7 '@azure/identity': 1.1.0-preview1 '@microsoft/api-extractor': 7.7.8 + '@opentelemetry/api': 0.5.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -7702,7 +7717,7 @@ packages: dev: false name: '@rush-temp/ai-text-analytics' resolution: - integrity: sha512-HXQ7sEeyDnFz7wr8i1YCn/Oq/eUTHNrRxSYBhtCm/4fBw280nhCz4C6hS2x8xp2doCeJAgzouKfQ2tQ6p40S9A== + integrity: sha512-NKwWGJ0lq2yaMbXqCJGpMN/SnTnI4XCTeK9L711pXxLRm5n6J4qLAz1UXhWBC9NfLqTZdqxF/mHuUbb6i9c+eg== tarball: 'file:projects/ai-text-analytics.tgz' version: 0.0.0 'file:projects/app-configuration.tgz': @@ -7710,6 +7725,7 @@ packages: '@azure/core-tracing': 1.0.0-preview.7 '@azure/identity': 1.1.0-preview1 '@microsoft/api-extractor': 7.7.8 + '@opentelemetry/api': 0.5.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-multi-entry': 3.0.0_rollup@1.32.1 @@ -7745,7 +7761,7 @@ packages: dev: false name: '@rush-temp/app-configuration' resolution: - integrity: sha512-TtffWKbKueVi1E1QiOQaX8DdMjh+Dy1ON0AzlQu2VwqHBq/P6NHLOX4+fzO1P8SQUZ60OSmodQv7Szo7xB4vKQ== + integrity: sha512-okftg9NpKU6fd1Kld0NghrfDbv0EqNBuoO021blpWsQg1FYPoC5o9Bv8jr1/OXbdg6B5zxh0QnBQjw1DZyIDZA== tarball: 'file:projects/app-configuration.tgz' version: 0.0.0 'file:projects/core-amqp.tgz': @@ -7813,7 +7829,7 @@ packages: dev: false name: '@rush-temp/core-amqp' resolution: - integrity: sha512-+I8NcHJFPvaMTI9zXx5pIrRYdlVUv4gSYrVvwp8RsBd/lt92S6wfpdQH0W3tXqtLLcDRI7GUQdFyVeYbdsHZPQ== + integrity: sha512-qnJioaQ29bI4IJUiu1rQ/eQGa5wzqEr3QbLDzMw2QXKS844nbk1fM8usAsMolmCR6fblMQPyl+hU9JZJvht6Rg== tarball: 'file:projects/core-amqp.tgz' version: 0.0.0 'file:projects/core-arm.tgz': @@ -7847,7 +7863,7 @@ packages: dev: false name: '@rush-temp/core-arm' resolution: - integrity: sha512-0pn2mZyXmj//Y/nBrZacADv0y5cxhrtTmSDh7lJKBkO1mikLkWocQzfkXVQf2zDoZXRSqK5EDICnRx34Iij6og== + integrity: sha512-5St4AWsuo4aOv6a2zDBC1QPZZ7Pg90EtoIEFKtChk8TgAZ4vyFWHwhgI7Eg0JPf64JOoWNQhVsavFGfYZm6vZQ== tarball: 'file:projects/core-arm.tgz' version: 0.0.0 'file:projects/core-asynciterator-polyfill.tgz': @@ -7873,6 +7889,7 @@ packages: '@azure/core-tracing': 1.0.0-preview.7 '@azure/eslint-plugin-azure-sdk': 2.0.1_ee45056a3a53530214d828c032d67185 '@microsoft/api-extractor': 7.7.8 + '@opentelemetry/api': 0.5.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -7906,7 +7923,7 @@ packages: dev: false name: '@rush-temp/core-auth' resolution: - integrity: sha512-s/939eY3zDHWsLuxyKMR6PfnRaA8fYeoDeAas83xmrRQwU5Nnj2YMfjWl8RwlUrLk4nJ2Hdi2nSZVp2UzCLyuw== + integrity: sha512-q15y28wD1yUS7BkFSgtasbJokquNCfncfC85LAL0ckXuxw/5IP/vriOZ8BLVxakkyDyr5dptVg0wR2ck3hthsw== tarball: 'file:projects/core-auth.tgz' version: 0.0.0 'file:projects/core-http.tgz': @@ -7914,6 +7931,7 @@ packages: '@azure/core-tracing': 1.0.0-preview.7 '@azure/eslint-plugin-azure-sdk': 2.0.1_ee45056a3a53530214d828c032d67185 '@azure/logger-js': 1.3.2 + '@opentelemetry/api': 0.5.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -7984,7 +8002,7 @@ packages: dev: false name: '@rush-temp/core-http' resolution: - integrity: sha512-3iLOCNXEQHsgOsCTDrLmMqSNldS1N8u1mbIovCrlVdkiK3pr+0N8K8Txoj2/PUVR8VMvt31ZeKwvB9txLTE/tw== + integrity: sha512-zNfdZZvfpV16xQxhnTHBxewuRF5jRD/Sx/TkEc2fD8hYoPI0mX7kXJgk/cWsA1YDSLa7+5T+Kdv8zUGZKpbXJg== tarball: 'file:projects/core-http.tgz' version: 0.0.0 'file:projects/core-lro.tgz': @@ -7992,6 +8010,7 @@ packages: '@azure/core-arm': 1.0.0-preview.7 '@azure/identity': 1.1.0-preview1 '@microsoft/api-extractor': 7.7.8 + '@opentelemetry/api': 0.5.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-multi-entry': 3.0.0_rollup@1.32.1 @@ -8041,7 +8060,7 @@ packages: dev: false name: '@rush-temp/core-lro' resolution: - integrity: sha512-Q2ycvTiywEt2t//BciGEsxAoAkoUznSrG/mwOj1ssneeb1Yln9zrgPTBr3OxsZpRRoZuIdqJOmKKXAR2ajVw6w== + integrity: sha512-1BFUqHyEqOs2hI7EynDhAqD7ewH2ymg935YdNSL8A/dZinZZrgKreDXw4/jxb7lU+e+81awsc4w9Unre1exTJg== tarball: 'file:projects/core-lro.tgz' version: 0.0.0 'file:projects/core-paging.tgz': @@ -8067,6 +8086,7 @@ packages: '@azure/eslint-plugin-azure-sdk': 2.0.1_ee45056a3a53530214d828c032d67185 '@microsoft/api-extractor': 7.7.8 '@opencensus/web-types': 0.0.7 + '@opentelemetry/api': 0.5.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -8100,7 +8120,7 @@ packages: dev: false name: '@rush-temp/core-tracing' resolution: - integrity: sha512-SJ+L9sNBKGjTh1Ye4OWZ1aqXJ534jIKQwi5eDRa6irbh1jSZsNUmSMnBxzkM3+0kfQZ8YP7jm6sjPykaOJ4hUQ== + integrity: sha512-gM5WRm3rnhI1Gr7Nlc6pi/w2uPFm3Ax2F3j9+ipwPRlKnSwipYf8PtkFuNeMJ3A/V7SbtbtKdzk73z1U9avSrQ== tarball: 'file:projects/core-tracing.tgz' version: 0.0.0 'file:projects/cosmos.tgz': @@ -8162,7 +8182,7 @@ packages: dev: false name: '@rush-temp/cosmos' resolution: - integrity: sha512-GRoPrAKiHI521c+rxNT791bVFShNn6YefMT78uX5GqvTkxZa1jY3t5B2IdISXe0w1egUKwqImF2etEza6/pRZw== + integrity: sha512-cXbpZcBYZ0Q0woYjoXqb30fvMNPE4yDrR4us2o0FMDFJc+wg4Lvx+I2lR3h4kkF+8cyDOO2ZKPqjLEYub0gF8A== tarball: 'file:projects/cosmos.tgz' version: 0.0.0 'file:projects/eslint-plugin-azure-sdk.tgz': @@ -8197,7 +8217,7 @@ packages: dev: false name: '@rush-temp/eslint-plugin-azure-sdk' resolution: - integrity: sha512-aMdxopTddXUy77fzX6jtFk9DIX9Hx8A77E+39V72mYUTU4YCv2Um4vKccChPLOMWbECP/XsEzfe9zT8kaR58/g== + integrity: sha512-7HW1oE0SQSM89pVPTrm2YgesENk3HstZh/83mElBHKxTfA5hDFc7h9GWk8sk61Lgjh476dkZq800bXHkDSXLGQ== tarball: 'file:projects/eslint-plugin-azure-sdk.tgz' version: 0.0.0 'file:projects/event-hubs.tgz': @@ -8206,6 +8226,7 @@ packages: '@azure/eslint-plugin-azure-sdk': 2.0.1_ee45056a3a53530214d828c032d67185 '@azure/identity': 1.1.0-preview1 '@microsoft/api-extractor': 7.7.8 + '@opentelemetry/api': 0.5.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-inject': 4.0.1_rollup@1.32.1 @@ -8278,7 +8299,7 @@ packages: dev: false name: '@rush-temp/event-hubs' resolution: - integrity: sha512-i6rPyYLlb/THBjrZMAcWFweSyM4g3rK7Bqpwzlo4RFGQvNil4ea1Ma0TSDYvUPXIWXybSLPKtelORdMLqCb0Hg== + integrity: sha512-EzbECQ4UD9tbQ3VfyLD3fCpGwCs1OIZ7cM2GW6R0V535o5izRlibmIMpE7dVaUp8nOSJYoJYXt7gKsv4ViJiKg== tarball: 'file:projects/event-hubs.tgz' version: 0.0.0 'file:projects/event-processor-host.tgz': @@ -8336,7 +8357,7 @@ packages: dev: false name: '@rush-temp/event-processor-host' resolution: - integrity: sha512-UKQZiZyDo3uX1TvimdPeny6Yc0s0t9foQLx1sap3CMzASBIocWrMXwYmxHWn3n8sRlOmMtqXNyJIy/1zru3+9A== + integrity: sha512-CB2toqzn5jYRFba3Kyrhh41O/mvafEch9CoPcBhdaV58GipBCNZUWKIqO+WxZK+9H8JrlvZt4Cl0/RovD5H40g== tarball: 'file:projects/event-processor-host.tgz' version: 0.0.0 'file:projects/eventhubs-checkpointstore-blob.tgz': @@ -8401,13 +8422,14 @@ packages: dev: false name: '@rush-temp/eventhubs-checkpointstore-blob' resolution: - integrity: sha512-uhmB8TQ1nS2HzSAVpAuoZx24dn9uyQ8lpwrY65FymlgKH+SaIXNsmS/hQHmtN/bGsV9yqIZa9dVWqggyKivb0A== + integrity: sha512-FdqFdO6ZeuMbv4lRc9C9y1BMHiFpmzUAz7nW+HtTIRndcjiG9X2Z4PYw+P5DMXNIoUrxAr/nIFePQuv1vf1kSw== tarball: 'file:projects/eventhubs-checkpointstore-blob.tgz' version: 0.0.0 'file:projects/identity.tgz': dependencies: '@azure/core-tracing': 1.0.0-preview.7 '@microsoft/api-extractor': 7.7.8 + '@opentelemetry/api': 0.5.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -8458,7 +8480,7 @@ packages: dev: false name: '@rush-temp/identity' resolution: - integrity: sha512-bRHuYxGTDgITEV8JB+gNz3zDAD/Gx5gIQqQbKyQ2rusBLohjOgZZv+29IaNSojMKvpV8Vhj2JN39TXiaabC1uw== + integrity: sha512-/wEU01xb/nG0euyrWaY0bLbERTifxQ3r2DbZxffPCeESxHy8FZWO9u+0wviiUkl8JYY3u5s175W7mb7YBLv4Aw== tarball: 'file:projects/identity.tgz' version: 0.0.0 'file:projects/keyvault-certificates.tgz': @@ -8467,6 +8489,7 @@ packages: '@azure/eslint-plugin-azure-sdk': 2.0.1_ee45056a3a53530214d828c032d67185 '@azure/identity': 1.1.0-preview1 '@microsoft/api-extractor': 7.7.8 + '@opentelemetry/api': 0.5.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -8525,7 +8548,7 @@ packages: dev: false name: '@rush-temp/keyvault-certificates' resolution: - integrity: sha512-kcF1QeALb78k1ebetS9RMvQ+ERE64bZ+6VbIljX9kFK8eCbWchkiM0VvY3z+4S/L5HAnQ0o7rqdRjgwBqP4w7A== + integrity: sha512-GDfnQHeU5shOeXD3n+/zBdx35uluC/m4Ufg3QB/P2/W6RQQzUP2GBeQXgyqHoNma9CWJG2XFr2sXXkMon07M2A== tarball: 'file:projects/keyvault-certificates.tgz' version: 0.0.0 'file:projects/keyvault-keys.tgz': @@ -8534,6 +8557,7 @@ packages: '@azure/eslint-plugin-azure-sdk': 2.0.1_ee45056a3a53530214d828c032d67185 '@azure/identity': 1.1.0-preview1 '@microsoft/api-extractor': 7.7.8 + '@opentelemetry/api': 0.5.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -8592,7 +8616,7 @@ packages: dev: false name: '@rush-temp/keyvault-keys' resolution: - integrity: sha512-WRzB1mONnSK1/qZdgaW2rO6QRIZLju/WDPqMn0gj+GOznT01XkpB8VMPQ5B0zRwk/N4g/rxGFCULHZ3YK+2/mQ== + integrity: sha512-RPOalobvP6PXOMYEFSucIuZAkT4D+Wo6okJXUtnO5ctdu3GhtinlBxOBGfW2M9DqEFX/dTxpOwnRVh9neCqBtA== tarball: 'file:projects/keyvault-keys.tgz' version: 0.0.0 'file:projects/keyvault-secrets.tgz': @@ -8601,6 +8625,7 @@ packages: '@azure/eslint-plugin-azure-sdk': 2.0.1_ee45056a3a53530214d828c032d67185 '@azure/identity': 1.1.0-preview1 '@microsoft/api-extractor': 7.7.8 + '@opentelemetry/api': 0.5.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -8659,7 +8684,7 @@ packages: dev: false name: '@rush-temp/keyvault-secrets' resolution: - integrity: sha512-MTwfUVkm4XKNPiROswoPlGtuaY8HX+79Lz3JGhWNCxAnSpVQyMirlis1GwmnTWckVU5xV6bY1vahUaqgw4N0hQ== + integrity: sha512-6w3Mzr8APDueRdFrT2gfsqyQj43ljkSZSRLT0L0TNAkOpnPSCsgI2g9MaEROo9ECZIKyoWljlYJRxxRHF4bzQg== tarball: 'file:projects/keyvault-secrets.tgz' version: 0.0.0 'file:projects/logger.tgz': @@ -8713,13 +8738,14 @@ packages: dev: false name: '@rush-temp/logger' resolution: - integrity: sha512-WtwITLuox02tjZotL5EXlCBDioO9z7Zd08RU/xclUCg/3RCpLUfdTC2xdNFiBhr1CsMm9NLYID4VcRDqfw0FQg== + integrity: sha512-xgO5cG/Tl3mj4Bs41prOWrkeGEjtAzbY4gGplXmqX6e1X8VVQUxqCiMoW3VwD0Y5cxHrVVdmDrbju3fZEvul2A== tarball: 'file:projects/logger.tgz' version: 0.0.0 'file:projects/search.tgz': dependencies: '@azure/core-tracing': 1.0.0-preview.7 '@microsoft/api-extractor': 7.7.8 + '@opentelemetry/api': 0.5.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -8769,7 +8795,7 @@ packages: dev: false name: '@rush-temp/search' resolution: - integrity: sha512-6QA0sKVcNaCv3TDdvbD4tSpaU9f+lUmOQYl3tgEYhgIh+4jBHh9vv9Cpga4/IQFVUwWQlDTbY2hlsfR+vRaZSw== + integrity: sha512-nmwe7NvDUzEKCy7BIsQRwK5UbxK2D70nJ4JTKlzLY+FfhW0A7+YPHbVpTi4oQowbdXVRJKsYtTk35UAzxCgEuA== tarball: 'file:projects/search.tgz' version: 0.0.0 'file:projects/service-bus.tgz': @@ -8777,6 +8803,7 @@ packages: '@azure/eslint-plugin-azure-sdk': 2.0.1_ee45056a3a53530214d828c032d67185 '@azure/identity': 1.1.0-preview1 '@microsoft/api-extractor': 7.7.8 + '@opentelemetry/api': 0.5.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-inject': 4.0.1_rollup@1.32.1 @@ -8848,7 +8875,7 @@ packages: dev: false name: '@rush-temp/service-bus' resolution: - integrity: sha512-o01tMu6B1o7ABcN8vMFmRH8NMBWva5VkUaxvEVItRm65o5FLyhLvmg39KkmEz6JdgD16WulE+uEbIUdl0Yd+iA== + integrity: sha512-owfQ/1gW4l0o9RZTZqUfTM8LfSMTMLtrd9/sh4BVi4vO5zWakRgf54omorsunSVMtmKbc4f6SVZLcLrG/n6SRw== tarball: 'file:projects/service-bus.tgz' version: 0.0.0 'file:projects/storage-blob.tgz': @@ -8856,6 +8883,7 @@ packages: '@azure/core-tracing': 1.0.0-preview.7 '@azure/identity': 1.1.0-preview1 '@microsoft/api-extractor': 7.7.8 + '@opentelemetry/api': 0.5.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-multi-entry': 3.0.0_rollup@1.32.1 @@ -8911,7 +8939,7 @@ packages: dev: false name: '@rush-temp/storage-blob' resolution: - integrity: sha512-JjNNxByexMxaQqbBHffzgp2DnG6gb2nRs/IILCB1d9r3SZ3/t1axzwzHbxQU3fmXN6hOO0brGqYe45IN9SsBPg== + integrity: sha512-NFjQZR+S7gLNs7dfuP7QLEzeCSW/AvTPv/DnS3PC0jdUCx5k7Fn9QKTrI33toHSMi6/V4KGEBwuOD97WcMQ1jg== tarball: 'file:projects/storage-blob.tgz' version: 0.0.0 'file:projects/storage-file-datalake.tgz': @@ -8919,6 +8947,7 @@ packages: '@azure/core-tracing': 1.0.0-preview.7 '@azure/identity': 1.1.0-preview1 '@microsoft/api-extractor': 7.7.8 + '@opentelemetry/api': 0.5.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-multi-entry': 3.0.0_rollup@1.32.1 @@ -8982,13 +9011,14 @@ packages: dev: false name: '@rush-temp/storage-file-datalake' resolution: - integrity: sha512-YJACP135onaEKbupR2QZYFSf2be3vfYYimWmKDuE4pocBhObK1ylt/AnJA2QrGwItvok2z3xj0jLGE/F6JTCag== + integrity: sha512-2vyJjEK3Tv5+jzBbmB/lHItoqe00agZDTS5cMMSNNGYGVXYTICnY79EdsZ47Nm7u5yYezZBX+ln32XNturHUJQ== tarball: 'file:projects/storage-file-datalake.tgz' version: 0.0.0 'file:projects/storage-file-share.tgz': dependencies: '@azure/core-tracing': 1.0.0-preview.7 '@microsoft/api-extractor': 7.7.8 + '@opentelemetry/api': 0.5.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-multi-entry': 3.0.0_rollup@1.32.1 @@ -9044,7 +9074,7 @@ packages: dev: false name: '@rush-temp/storage-file-share' resolution: - integrity: sha512-2TEucaS7nUIXXgqLgAWgYhGjLEaTFzIBckjlSNFSqGJxbevcDsWsxBBSvl/M8ld0NTFHqIKnR/ZyJeUEPfcPpA== + integrity: sha512-Z0B+qJD/wsHjApbmuTvUP8lSkGVvKh6iyMoHivCgXvxGDxf1FxX6VSChoCzodtkpnMpMkSqiCwU+rQ2g0BqMtA== tarball: 'file:projects/storage-file-share.tgz' version: 0.0.0 'file:projects/storage-queue.tgz': @@ -9052,6 +9082,7 @@ packages: '@azure/core-tracing': 1.0.0-preview.7 '@azure/identity': 1.1.0-preview1 '@microsoft/api-extractor': 7.7.8 + '@opentelemetry/api': 0.5.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-multi-entry': 3.0.0_rollup@1.32.1 @@ -9106,12 +9137,13 @@ packages: dev: false name: '@rush-temp/storage-queue' resolution: - integrity: sha512-TYoGzVK8a27ch4yuWj4d/UkDPJNYdQH/d+0ToM7+10G/9384QHPcNRcniMqyVkrDZL8D/4rgfHMqudpxmUA+Lg== + integrity: sha512-Y3XTAA8di8IC5mwkSy4Tyw+VnYHl4Eu2F+WHOTc7ApSQRBfNX4soK+LUGFYQSxc/ZvUJqLRnDOwADRonmXrWfQ== tarball: 'file:projects/storage-queue.tgz' version: 0.0.0 'file:projects/template.tgz': dependencies: '@microsoft/api-extractor': 7.7.8 + '@opentelemetry/api': 0.5.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -9157,11 +9189,12 @@ packages: dev: false name: '@rush-temp/template' resolution: - integrity: sha512-3wjLFt9oiVh5758lQ5J4UdDi90JhCk5mU4NdAwod4rTh9lE8NH6AqAbjzKhQ5RyHVEzqpJdVBx+43TgkCnvcsw== + integrity: sha512-56kS6Tq/5zZqiNYB8mRRT+UaIxvjjiAMVSL1oy5k2twmvW5/PX822xb+u/BhmPU0JsaYpO04W8kb7TR9Ae0MzQ== tarball: 'file:projects/template.tgz' version: 0.0.0 'file:projects/test-utils-recorder.tgz': dependencies: + '@opentelemetry/api': 0.5.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-multi-entry': 3.0.0_rollup@1.32.1 @@ -9218,7 +9251,7 @@ packages: dev: false name: '@rush-temp/test-utils-recorder' resolution: - integrity: sha512-hWi9AH7zhw/6qiKumaAUr1CcF/i/rct5G2rcq4wwmcr16hMVIM+YXEuuEO42JGwDO34gHFgpzA53ky9iPiPm8w== + integrity: sha512-iavWLNLt9WA5ybaNMd81roVsdkDHsq+GR0ki1SPWTZ4i4Xl+VBusbmLnN3+8sdFKY8SvHyl6gk157e2lNFUQ7w== tarball: 'file:projects/test-utils-recorder.tgz' version: 0.0.0 'file:projects/testhub.tgz': From 2b85d2099b76c31a7b91a116c9e855c831b4a0dc Mon Sep 17 00:00:00 2001 From: Jeff Fisher Date: Thu, 26 Mar 2020 19:42:40 -0700 Subject: [PATCH 11/29] Create new tracing interfaces --- .../core-tracing/review/core-tracing.api.md | 45 ++++++++++++++---- sdk/core/core-tracing/src/index.ts | 6 +++ sdk/core/core-tracing/src/interfaces.ts | 46 +++++++++++++++++++ .../src/utils/traceParentHeader.ts | 2 +- sdk/core/core-tracing/test/interfaces.spec.ts | 36 +++++++++++++++ 5 files changed, 124 insertions(+), 11 deletions(-) create mode 100644 sdk/core/core-tracing/src/interfaces.ts create mode 100644 sdk/core/core-tracing/test/interfaces.spec.ts diff --git a/sdk/core/core-tracing/review/core-tracing.api.md b/sdk/core/core-tracing/review/core-tracing.api.md index 8237988b1454..d1ff67005126 100644 --- a/sdk/core/core-tracing/review/core-tracing.api.md +++ b/sdk/core/core-tracing/review/core-tracing.api.md @@ -7,10 +7,10 @@ import { Attributes } from '@opentelemetry/api'; import { Span as OpenCensusSpan } from '@opencensus/web-types'; import { Tracer as OpenCensusTracer } from '@opencensus/web-types'; +import { SpanContext as OTSpanContext } from '@opentelemetry/api'; +import { SpanOptions as OTSpanOptions } from '@opentelemetry/api'; import { Span } from '@opentelemetry/api'; -import { SpanContext } from '@opentelemetry/api'; import { SpanKind } from '@opentelemetry/api'; -import { SpanOptions } from '@opentelemetry/api'; import { Status } from '@opentelemetry/api'; import { TimeInput } from '@opentelemetry/api'; import { Tracer } from '@opentelemetry/api'; @@ -28,7 +28,7 @@ export function getTracer(): Tracer; // @public export class NoOpSpan implements Span { addEvent(_name: string, _attributes?: Attributes): this; - context(): SpanContext; + context(): OTSpanContext; end(_endTime?: number): void; isRecording(): boolean; setAttribute(_key: string, _value: unknown): this; @@ -41,7 +41,7 @@ export class NoOpSpan implements Span { export class NoOpTracer implements Tracer { bind(target: T, _span?: Span): T; getCurrentSpan(): Span; - startSpan(_name: string, _options?: SpanOptions): Span; + startSpan(_name: string, _options?: OTSpanOptions): Span; withSpan ReturnType>(_span: Span, fn: T): ReturnType; } @@ -50,9 +50,9 @@ export { OpenCensusSpan } // @public export class OpenCensusSpanWrapper implements Span { constructor(span: OpenCensusSpan); - constructor(tracer: OpenCensusTracerWrapper, name: string, options?: SpanOptions); + constructor(tracer: OpenCensusTracerWrapper, name: string, options?: OTSpanOptions); addEvent(_name: string, _attributes?: Attributes): this; - context(): SpanContext; + context(): OTSpanContext; end(_endTime?: number): void; getWrappedSpan(): OpenCensusSpan; isRecording(): boolean; @@ -70,13 +70,24 @@ export class OpenCensusTracerWrapper implements Tracer { bind(_target: T, _span?: Span): T; getCurrentSpan(): Span | undefined; getWrappedTracer(): TracerBase; - startSpan(name: string, options?: SpanOptions): Span; + startSpan(name: string, options?: OTSpanOptions): Span; withSpan unknown>(_span: Span, _fn: T): ReturnType; } +export { OTSpanContext } + +export { OTSpanOptions } + // @public export function setTracer(tracer: Tracer): void; +// @public +export interface SpanContext { + spanId: string; + traceFlags: number; + traceId: string; +} + // @public export interface SpanGraph { roots: SpanGraphNode[]; @@ -88,11 +99,19 @@ export interface SpanGraphNode { name: string; } +// @public +export interface SpanOptions { + attributes?: { + [key: string]: unknown; + }; + parent?: SpanContext | null; +} + // @public export class TestSpan extends NoOpSpan { - constructor(parentTracer: TestTracer, name: string, context: SpanContext, kind: SpanKind, parentSpanId?: string, startTime?: TimeInput); + constructor(parentTracer: TestTracer, name: string, context: OTSpanContext, kind: SpanKind, parentSpanId?: string, startTime?: TimeInput); readonly attributes: Attributes; - context(): SpanContext; + context(): OTSpanContext; end(_endTime?: number): void; endCalled: boolean; isRecording(): boolean; @@ -113,9 +132,15 @@ export class TestTracer extends NoOpTracer { getKnownSpans(): TestSpan[]; getRootSpans(): TestSpan[]; getSpanGraph(traceId: string): SpanGraph; - startSpan(name: string, options?: SpanOptions): TestSpan; + startSpan(name: string, options?: OTSpanOptions): TestSpan; } +// @public +export const enum TraceFlags { + NONE = 0, + SAMPLED = 1 +} + // (No @packageDocumentation comment for this package) diff --git a/sdk/core/core-tracing/src/index.ts b/sdk/core/core-tracing/src/index.ts index d5363e031678..6692208c8c96 100644 --- a/sdk/core/core-tracing/src/index.ts +++ b/sdk/core/core-tracing/src/index.ts @@ -11,6 +11,12 @@ export { OpenCensusTracerWrapper } from "./tracers/opencensus/openCensusTracerWr export { TestTracer, SpanGraph, SpanGraphNode } from "./tracers/test/testTracer"; export { TestSpan } from "./tracers/test/testSpan"; +// Shared interfaces +export { SpanContext, SpanOptions, TraceFlags } from "./interfaces"; + +// OT interfaces +export { SpanContext as OTSpanContext, SpanOptions as OTSpanOptions } from "@opentelemetry/api"; + // Utilities export { extractSpanContextFromTraceParentHeader, diff --git a/sdk/core/core-tracing/src/interfaces.ts b/sdk/core/core-tracing/src/interfaces.ts new file mode 100644 index 000000000000..5967de291ae6 --- /dev/null +++ b/sdk/core/core-tracing/src/interfaces.ts @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +/** + * Shorthand enum for common traceFlags values inside SpanContext + */ +export const enum TraceFlags { + /** No flag set. */ + NONE = 0x0, + /** Caller is collecting trace information. */ + SAMPLED = 0x1 +} + +/** + * A light interface that tries to be structurally compatible with OpenTelemetry + */ +export interface SpanContext { + /** + * UUID of a trace. + */ + traceId: string; + /** + * UUID of a Span. + */ + spanId: string; + /** + * https://www.w3.org/TR/trace-context/#trace-flags + */ + traceFlags: number; +} + +/** + * An interface that enables manual propagation of Spans + */ +export interface SpanOptions { + /** + * The SpanContext that refers to a parent span, if any. + * A null value indicates that this should be a new root span, + * rather than potentially detecting a span via a context manager. + */ + parent?: SpanContext | null; + /** + * Attributes to set on the Span + */ + attributes?: { [key: string]: unknown }; +} diff --git a/sdk/core/core-tracing/src/utils/traceParentHeader.ts b/sdk/core/core-tracing/src/utils/traceParentHeader.ts index 72d023e4f7b0..20144f2a615a 100644 --- a/sdk/core/core-tracing/src/utils/traceParentHeader.ts +++ b/sdk/core/core-tracing/src/utils/traceParentHeader.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -import { SpanContext, TraceFlags } from "@opentelemetry/api"; +import { SpanContext, TraceFlags } from "../interfaces"; const VERSION = "00"; diff --git a/sdk/core/core-tracing/test/interfaces.spec.ts b/sdk/core/core-tracing/test/interfaces.spec.ts new file mode 100644 index 000000000000..67b756db05e1 --- /dev/null +++ b/sdk/core/core-tracing/test/interfaces.spec.ts @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +import * as assert from "assert"; +import { SpanContext, TraceFlags, SpanOptions } from "../src"; +import { SpanContext as OTSpanContext, SpanOptions as OTSpanOptions } from "@opentelemetry/api"; + +describe("interface compatibility", () => { + it("SpanContext is assignable", () => { + const context: SpanContext = { + spanId: "", + traceId: "", + traceFlags: TraceFlags.NONE + }; + + const OTContext: OTSpanContext = context; + const context2: SpanContext = OTContext; + + assert.ok(context2); + }); + + it("SpanOptions can be passed to OT", () => { + const context: SpanContext = { + spanId: "", + traceId: "", + traceFlags: TraceFlags.NONE + }; + + const spanOptions: SpanOptions = { + parent: context + }; + + const OTSpanOptions: OTSpanOptions = spanOptions; + assert.ok(OTSpanOptions); + }); +}); From f50850884307b300b485b3020dc28b3b04d14226 Mon Sep 17 00:00:00 2001 From: Jeff Fisher Date: Thu, 26 Mar 2020 19:56:48 -0700 Subject: [PATCH 12/29] Try to adopt --- .../app-configuration/src/internal/tracingHelpers.ts | 2 +- sdk/core/core-auth/review/core-auth.api.md | 2 +- sdk/core/core-auth/src/operationOptions.ts | 2 +- sdk/core/core-http/src/operationOptions.ts | 2 +- sdk/core/core-http/src/webResource.ts | 2 +- .../core-http/test/policies/tracingPolicyTests.ts | 10 +++++----- .../event-hubs/src/diagnostics/messageSpan.ts | 2 +- sdk/eventhub/event-hubs/src/impl/eventHubClient.ts | 4 ++-- sdk/eventhub/event-hubs/src/util/operationOptions.ts | 8 ++++---- sdk/eventhub/event-hubs/test/hubruntime.spec.ts | 6 +++--- sdk/eventhub/event-hubs/test/sender.spec.ts | 8 ++++---- sdk/identity/identity/review/identity.api.md | 12 ++++++++++++ sdk/identity/identity/src/util/tracing.ts | 2 +- .../test/node/authorizationCodeCredential.spec.ts | 2 +- .../test/node/clientCertificateCredential.spec.ts | 2 +- .../identity/test/node/deviceCodeCredential.spec.ts | 2 +- .../identity/test/node/environmentCredential.spec.ts | 2 +- sdk/keyvault/keyvault-certificates/src/index.ts | 2 +- sdk/keyvault/keyvault-keys/src/cryptographyClient.ts | 2 +- sdk/keyvault/keyvault-keys/src/index.ts | 2 +- sdk/keyvault/keyvault-secrets/src/index.ts | 2 +- sdk/search/search/src/tracing.ts | 2 +- sdk/search/search/test/tracing.spec.ts | 4 ++-- .../service-bus/src/modelsToBeSharedWithEventHubs.ts | 8 ++++---- sdk/storage/storage-blob/src/StorageClient.ts | 2 +- sdk/storage/storage-blob/src/utils/tracing.ts | 2 +- sdk/storage/storage-blob/test/blobclient.spec.ts | 2 +- .../storage-blob/test/containerclient.spec.ts | 2 +- .../storage-file-datalake/src/StorageClient.ts | 2 +- .../storage-file-datalake/src/utils/tracing.ts | 2 +- .../test/filesystemclient.spec.ts | 2 +- .../storage-file-datalake/test/pathclient.spec.ts | 2 +- sdk/storage/storage-file-share/src/StorageClient.ts | 2 +- sdk/storage/storage-file-share/src/utils/tracing.ts | 2 +- .../storage-file-share/test/directoryclient.spec.ts | 2 +- .../storage-file-share/test/fileclient.spec.ts | 2 +- sdk/storage/storage-queue/src/StorageClient.ts | 2 +- sdk/storage/storage-queue/src/utils/tracing.ts | 2 +- sdk/storage/storage-queue/test/queueclient.spec.ts | 4 +++- sdk/textanalytics/ai-text-analytics/src/tracing.ts | 2 +- .../ai-text-analytics/test/tracing.spec.ts | 4 ++-- 41 files changed, 72 insertions(+), 58 deletions(-) diff --git a/sdk/appconfiguration/app-configuration/src/internal/tracingHelpers.ts b/sdk/appconfiguration/app-configuration/src/internal/tracingHelpers.ts index a31962a746de..a4f844d64d3e 100644 --- a/sdk/appconfiguration/app-configuration/src/internal/tracingHelpers.ts +++ b/sdk/appconfiguration/app-configuration/src/internal/tracingHelpers.ts @@ -90,7 +90,7 @@ export class Spanner { ...options, spanOptions: { ...spanOptions, - parent: span, + parent: span.context(), attributes: { ...spanOptions.attributes, "az.namespace": "Microsoft.AppConfiguration" diff --git a/sdk/core/core-auth/review/core-auth.api.md b/sdk/core/core-auth/review/core-auth.api.md index e4a19d95eb70..72876481dfd9 100644 --- a/sdk/core/core-auth/review/core-auth.api.md +++ b/sdk/core/core-auth/review/core-auth.api.md @@ -5,7 +5,7 @@ ```ts import { AbortSignalLike } from '@azure/abort-controller'; -import { SpanOptions } from '@opentelemetry/api'; +import { SpanOptions } from '@azure/core-tracing'; export { AbortSignalLike } diff --git a/sdk/core/core-auth/src/operationOptions.ts b/sdk/core/core-auth/src/operationOptions.ts index dc74a6932dfa..0488230e10b7 100644 --- a/sdk/core/core-auth/src/operationOptions.ts +++ b/sdk/core/core-auth/src/operationOptions.ts @@ -2,7 +2,7 @@ // Licensed under the MIT License. import { AbortSignalLike } from "@azure/abort-controller"; -import { SpanOptions } from "@opentelemetry/api"; +import { SpanOptions } from "@azure/core-tracing"; /** * The base options type for all operations. diff --git a/sdk/core/core-http/src/operationOptions.ts b/sdk/core/core-http/src/operationOptions.ts index ecfb2b23e0af..9bf5f5a8c972 100644 --- a/sdk/core/core-http/src/operationOptions.ts +++ b/sdk/core/core-http/src/operationOptions.ts @@ -1,5 +1,5 @@ import { AbortSignalLike } from "@azure/abort-controller"; -import { SpanOptions } from "@opentelemetry/api"; +import { SpanOptions } from "@azure/core-tracing"; import { TransferProgressEvent, RequestOptionsBase } from "./webResource"; /** diff --git a/sdk/core/core-http/src/webResource.ts b/sdk/core/core-http/src/webResource.ts index cd70b10ea91a..dc51a4570e48 100644 --- a/sdk/core/core-http/src/webResource.ts +++ b/sdk/core/core-http/src/webResource.ts @@ -9,7 +9,7 @@ import { HttpOperationResponse } from "./httpOperationResponse"; import { OperationResponse } from "./operationResponse"; import { ProxySettings } from "./serviceClient"; import { AbortSignalLike } from "@azure/abort-controller"; -import { SpanOptions } from "@opentelemetry/api"; +import { SpanOptions } from "@azure/core-tracing"; export type HttpMethods = | "GET" diff --git a/sdk/core/core-http/test/policies/tracingPolicyTests.ts b/sdk/core/core-http/test/policies/tracingPolicyTests.ts index 8db5f572dfa8..93cd0536d3fd 100644 --- a/sdk/core/core-http/test/policies/tracingPolicyTests.ts +++ b/sdk/core/core-http/test/policies/tracingPolicyTests.ts @@ -114,7 +114,7 @@ describe("tracingPolicy", function() { setTracer(mockTracer); const request = new WebResource(); request.spanOptions = { - parent: ROOT_SPAN + parent: ROOT_SPAN.context() }; const policy = tracingPolicy().create(mockPolicy, new RequestPolicyOptions()); await policy.sendRequest(request); @@ -141,7 +141,7 @@ describe("tracingPolicy", function() { setTracer(mockTracer); const request = new WebResource(); request.spanOptions = { - parent: ROOT_SPAN + parent: ROOT_SPAN.context() }; const policy = tracingPolicy().create(mockPolicy, new RequestPolicyOptions()); await policy.sendRequest(request); @@ -168,7 +168,7 @@ describe("tracingPolicy", function() { setTracer(mockTracer); const request = new WebResource(); request.spanOptions = { - parent: ROOT_SPAN + parent: ROOT_SPAN.context() }; const policy = tracingPolicy().create(mockPolicy, new RequestPolicyOptions()); await policy.sendRequest(request); @@ -195,7 +195,7 @@ describe("tracingPolicy", function() { setTracer(mockTracer); const request = new WebResource(); request.spanOptions = { - parent: ROOT_SPAN + parent: ROOT_SPAN.context() }; const policy = tracingPolicy().create( { @@ -233,7 +233,7 @@ describe("tracingPolicy", function() { setTracer(new NoOpTracer()); const request = new WebResource(); request.spanOptions = { - parent: ROOT_SPAN + parent: ROOT_SPAN.context() }; const policy = tracingPolicy().create(mockPolicy, new RequestPolicyOptions()); await policy.sendRequest(request); diff --git a/sdk/eventhub/event-hubs/src/diagnostics/messageSpan.ts b/sdk/eventhub/event-hubs/src/diagnostics/messageSpan.ts index c194501bb49a..e31f66c6db6c 100644 --- a/sdk/eventhub/event-hubs/src/diagnostics/messageSpan.ts +++ b/sdk/eventhub/event-hubs/src/diagnostics/messageSpan.ts @@ -8,7 +8,7 @@ import { Span, SpanContext, SpanKind } from "@opentelemetry/api"; * @internal * @ignore */ -export function createMessageSpan(parentSpan?: Span | SpanContext): Span { +export function createMessageSpan(parentSpan?: Span | SpanContext | null): Span { const tracer = getTracer(); const span = tracer.startSpan("Azure.EventHubs.message", { kind: SpanKind.PRODUCER, diff --git a/sdk/eventhub/event-hubs/src/impl/eventHubClient.ts b/sdk/eventhub/event-hubs/src/impl/eventHubClient.ts index 5af9955429d9..0be1a0fce459 100644 --- a/sdk/eventhub/event-hubs/src/impl/eventHubClient.ts +++ b/sdk/eventhub/event-hubs/src/impl/eventHubClient.ts @@ -214,7 +214,7 @@ export class EventHubClient { private _createClientSpan( operationName: OperationNames, - parentSpan?: Span | SpanContext, + parentSpan?: Span | SpanContext | null, internal: boolean = false ): Span { const tracer = getTracer(); @@ -397,7 +397,7 @@ export class EventHubClient { ...options, tracingOptions: { spanOptions: { - parent: clientSpan + parent: clientSpan.context() } } }); diff --git a/sdk/eventhub/event-hubs/src/util/operationOptions.ts b/sdk/eventhub/event-hubs/src/util/operationOptions.ts index 77ab8020cbdd..5d57b5e5d975 100644 --- a/sdk/eventhub/event-hubs/src/util/operationOptions.ts +++ b/sdk/eventhub/event-hubs/src/util/operationOptions.ts @@ -2,7 +2,8 @@ // Licensed under the MIT License. import { AbortSignalLike } from "@azure/abort-controller"; -import { Span, SpanContext, SpanOptions } from "@opentelemetry/api"; +import { Span, SpanContext } from "@opentelemetry/api"; +import { SpanOptions } from "@azure/core-tracing"; /** * Options for configuring tracing. @@ -37,7 +38,6 @@ export interface OperationOptions extends TracingOptions { */ export function getParentSpan( options: Pick -): Span | SpanContext | undefined { - const parent = options.tracingOptions?.spanOptions?.parent; - return parent || undefined; +): Span | SpanContext | null | undefined { + return options.tracingOptions?.spanOptions?.parent; } diff --git a/sdk/eventhub/event-hubs/test/hubruntime.spec.ts b/sdk/eventhub/event-hubs/test/hubruntime.spec.ts index ab7b8f0631d8..03f9c74ab42f 100644 --- a/sdk/eventhub/event-hubs/test/hubruntime.spec.ts +++ b/sdk/eventhub/event-hubs/test/hubruntime.spec.ts @@ -84,7 +84,7 @@ describe("RuntimeInformation #RunnableInBrowser", function(): void { const ids = await client.getPartitionIds({ tracingOptions: { spanOptions: { - parent: rootSpan + parent: rootSpan.context() } } }); @@ -158,7 +158,7 @@ describe("RuntimeInformation #RunnableInBrowser", function(): void { const hubRuntimeInfo = await client.getProperties({ tracingOptions: { spanOptions: { - parent: rootSpan + parent: rootSpan.context() } } }); @@ -270,7 +270,7 @@ describe("RuntimeInformation #RunnableInBrowser", function(): void { const partitionRuntimeInfo = await client.getPartitionProperties("0", { tracingOptions: { spanOptions: { - parent: rootSpan + parent: rootSpan.context() } } }); diff --git a/sdk/eventhub/event-hubs/test/sender.spec.ts b/sdk/eventhub/event-hubs/test/sender.spec.ts index 4452f9dd6119..93587fe3c27c 100644 --- a/sdk/eventhub/event-hubs/test/sender.spec.ts +++ b/sdk/eventhub/event-hubs/test/sender.spec.ts @@ -125,7 +125,7 @@ describe("EventHub Sender #RunnableInBrowser", function(): void { { tracingOptions: { spanOptions: { - parent: rootSpan + parent: rootSpan.context() } } } @@ -424,7 +424,7 @@ describe("EventHub Sender #RunnableInBrowser", function(): void { await producerClient.sendBatch(eventDataBatch, { tracingOptions: { spanOptions: { - parent: rootSpan + parent: rootSpan.context() } } }); @@ -712,7 +712,7 @@ describe("EventHub Sender #RunnableInBrowser", function(): void { await producer.send(events, { tracingOptions: { spanOptions: { - parent: rootSpan + parent: rootSpan.context() } } }); @@ -778,7 +778,7 @@ describe("EventHub Sender #RunnableInBrowser", function(): void { await producer.send(events, { tracingOptions: { spanOptions: { - parent: rootSpan + parent: rootSpan.context() } } }); diff --git a/sdk/identity/identity/review/identity.api.md b/sdk/identity/identity/review/identity.api.md index d84d2d26fe50..c5cac0d691ec 100644 --- a/sdk/identity/identity/review/identity.api.md +++ b/sdk/identity/identity/review/identity.api.md @@ -115,6 +115,18 @@ export interface InteractiveBrowserCredentialOptions extends TokenCredentialOpti tenantId?: string; } +// @public +export enum KnownAuthorityHosts { + // (undocumented) + AzureChina = "https://login.chinacloudapi.cn", + // (undocumented) + AzureGermany = "https://login.microsoftonline.de", + // (undocumented) + AzureGovernment = "https://login.microsoftonline.us", + // (undocumented) + AzurePublicCloud = "https://login.microsoftonline.com" +} + // @public export const logger: import("@azure/logger").AzureLogger; diff --git a/sdk/identity/identity/src/util/tracing.ts b/sdk/identity/identity/src/util/tracing.ts index d53bcf709c89..b23520bd2cca 100644 --- a/sdk/identity/identity/src/util/tracing.ts +++ b/sdk/identity/identity/src/util/tracing.ts @@ -44,7 +44,7 @@ export function createSpan( ...tracingOptions, spanOptions: { ...tracingOptions.spanOptions, - parent: span, + parent: span.context(), attributes: { ...spanOptions.attributes, "az.namespace": "Microsoft.AAD" diff --git a/sdk/identity/identity/test/node/authorizationCodeCredential.spec.ts b/sdk/identity/identity/test/node/authorizationCodeCredential.spec.ts index 09b975711784..264e0abf7bc4 100644 --- a/sdk/identity/identity/test/node/authorizationCodeCredential.spec.ts +++ b/sdk/identity/identity/test/node/authorizationCodeCredential.spec.ts @@ -100,7 +100,7 @@ describe("AuthorizationCodeCredential", function() { await credential.getToken("scope", { tracingOptions: { spanOptions: { - parent: rootSpan + parent: rootSpan.context() } } }); diff --git a/sdk/identity/identity/test/node/clientCertificateCredential.spec.ts b/sdk/identity/identity/test/node/clientCertificateCredential.spec.ts index b95296e8c152..56073470b763 100644 --- a/sdk/identity/identity/test/node/clientCertificateCredential.spec.ts +++ b/sdk/identity/identity/test/node/clientCertificateCredential.spec.ts @@ -97,7 +97,7 @@ describe("ClientCertificateCredential", function() { await credential.getToken("scope", { tracingOptions: { spanOptions: { - parent: rootSpan + parent: rootSpan.context() } } }); diff --git a/sdk/identity/identity/test/node/deviceCodeCredential.spec.ts b/sdk/identity/identity/test/node/deviceCodeCredential.spec.ts index d0340404b947..8dbcc78c9c49 100644 --- a/sdk/identity/identity/test/node/deviceCodeCredential.spec.ts +++ b/sdk/identity/identity/test/node/deviceCodeCredential.spec.ts @@ -337,7 +337,7 @@ describe("DeviceCodeCredential", function() { await credential.getToken("scope", { tracingOptions: { spanOptions: { - parent: rootSpan + parent: rootSpan.context() } } }); diff --git a/sdk/identity/identity/test/node/environmentCredential.spec.ts b/sdk/identity/identity/test/node/environmentCredential.spec.ts index c7a0fdfd1c94..fdb121be90b3 100644 --- a/sdk/identity/identity/test/node/environmentCredential.spec.ts +++ b/sdk/identity/identity/test/node/environmentCredential.spec.ts @@ -94,7 +94,7 @@ describe("EnvironmentCredential", function() { await credential.getToken("scope", { tracingOptions: { spanOptions: { - parent: rootSpan + parent: rootSpan.context() } } }); diff --git a/sdk/keyvault/keyvault-certificates/src/index.ts b/sdk/keyvault/keyvault-certificates/src/index.ts index 15a11a1e0481..b5950ebb9d8d 100644 --- a/sdk/keyvault/keyvault-certificates/src/index.ts +++ b/sdk/keyvault/keyvault-certificates/src/index.ts @@ -2235,7 +2235,7 @@ export class CertificateClient { ...options, spanOptions: { ...spanOptions, - parent: span, + parent: span.context(), attributes: { ...spanOptions.attributes, "az.namespace": "Microsoft.KeyVault" diff --git a/sdk/keyvault/keyvault-keys/src/cryptographyClient.ts b/sdk/keyvault/keyvault-keys/src/cryptographyClient.ts index 47d058669bd9..f4c75ecab9c1 100644 --- a/sdk/keyvault/keyvault-keys/src/cryptographyClient.ts +++ b/sdk/keyvault/keyvault-keys/src/cryptographyClient.ts @@ -777,7 +777,7 @@ export class CryptographyClient { ...options, spanOptions: { ...spanOptions, - parent: span, + parent: span.context(), attributes: { ...spanOptions.attributes, "az.namespace": "Microsoft.KeyVault" diff --git a/sdk/keyvault/keyvault-keys/src/index.ts b/sdk/keyvault/keyvault-keys/src/index.ts index 1235717c485f..8b09610299ab 100644 --- a/sdk/keyvault/keyvault-keys/src/index.ts +++ b/sdk/keyvault/keyvault-keys/src/index.ts @@ -1277,7 +1277,7 @@ export class KeyClient { ...options, spanOptions: { ...spanOptions, - parent: span, + parent: span.context(), attributes: { ...spanOptions.attributes, "az.namespace": "Microsoft.KeyVault" diff --git a/sdk/keyvault/keyvault-secrets/src/index.ts b/sdk/keyvault/keyvault-secrets/src/index.ts index 3fceda333d6b..490867cbc79e 100644 --- a/sdk/keyvault/keyvault-secrets/src/index.ts +++ b/sdk/keyvault/keyvault-secrets/src/index.ts @@ -1018,7 +1018,7 @@ export class SecretClient { ...options, spanOptions: { ...spanOptions, - parent: span, + parent: span.context(), attributes: { ...spanOptions.attributes, "az.namespace": "Microsoft.KeyVault" diff --git a/sdk/search/search/src/tracing.ts b/sdk/search/search/src/tracing.ts index 48c2852039ec..9fdc015b9b93 100644 --- a/sdk/search/search/src/tracing.ts +++ b/sdk/search/search/src/tracing.ts @@ -32,7 +32,7 @@ export function createSpan( if (span.isRecording()) { newSpanOptions = { ...tracingOptions.spanOptions, - parent: span, + parent: span.context(), attributes: { ...spanOptions.attributes, "az.namespace": "Microsoft.Search" diff --git a/sdk/search/search/test/tracing.spec.ts b/sdk/search/search/test/tracing.spec.ts index 5858011f91d9..224a77151175 100644 --- a/sdk/search/search/test/tracing.spec.ts +++ b/sdk/search/search/test/tracing.spec.ts @@ -38,7 +38,7 @@ describe("tracing.createSpan", () => { const expected: OperationOptions = { tracingOptions: { spanOptions: { - parent: span, + parent: span.context(), attributes: { "az.namespace": "Microsoft.Search" } @@ -63,7 +63,7 @@ describe("tracing.createSpan", () => { const expected: OperationOptions = { tracingOptions: { spanOptions: { - parent: span, + parent: span.context(), attributes: { "az.namespace": "Microsoft.Search", foo: "bar" diff --git a/sdk/servicebus/service-bus/src/modelsToBeSharedWithEventHubs.ts b/sdk/servicebus/service-bus/src/modelsToBeSharedWithEventHubs.ts index 17e4436133e4..8ea57707fb87 100644 --- a/sdk/servicebus/service-bus/src/modelsToBeSharedWithEventHubs.ts +++ b/sdk/servicebus/service-bus/src/modelsToBeSharedWithEventHubs.ts @@ -4,7 +4,8 @@ // TODO: this code is a straight-copy from EventHubs. Need to merge. import { AbortSignalLike } from "@azure/abort-controller"; -import { Span, SpanContext, SpanOptions } from "@opentelemetry/api"; +import { Span, SpanContext } from "@opentelemetry/api"; +import { SpanOptions } from "@azure/core-tracing"; /** * Options for configuring tracing. @@ -39,7 +40,6 @@ export interface OperationOptions extends TracingOptions { */ export function getParentSpan( options: Pick -): Span | SpanContext | undefined { - const parent = options.tracingOptions?.spanOptions?.parent; - return parent || undefined; +): Span | SpanContext | null | undefined { + return options.tracingOptions?.spanOptions?.parent; } diff --git a/sdk/storage/storage-blob/src/StorageClient.ts b/sdk/storage/storage-blob/src/StorageClient.ts index 0bd145e73add..5fe0d3c1d80b 100644 --- a/sdk/storage/storage-blob/src/StorageClient.ts +++ b/sdk/storage/storage-blob/src/StorageClient.ts @@ -7,7 +7,7 @@ import { escapeURLPath, getURLScheme, iEqual, getAccountNameFromUrl } from "./ut import { AnonymousCredential } from "./credentials/AnonymousCredential"; import { StorageSharedKeyCredential } from "./credentials/StorageSharedKeyCredential"; import { TokenCredential, isTokenCredential, isNode } from "@azure/core-http"; -import { SpanOptions } from "@opentelemetry/api"; +import { SpanOptions } from "@azure/core-tracing"; /** * An interface for options common to every remote operation. diff --git a/sdk/storage/storage-blob/src/utils/tracing.ts b/sdk/storage/storage-blob/src/utils/tracing.ts index d2c5bfda0f86..cdcb46396587 100644 --- a/sdk/storage/storage-blob/src/utils/tracing.ts +++ b/sdk/storage/storage-blob/src/utils/tracing.ts @@ -27,7 +27,7 @@ export function createSpan( if (span.isRecording()) { newOptions = { ...tracingOptions.spanOptions, - parent: span, + parent: span.context(), attributes: { ...spanOptions.attributes, "az.namespace": "Microsoft.Storage" diff --git a/sdk/storage/storage-blob/test/blobclient.spec.ts b/sdk/storage/storage-blob/test/blobclient.spec.ts index ee1ada53d888..846cfe3e1b51 100644 --- a/sdk/storage/storage-blob/test/blobclient.spec.ts +++ b/sdk/storage/storage-blob/test/blobclient.spec.ts @@ -520,7 +520,7 @@ describe("BlobClient", () => { const result = await blobClient.download(undefined, undefined, { tracingOptions: { - spanOptions: { parent: rootSpan } + spanOptions: { parent: rootSpan.context() } } }); assert.deepStrictEqual(await bodyToString(result, content.length), content); diff --git a/sdk/storage/storage-blob/test/containerclient.spec.ts b/sdk/storage/storage-blob/test/containerclient.spec.ts index 162e07266ba4..e88fe602788c 100644 --- a/sdk/storage/storage-blob/test/containerclient.spec.ts +++ b/sdk/storage/storage-blob/test/containerclient.spec.ts @@ -651,7 +651,7 @@ describe("ContainerClient", () => { blobHTTPHeaders: options, metadata: options.metadata, tracingOptions: { - spanOptions: { parent: rootSpan } + spanOptions: { parent: rootSpan.context() } } }); diff --git a/sdk/storage/storage-file-datalake/src/StorageClient.ts b/sdk/storage/storage-file-datalake/src/StorageClient.ts index 7a0e0d93b1c7..b4e5add002b7 100644 --- a/sdk/storage/storage-file-datalake/src/StorageClient.ts +++ b/sdk/storage/storage-file-datalake/src/StorageClient.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. import { isNode, isTokenCredential, TokenCredential } from "@azure/core-http"; -import { SpanOptions } from "@opentelemetry/api"; +import { SpanOptions } from "@azure/core-tracing"; import { AnonymousCredential } from "./credentials/AnonymousCredential"; import { StorageSharedKeyCredential } from "./credentials/StorageSharedKeyCredential"; diff --git a/sdk/storage/storage-file-datalake/src/utils/tracing.ts b/sdk/storage/storage-file-datalake/src/utils/tracing.ts index 9384a9cca71f..5209d9e98ce5 100644 --- a/sdk/storage/storage-file-datalake/src/utils/tracing.ts +++ b/sdk/storage/storage-file-datalake/src/utils/tracing.ts @@ -27,7 +27,7 @@ export function createSpan( if (span.isRecording()) { newOptions = { ...tracingOptions.spanOptions, - parent: span, + parent: span.context(), attributes: { ...spanOptions.attributes, "az.namespace": "Microsoft.Storage" diff --git a/sdk/storage/storage-file-datalake/test/filesystemclient.spec.ts b/sdk/storage/storage-file-datalake/test/filesystemclient.spec.ts index 7c78b73ecaac..2b4a63698e23 100644 --- a/sdk/storage/storage-file-datalake/test/filesystemclient.spec.ts +++ b/sdk/storage/storage-file-datalake/test/filesystemclient.spec.ts @@ -56,7 +56,7 @@ describe("DataLakeFileSystemClient", () => { keyb: "valb" }; await fileSystemClient.setMetadata(metadata, { - tracingOptions: { spanOptions: { parent: rootSpan } } + tracingOptions: { spanOptions: { parent: rootSpan.context() } } }); rootSpan.end(); diff --git a/sdk/storage/storage-file-datalake/test/pathclient.spec.ts b/sdk/storage/storage-file-datalake/test/pathclient.spec.ts index bed7969ae7f2..bd6fc9a256ee 100644 --- a/sdk/storage/storage-file-datalake/test/pathclient.spec.ts +++ b/sdk/storage/storage-file-datalake/test/pathclient.spec.ts @@ -152,7 +152,7 @@ describe("DataLakePathClient", () => { const result = await fileClient.read(undefined, undefined, { tracingOptions: { - spanOptions: { parent: rootSpan } + spanOptions: { parent: rootSpan.context() } } }); assert.deepStrictEqual(await bodyToString(result, content.length), content); diff --git a/sdk/storage/storage-file-share/src/StorageClient.ts b/sdk/storage/storage-file-share/src/StorageClient.ts index aecdc0f8c448..ecb4ac069768 100644 --- a/sdk/storage/storage-file-share/src/StorageClient.ts +++ b/sdk/storage/storage-file-share/src/StorageClient.ts @@ -5,7 +5,7 @@ import { StorageClientContext } from "./generated/src/storageClientContext"; import { Pipeline } from "./Pipeline"; import { escapeURLPath, getAccountNameFromUrl } from "./utils/utils.common"; import { SERVICE_VERSION } from "./utils/constants"; -import { SpanOptions } from "@opentelemetry/api"; +import { SpanOptions } from "@azure/core-tracing"; /** * An interface for options common to every remote operation. diff --git a/sdk/storage/storage-file-share/src/utils/tracing.ts b/sdk/storage/storage-file-share/src/utils/tracing.ts index 0a3c0a555279..0ce666e4cc64 100644 --- a/sdk/storage/storage-file-share/src/utils/tracing.ts +++ b/sdk/storage/storage-file-share/src/utils/tracing.ts @@ -27,7 +27,7 @@ export function createSpan( if (span.isRecording()) { newOptions = { ...tracingOptions.spanOptions, - parent: span, + parent: span.context(), attributes: { ...spanOptions.attributes, "az.namespace": "Microsoft.Storage" diff --git a/sdk/storage/storage-file-share/test/directoryclient.spec.ts b/sdk/storage/storage-file-share/test/directoryclient.spec.ts index 38f5dec97773..4e0d80554d17 100644 --- a/sdk/storage/storage-file-share/test/directoryclient.spec.ts +++ b/sdk/storage/storage-file-share/test/directoryclient.spec.ts @@ -630,7 +630,7 @@ describe("DirectoryClient", () => { const tracer = new TestTracer(); setTracer(tracer); const rootSpan = tracer.startSpan("root"); - const spanOptions = { parent: rootSpan }; + const spanOptions = { parent: rootSpan.context() }; const tracingOptions = { spanOptions }; const directoryName = recorder.getUniqueName("directory"); const { directoryClient: subDirClient } = await dirClient.createSubdirectory(directoryName, { diff --git a/sdk/storage/storage-file-share/test/fileclient.spec.ts b/sdk/storage/storage-file-share/test/fileclient.spec.ts index 7fcc8ca950a4..ba10f0e8e510 100644 --- a/sdk/storage/storage-file-share/test/fileclient.spec.ts +++ b/sdk/storage/storage-file-share/test/fileclient.spec.ts @@ -680,7 +680,7 @@ describe("FileClient", () => { const rootSpan = tracer.startSpan("root"); await fileClient.create(content.length, { tracingOptions: { - spanOptions: { parent: rootSpan } + spanOptions: { parent: rootSpan.context() } } }); rootSpan.end(); diff --git a/sdk/storage/storage-queue/src/StorageClient.ts b/sdk/storage/storage-queue/src/StorageClient.ts index 2185ce16e33e..c9370283aa77 100644 --- a/sdk/storage/storage-queue/src/StorageClient.ts +++ b/sdk/storage/storage-queue/src/StorageClient.ts @@ -4,7 +4,7 @@ import { StorageClientContext } from "./generated/src/storageClientContext"; import { Pipeline } from "./Pipeline"; import { getAccountNameFromUrl, getStorageClientContext } from "./utils/utils.common"; -import { SpanOptions } from "@opentelemetry/api"; +import { SpanOptions } from "@azure/core-tracing"; /** * An interface for options common to every remote operation. diff --git a/sdk/storage/storage-queue/src/utils/tracing.ts b/sdk/storage/storage-queue/src/utils/tracing.ts index 355c93824fc3..289cbd82873a 100644 --- a/sdk/storage/storage-queue/src/utils/tracing.ts +++ b/sdk/storage/storage-queue/src/utils/tracing.ts @@ -27,7 +27,7 @@ export function createSpan( if (span.isRecording()) { newOptions = { ...tracingOptions.spanOptions, - parent: span, + parent: span.context(), attributes: { ...spanOptions.attributes, "az.namespace": "Microsoft.Storage" diff --git a/sdk/storage/storage-queue/test/queueclient.spec.ts b/sdk/storage/storage-queue/test/queueclient.spec.ts index 420266010da4..a4c6530fceec 100644 --- a/sdk/storage/storage-queue/test/queueclient.spec.ts +++ b/sdk/storage/storage-queue/test/queueclient.spec.ts @@ -165,7 +165,9 @@ describe("QueueClient", () => { const tracer = new TestTracer(); setTracer(tracer); const rootSpan = tracer.startSpan("root"); - await queueClient.getProperties({ tracingOptions: { spanOptions: { parent: rootSpan } } }); + await queueClient.getProperties({ + tracingOptions: { spanOptions: { parent: rootSpan.context() } } + }); rootSpan.end(); const rootSpans = tracer.getRootSpans(); diff --git a/sdk/textanalytics/ai-text-analytics/src/tracing.ts b/sdk/textanalytics/ai-text-analytics/src/tracing.ts index 5f87d2459f3b..38c91db7faf1 100644 --- a/sdk/textanalytics/ai-text-analytics/src/tracing.ts +++ b/sdk/textanalytics/ai-text-analytics/src/tracing.ts @@ -35,7 +35,7 @@ export function createSpan( if (span.isRecording()) { newSpanOptions = { ...tracingOptions.spanOptions, - parent: span, + parent: span.context(), attributes: { ...spanOptions.attributes, "az.namespace": "Microsoft.CognitiveServices" diff --git a/sdk/textanalytics/ai-text-analytics/test/tracing.spec.ts b/sdk/textanalytics/ai-text-analytics/test/tracing.spec.ts index bef6834c85b6..88e8fde446ca 100644 --- a/sdk/textanalytics/ai-text-analytics/test/tracing.spec.ts +++ b/sdk/textanalytics/ai-text-analytics/test/tracing.spec.ts @@ -40,7 +40,7 @@ describe("tracing.createSpan", () => { const expected: OperationOptions = { tracingOptions: { spanOptions: { - parent: span, + parent: span.context(), attributes: { "az.namespace": "Microsoft.CognitiveServices" } @@ -65,7 +65,7 @@ describe("tracing.createSpan", () => { const expected: OperationOptions = { tracingOptions: { spanOptions: { - parent: span, + parent: span.context(), attributes: { "az.namespace": "Microsoft.CognitiveServices", foo: "bar" From 15d6c1c953d70bb17c0f338067ee0d15eb6c89b3 Mon Sep 17 00:00:00 2001 From: Jeff Fisher Date: Fri, 27 Mar 2020 13:24:53 -0700 Subject: [PATCH 13/29] Fix build breaks --- .../app-configuration/src/internal/tracingHelpers.ts | 3 ++- .../app-configuration/test/tracingHelpers.spec.ts | 6 +++--- sdk/eventhub/event-hubs/review/event-hubs.api.md | 2 +- sdk/eventhub/event-hubs/src/sender.ts | 2 +- sdk/eventhub/event-hubs/src/util/operationOptions.ts | 2 +- sdk/eventhub/event-hubs/test/partitionPump.spec.ts | 2 +- sdk/identity/identity/src/util/tracing.ts | 5 +++-- sdk/servicebus/service-bus/package.json | 1 + sdk/storage/storage-blob/review/storage-blob.api.md | 2 +- sdk/storage/storage-blob/src/utils/tracing.ts | 5 +++-- .../review/storage-file-datalake.api.md | 2 +- sdk/storage/storage-file-datalake/src/utils/tracing.ts | 5 +++-- .../storage-file-share/review/storage-file-share.api.md | 2 +- sdk/storage/storage-file-share/src/utils/tracing.ts | 5 +++-- sdk/storage/storage-queue/review/storage-queue.api.md | 2 +- sdk/storage/storage-queue/src/utils/tracing.ts | 5 +++-- 16 files changed, 29 insertions(+), 22 deletions(-) diff --git a/sdk/appconfiguration/app-configuration/src/internal/tracingHelpers.ts b/sdk/appconfiguration/app-configuration/src/internal/tracingHelpers.ts index a4f844d64d3e..30d8dad82d11 100644 --- a/sdk/appconfiguration/app-configuration/src/internal/tracingHelpers.ts +++ b/sdk/appconfiguration/app-configuration/src/internal/tracingHelpers.ts @@ -2,7 +2,8 @@ // Licensed under the MIT License. import { getTracer } from "@azure/core-tracing"; -import { Span, SpanOptions, SpanKind, CanonicalCode } from "@opentelemetry/api"; +import { Span, SpanKind, CanonicalCode } from "@opentelemetry/api"; +import { SpanOptions } from "@azure/core-tracing"; import { RestError } from "@azure/core-http"; diff --git a/sdk/appconfiguration/app-configuration/test/tracingHelpers.spec.ts b/sdk/appconfiguration/app-configuration/test/tracingHelpers.spec.ts index 6665a2fb6f2b..c7e51bad5e5c 100644 --- a/sdk/appconfiguration/app-configuration/test/tracingHelpers.spec.ts +++ b/sdk/appconfiguration/app-configuration/test/tracingHelpers.spec.ts @@ -4,7 +4,9 @@ import { Spanner } from "../src/internal/tracingHelpers"; import { RestError } from "@azure/core-http"; import { getTracer } from "@azure/core-tracing"; -import { SpanOptions, SpanKind, CanonicalCode } from "@opentelemetry/api"; +import { SpanKind, CanonicalCode } from "@opentelemetry/api"; +import { SpanOptions } from "@azure/core-tracing"; + import * as assert from "assert"; interface FakeOptions { @@ -17,7 +19,6 @@ describe("tracingHelpers", () => { const fakeOptions: FakeOptions = { name: "fakeName", spanOptions: { - kind: SpanKind.PRODUCER, attributes: { testAttribute: "testAttributeValue" } @@ -32,7 +33,6 @@ describe("tracingHelpers", () => { assert.equal("fakeName", newOptions.name); assert.equal(parentSpan, newOptions.spanOptions.parent); - assert.equal(SpanKind.PRODUCER, newOptions.spanOptions.kind); assert.ok(newOptions.spanOptions.attributes, "Should have attributes set"); if (newOptions.spanOptions.attributes) { assert.equal("Microsoft.AppConfiguration", newOptions.spanOptions.attributes["az.namespace"]); diff --git a/sdk/eventhub/event-hubs/review/event-hubs.api.md b/sdk/eventhub/event-hubs/review/event-hubs.api.md index 7c5e1b6d09da..06e3a5c1a914 100644 --- a/sdk/eventhub/event-hubs/review/event-hubs.api.md +++ b/sdk/eventhub/event-hubs/review/event-hubs.api.md @@ -9,7 +9,7 @@ import { MessagingError } from '@azure/core-amqp'; import { RetryOptions } from '@azure/core-amqp'; import { Span } from '@opentelemetry/api'; import { SpanContext } from '@opentelemetry/api'; -import { SpanOptions } from '@opentelemetry/api'; +import { SpanOptions } from '@azure/core-tracing'; import { TokenCredential } from '@azure/core-amqp'; import { WebSocketImpl } from 'rhea-promise'; import { WebSocketOptions } from '@azure/core-amqp'; diff --git a/sdk/eventhub/event-hubs/src/sender.ts b/sdk/eventhub/event-hubs/src/sender.ts index 79ea53accccf..667e48bcaf6e 100644 --- a/sdk/eventhub/event-hubs/src/sender.ts +++ b/sdk/eventhub/event-hubs/src/sender.ts @@ -246,7 +246,7 @@ export class EventHubProducer { } private _createSendSpan( - parentSpan?: Span | SpanContext, + parentSpan?: Span | SpanContext | null, spanContextsToLink: SpanContext[] = [] ): Span { const links: Link[] = spanContextsToLink.map((context) => { diff --git a/sdk/eventhub/event-hubs/src/util/operationOptions.ts b/sdk/eventhub/event-hubs/src/util/operationOptions.ts index 5d57b5e5d975..38c740ed2c70 100644 --- a/sdk/eventhub/event-hubs/src/util/operationOptions.ts +++ b/sdk/eventhub/event-hubs/src/util/operationOptions.ts @@ -14,7 +14,7 @@ export interface TracingOptions { */ tracingOptions?: { /** - * OpenTelemetry SpanOptions used to create a span when tracing is enabled. + * OpenTelemetry used to create a span when tracing is enabled. */ spanOptions?: SpanOptions; }; diff --git a/sdk/eventhub/event-hubs/test/partitionPump.spec.ts b/sdk/eventhub/event-hubs/test/partitionPump.spec.ts index 882b1f2a4dd2..f13d36d84807 100644 --- a/sdk/eventhub/event-hubs/test/partitionPump.spec.ts +++ b/sdk/eventhub/event-hubs/test/partitionPump.spec.ts @@ -40,7 +40,7 @@ describe("PartitionPump", () => { await createProcessingSpan([], eventHubProperties, { tracingOptions: { spanOptions: { - parent: fakeParentSpan + parent: fakeParentSpan.context() } } }); diff --git a/sdk/identity/identity/src/util/tracing.ts b/sdk/identity/identity/src/util/tracing.ts index b23520bd2cca..753f8b2358aa 100644 --- a/sdk/identity/identity/src/util/tracing.ts +++ b/sdk/identity/identity/src/util/tracing.ts @@ -3,7 +3,8 @@ import { GetTokenOptions } from "@azure/core-http"; import { getTracer } from "@azure/core-tracing"; -import { Span, SpanKind, SpanOptions } from "@opentelemetry/api"; +import { Span, SpanKind, SpanOptions as OTSpanOptions } from "@opentelemetry/api"; +import { SpanOptions } from "@azure/core-tracing"; interface OperationTracingOptions { /** @@ -28,7 +29,7 @@ export function createSpan( ...options.tracingOptions }; - const spanOptions: SpanOptions = { + const spanOptions: OTSpanOptions = { ...tracingOptions.spanOptions, kind: SpanKind.INTERNAL }; diff --git a/sdk/servicebus/service-bus/package.json b/sdk/servicebus/service-bus/package.json index 68589d44b0f7..f6175f76accc 100644 --- a/sdk/servicebus/service-bus/package.json +++ b/sdk/servicebus/service-bus/package.json @@ -79,6 +79,7 @@ "@azure/core-auth": "^1.0.0", "@azure/core-amqp": "^1.1.0", "@azure/core-http": "^1.0.0", + "@azure/core-tracing": "1.0.0-preview.8", "@opentelemetry/api": "^0.5.1", "@types/is-buffer": "^2.0.0", "@types/long": "^4.0.0", diff --git a/sdk/storage/storage-blob/review/storage-blob.api.md b/sdk/storage/storage-blob/review/storage-blob.api.md index 6e446bd8557c..ca88f9ce82f7 100644 --- a/sdk/storage/storage-blob/review/storage-blob.api.md +++ b/sdk/storage/storage-blob/review/storage-blob.api.md @@ -24,7 +24,7 @@ import { RequestPolicyFactory } from '@azure/core-http'; import { RequestPolicyOptions } from '@azure/core-http'; import { RestError } from '@azure/core-http'; import { ServiceClientOptions } from '@azure/core-http'; -import { SpanOptions } from '@opentelemetry/api'; +import { SpanOptions } from '@azure/core-tracing'; import { TokenCredential } from '@azure/core-http'; import { TransferProgressEvent } from '@azure/core-http'; import { UserAgentOptions } from '@azure/core-http'; diff --git a/sdk/storage/storage-blob/src/utils/tracing.ts b/sdk/storage/storage-blob/src/utils/tracing.ts index cdcb46396587..13692834ea83 100644 --- a/sdk/storage/storage-blob/src/utils/tracing.ts +++ b/sdk/storage/storage-blob/src/utils/tracing.ts @@ -2,7 +2,8 @@ // Licensed under the MIT License. import { getTracer } from "@azure/core-tracing"; -import { Span, SpanOptions, SpanKind } from "@opentelemetry/api"; +import { Span, SpanOptions as OTSpanOptions, SpanKind } from "@opentelemetry/api"; +import { SpanOptions } from "@azure/core-tracing"; import { OperationTracingOptions } from "../StorageClient"; /** @@ -15,7 +16,7 @@ export function createSpan( tracingOptions: OperationTracingOptions = {} ): { span: Span; spanOptions: SpanOptions } { const tracer = getTracer(); - const spanOptions: SpanOptions = { + const spanOptions: OTSpanOptions = { ...tracingOptions.spanOptions, kind: SpanKind.INTERNAL }; diff --git a/sdk/storage/storage-file-datalake/review/storage-file-datalake.api.md b/sdk/storage/storage-file-datalake/review/storage-file-datalake.api.md index 39c15e1ef23f..7a941f0b7d29 100644 --- a/sdk/storage/storage-file-datalake/review/storage-file-datalake.api.md +++ b/sdk/storage/storage-file-datalake/review/storage-file-datalake.api.md @@ -30,7 +30,7 @@ import { RequestPolicyOptions } from '@azure/core-http'; import { RestError } from '@azure/core-http'; import { ServiceClientOptions } from '@azure/core-http'; import { ServiceListContainersSegmentResponse } from '@azure/storage-blob'; -import { SpanOptions } from '@opentelemetry/api'; +import { SpanOptions } from '@azure/core-tracing'; import { TokenCredential } from '@azure/core-http'; import { TransferProgressEvent } from '@azure/core-http'; import { UserAgentOptions } from '@azure/core-http'; diff --git a/sdk/storage/storage-file-datalake/src/utils/tracing.ts b/sdk/storage/storage-file-datalake/src/utils/tracing.ts index 5209d9e98ce5..246ad61b898e 100644 --- a/sdk/storage/storage-file-datalake/src/utils/tracing.ts +++ b/sdk/storage/storage-file-datalake/src/utils/tracing.ts @@ -1,7 +1,8 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import { getTracer } from "@azure/core-tracing"; -import { Span, SpanKind, SpanOptions } from "@opentelemetry/api"; +import { Span, SpanKind, SpanOptions as OTSpanOptions } from "@opentelemetry/api"; +import { SpanOptions } from "@azure/core-tracing"; import { OperationTracingOptions } from "../StorageClient"; @@ -15,7 +16,7 @@ export function createSpan( tracingOptions: OperationTracingOptions = {} ): { span: Span; spanOptions: SpanOptions } { const tracer = getTracer(); - const spanOptions: SpanOptions = { + const spanOptions: OTSpanOptions = { ...tracingOptions.spanOptions, kind: SpanKind.INTERNAL }; diff --git a/sdk/storage/storage-file-share/review/storage-file-share.api.md b/sdk/storage/storage-file-share/review/storage-file-share.api.md index 9c8c73eb6ddb..ffbde50f3dff 100644 --- a/sdk/storage/storage-file-share/review/storage-file-share.api.md +++ b/sdk/storage/storage-file-share/review/storage-file-share.api.md @@ -22,7 +22,7 @@ import { RequestPolicyFactory } from '@azure/core-http'; import { RequestPolicyOptions } from '@azure/core-http'; import { RestError } from '@azure/core-http'; import { ServiceClientOptions } from '@azure/core-http'; -import { SpanOptions } from '@opentelemetry/api'; +import { SpanOptions } from '@azure/core-tracing'; import { TransferProgressEvent } from '@azure/core-http'; import { UserAgentOptions } from '@azure/core-http'; import { WebResource } from '@azure/core-http'; diff --git a/sdk/storage/storage-file-share/src/utils/tracing.ts b/sdk/storage/storage-file-share/src/utils/tracing.ts index 0ce666e4cc64..3a2f68af43f6 100644 --- a/sdk/storage/storage-file-share/src/utils/tracing.ts +++ b/sdk/storage/storage-file-share/src/utils/tracing.ts @@ -2,7 +2,8 @@ // Licensed under the MIT License. import { getTracer } from "@azure/core-tracing"; -import { Span, SpanOptions, SpanKind } from "@opentelemetry/api"; +import { Span, SpanOptions as OTSpanOptions, SpanKind } from "@opentelemetry/api"; +import { SpanOptions } from "@azure/core-tracing"; import { OperationTracingOptions } from "../StorageClient"; /** @@ -15,7 +16,7 @@ export function createSpan( tracingOptions: OperationTracingOptions = {} ): { span: Span; spanOptions: SpanOptions } { const tracer = getTracer(); - const spanOptions: SpanOptions = { + const spanOptions: OTSpanOptions = { ...tracingOptions.spanOptions, kind: SpanKind.INTERNAL }; diff --git a/sdk/storage/storage-queue/review/storage-queue.api.md b/sdk/storage/storage-queue/review/storage-queue.api.md index 78cc585cb5ab..aafb12e71a9e 100644 --- a/sdk/storage/storage-queue/review/storage-queue.api.md +++ b/sdk/storage/storage-queue/review/storage-queue.api.md @@ -21,7 +21,7 @@ import { RequestPolicyFactory } from '@azure/core-http'; import { RequestPolicyOptions } from '@azure/core-http'; import { RestError } from '@azure/core-http'; import { ServiceClientOptions } from '@azure/core-http'; -import { SpanOptions } from '@opentelemetry/api'; +import { SpanOptions } from '@azure/core-tracing'; import { TokenCredential } from '@azure/core-http'; import { UserAgentOptions } from '@azure/core-http'; import { WebResource } from '@azure/core-http'; diff --git a/sdk/storage/storage-queue/src/utils/tracing.ts b/sdk/storage/storage-queue/src/utils/tracing.ts index 289cbd82873a..06357839eb48 100644 --- a/sdk/storage/storage-queue/src/utils/tracing.ts +++ b/sdk/storage/storage-queue/src/utils/tracing.ts @@ -2,7 +2,8 @@ // Licensed under the MIT License. import { getTracer } from "@azure/core-tracing"; -import { Span, SpanOptions, SpanKind } from "@opentelemetry/api"; +import { Span, SpanOptions as OTSpanOptions, SpanKind } from "@opentelemetry/api"; +import { SpanOptions } from "@azure/core-tracing"; import { OperationTracingOptions } from "../StorageClient"; /** @@ -15,7 +16,7 @@ export function createSpan( tracingOptions: OperationTracingOptions = {} ): { span: Span; spanOptions: SpanOptions } { const tracer = getTracer(); - const spanOptions: SpanOptions = { + const spanOptions: OTSpanOptions = { ...tracingOptions.spanOptions, kind: SpanKind.INTERNAL }; From e2d872b5e04c38f860483a9727df6fc8d9c565c7 Mon Sep 17 00:00:00 2001 From: Jeff Fisher Date: Fri, 27 Mar 2020 13:27:48 -0700 Subject: [PATCH 14/29] Update lockfile --- common/config/rush/pnpm-lock.yaml | 74 ++++++++++++++++++++++--------- 1 file changed, 54 insertions(+), 20 deletions(-) diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index e7ea8cf6a758..168e113519e6 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -310,6 +310,20 @@ packages: node: '>=6.0' resolution: integrity: sha512-xB+w7ZDAu3YBzqH44rCmG9/RlrOmFuDPt/bpf17eJr8eZSrLt7nc7LnWdxM9Mmoj/YKMHpxRg28txu3TcpiL+g== + /@opentelemetry/api/0.5.2: + dependencies: + '@opentelemetry/context-base': 0.5.2 + dev: false + engines: + node: '>=8.0.0' + resolution: + integrity: sha512-SLahDSBn08zxz+zd0kq3XXn29HyUegWX/EUD79RuF7qBoXfMlwnCOx8eIzLsIRUDY4S9Qq7BYGOHdKz2p8oeeQ== + /@opentelemetry/context-base/0.5.2: + dev: false + engines: + node: '>=8.0.0' + resolution: + integrity: sha512-eaXuO5kwlW1X4RG7BJGC+rr6I1KFynJLJS6A0QptkgrMvZ4J1YCoIkhzmAXy2wiIHcbo/vQDV58aLtrYOrYX5g== /@opentelemetry/types/0.2.0: deprecated: 'Package renamed to @opentelemetry/api, see https://github.com/open-telemetry/opentelemetry-js' dev: false @@ -7531,6 +7545,7 @@ packages: '@azure/core-tracing': 1.0.0-preview.7 '@azure/identity': 1.1.0-preview1 '@microsoft/api-extractor': 7.7.10 + '@opentelemetry/api': 0.5.2 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -7583,7 +7598,7 @@ packages: dev: false name: '@rush-temp/ai-text-analytics' resolution: - integrity: sha512-nGr7krxGH/QS6pC+qqJPTsvsbPDBsqCI3g+fZLTTppY1JIeH2edGcjeZ1atbTkMI24PEZwaiKlYrouTl3/tnjA== + integrity: sha512-NKwWGJ0lq2yaMbXqCJGpMN/SnTnI4XCTeK9L711pXxLRm5n6J4qLAz1UXhWBC9NfLqTZdqxF/mHuUbb6i9c+eg== tarball: 'file:projects/ai-text-analytics.tgz' version: 0.0.0 'file:projects/app-configuration.tgz': @@ -7591,6 +7606,7 @@ packages: '@azure/core-tracing': 1.0.0-preview.7 '@azure/identity': 1.1.0-preview1 '@microsoft/api-extractor': 7.7.10 + '@opentelemetry/api': 0.5.2 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-multi-entry': 3.0.0_rollup@1.32.1 @@ -7625,7 +7641,7 @@ packages: dev: false name: '@rush-temp/app-configuration' resolution: - integrity: sha512-AJJ3yUMRlkZFVNTjoNweICkTpNZYn+x9oDQQItKRjNocKM0l6zORN0LlwNMKcPWM24qnKuL/I6dGvfaNytyYuQ== + integrity: sha512-okftg9NpKU6fd1Kld0NghrfDbv0EqNBuoO021blpWsQg1FYPoC5o9Bv8jr1/OXbdg6B5zxh0QnBQjw1DZyIDZA== tarball: 'file:projects/app-configuration.tgz' version: 0.0.0 'file:projects/core-amqp.tgz': @@ -7692,7 +7708,7 @@ packages: dev: false name: '@rush-temp/core-amqp' resolution: - integrity: sha512-scr2mJi+rhYJVqHG8l9Fb+8/ifdKSKhCZzHPjBZHITOnAR/2booeUia8LTpU8dZDoiN3+S0DMe6K6+IpAJUcRw== + integrity: sha512-qnJioaQ29bI4IJUiu1rQ/eQGa5wzqEr3QbLDzMw2QXKS844nbk1fM8usAsMolmCR6fblMQPyl+hU9JZJvht6Rg== tarball: 'file:projects/core-amqp.tgz' version: 0.0.0 'file:projects/core-arm.tgz': @@ -7751,6 +7767,7 @@ packages: '@azure/core-tracing': 1.0.0-preview.7 '@azure/eslint-plugin-azure-sdk': 2.0.1_5be9065a4c7972ebfd372404cdf76b9c '@microsoft/api-extractor': 7.7.10 + '@opentelemetry/api': 0.5.2 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -7783,7 +7800,7 @@ packages: dev: false name: '@rush-temp/core-auth' resolution: - integrity: sha512-hlmXkDM4DXuwx2fFmhebnizTz1B9cJcw0bWjfqM12HHcDsP1++xOXpMgDQgSCynndSHJp5GM+Y4ScV0KxEJIMA== + integrity: sha512-q15y28wD1yUS7BkFSgtasbJokquNCfncfC85LAL0ckXuxw/5IP/vriOZ8BLVxakkyDyr5dptVg0wR2ck3hthsw== tarball: 'file:projects/core-auth.tgz' version: 0.0.0 'file:projects/core-http.tgz': @@ -7791,6 +7808,7 @@ packages: '@azure/core-tracing': 1.0.0-preview.7 '@azure/eslint-plugin-azure-sdk': 2.0.1_5be9065a4c7972ebfd372404cdf76b9c '@azure/logger-js': 1.3.2 + '@opentelemetry/api': 0.5.2 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -7860,7 +7878,7 @@ packages: dev: false name: '@rush-temp/core-http' resolution: - integrity: sha512-QBsiqPWD7595NgEq5QwF4qNIabFFnsICGIBJQyw95r66NPeDfW1A9R4PAzg1AEPNBoyernYU5GNBPw+KkOZAGQ== + integrity: sha512-zNfdZZvfpV16xQxhnTHBxewuRF5jRD/Sx/TkEc2fD8hYoPI0mX7kXJgk/cWsA1YDSLa7+5T+Kdv8zUGZKpbXJg== tarball: 'file:projects/core-http.tgz' version: 0.0.0 'file:projects/core-lro.tgz': @@ -7868,6 +7886,7 @@ packages: '@azure/core-arm': 1.0.0-preview.7 '@azure/identity': 1.1.0-preview1 '@microsoft/api-extractor': 7.7.10 + '@opentelemetry/api': 0.5.2 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-multi-entry': 3.0.0_rollup@1.32.1 @@ -7916,7 +7935,7 @@ packages: dev: false name: '@rush-temp/core-lro' resolution: - integrity: sha512-P5s7lC0rmriigCx5piKihWbsaY916OlUBBxQRwTnT+d/yv4M6ZYyntOPzqr+IqTHF2ip9S2sDtC7Lz3+0Lr7dA== + integrity: sha512-1BFUqHyEqOs2hI7EynDhAqD7ewH2ymg935YdNSL8A/dZinZZrgKreDXw4/jxb7lU+e+81awsc4w9Unre1exTJg== tarball: 'file:projects/core-lro.tgz' version: 0.0.0 'file:projects/core-paging.tgz': @@ -7942,6 +7961,7 @@ packages: '@azure/eslint-plugin-azure-sdk': 2.0.1_5be9065a4c7972ebfd372404cdf76b9c '@microsoft/api-extractor': 7.7.10 '@opencensus/web-types': 0.0.7 + '@opentelemetry/api': 0.5.2 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -7974,7 +7994,7 @@ packages: dev: false name: '@rush-temp/core-tracing' resolution: - integrity: sha512-/hIvDIYwH6zJc0oroCqPrrKAM7sQp9LSZ2q4M03qb49IV/ABc6u4vBGTXh9zPIZzJVC9pw/xJo18xoNQ0s8CoA== + integrity: sha512-gM5WRm3rnhI1Gr7Nlc6pi/w2uPFm3Ax2F3j9+ipwPRlKnSwipYf8PtkFuNeMJ3A/V7SbtbtKdzk73z1U9avSrQ== tarball: 'file:projects/core-tracing.tgz' version: 0.0.0 'file:projects/cosmos.tgz': @@ -8077,6 +8097,7 @@ packages: '@azure/eslint-plugin-azure-sdk': 2.0.1_5be9065a4c7972ebfd372404cdf76b9c '@azure/identity': 1.1.0-preview1 '@microsoft/api-extractor': 7.7.10 + '@opentelemetry/api': 0.5.2 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-inject': 4.0.1_rollup@1.32.1 @@ -8147,7 +8168,7 @@ packages: dev: false name: '@rush-temp/event-hubs' resolution: - integrity: sha512-OgAus8y6CL+z8c0GPaOcvUCxvmbpXkZAPMvImKJVKhHfrGY9ChC4pwgEGBFqNtxNHF1VmidjjU9lipvSbgIibg== + integrity: sha512-EzbECQ4UD9tbQ3VfyLD3fCpGwCs1OIZ7cM2GW6R0V535o5izRlibmIMpE7dVaUp8nOSJYoJYXt7gKsv4ViJiKg== tarball: 'file:projects/event-hubs.tgz' version: 0.0.0 'file:projects/event-processor-host.tgz': @@ -8275,6 +8296,7 @@ packages: dependencies: '@azure/core-tracing': 1.0.0-preview.7 '@microsoft/api-extractor': 7.7.10 + '@opentelemetry/api': 0.5.2 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -8324,7 +8346,7 @@ packages: dev: false name: '@rush-temp/identity' resolution: - integrity: sha512-ILHEG8dEmffGZQh2fk5syKx+HKNl6GZYfLG5UItUKbKiMZfBqj9WX3Sdv9dIlzc71NkZVr9mZTcyWqJJIUEJEw== + integrity: sha512-/wEU01xb/nG0euyrWaY0bLbERTifxQ3r2DbZxffPCeESxHy8FZWO9u+0wviiUkl8JYY3u5s175W7mb7YBLv4Aw== tarball: 'file:projects/identity.tgz' version: 0.0.0 'file:projects/keyvault-certificates.tgz': @@ -8333,6 +8355,7 @@ packages: '@azure/eslint-plugin-azure-sdk': 2.0.1_5be9065a4c7972ebfd372404cdf76b9c '@azure/identity': 1.1.0-preview1 '@microsoft/api-extractor': 7.7.10 + '@opentelemetry/api': 0.5.2 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -8390,7 +8413,7 @@ packages: dev: false name: '@rush-temp/keyvault-certificates' resolution: - integrity: sha512-x2H+ziIjhfGtHiqNy+w8As+0/5RH4gTkSEmObyvKR29V0hyNjWBrUcDeFTzrq4Uci94QBX41/G8chNdbLaXt+Q== + integrity: sha512-GDfnQHeU5shOeXD3n+/zBdx35uluC/m4Ufg3QB/P2/W6RQQzUP2GBeQXgyqHoNma9CWJG2XFr2sXXkMon07M2A== tarball: 'file:projects/keyvault-certificates.tgz' version: 0.0.0 'file:projects/keyvault-keys.tgz': @@ -8399,6 +8422,7 @@ packages: '@azure/eslint-plugin-azure-sdk': 2.0.1_5be9065a4c7972ebfd372404cdf76b9c '@azure/identity': 1.1.0-preview1 '@microsoft/api-extractor': 7.7.10 + '@opentelemetry/api': 0.5.2 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -8456,7 +8480,7 @@ packages: dev: false name: '@rush-temp/keyvault-keys' resolution: - integrity: sha512-BZOaA23uxmoHRj7Rd+DUgm0vD7pKDyoEhD0PlrPBETVCZ0sT+5PzDfw3dL4DwqrUQk/77RZlm6vnRrKqCgZjJg== + integrity: sha512-RPOalobvP6PXOMYEFSucIuZAkT4D+Wo6okJXUtnO5ctdu3GhtinlBxOBGfW2M9DqEFX/dTxpOwnRVh9neCqBtA== tarball: 'file:projects/keyvault-keys.tgz' version: 0.0.0 'file:projects/keyvault-secrets.tgz': @@ -8465,6 +8489,7 @@ packages: '@azure/eslint-plugin-azure-sdk': 2.0.1_5be9065a4c7972ebfd372404cdf76b9c '@azure/identity': 1.1.0-preview1 '@microsoft/api-extractor': 7.7.10 + '@opentelemetry/api': 0.5.2 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -8522,7 +8547,7 @@ packages: dev: false name: '@rush-temp/keyvault-secrets' resolution: - integrity: sha512-celocXJ8z1A1e3aCr5WTmroo9Fnpd+ohBTfO81Gc+eAD5IuyxtgIwyalPj7qkLb74I5n1dVl/S8LlFwh7xmFFw== + integrity: sha512-6w3Mzr8APDueRdFrT2gfsqyQj43ljkSZSRLT0L0TNAkOpnPSCsgI2g9MaEROo9ECZIKyoWljlYJRxxRHF4bzQg== tarball: 'file:projects/keyvault-secrets.tgz' version: 0.0.0 'file:projects/logger.tgz': @@ -8582,6 +8607,7 @@ packages: dependencies: '@azure/core-tracing': 1.0.0-preview.7 '@microsoft/api-extractor': 7.7.10 + '@opentelemetry/api': 0.5.2 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -8630,7 +8656,7 @@ packages: dev: false name: '@rush-temp/search' resolution: - integrity: sha512-JIAjGgQCihxD2MfLU+fhsZMzTjGC6idmKsA3xj/xHB5iM1D7+XjsMpGd+K48GjkvmSmUd1rF811pdBZmkVBtHQ== + integrity: sha512-nmwe7NvDUzEKCy7BIsQRwK5UbxK2D70nJ4JTKlzLY+FfhW0A7+YPHbVpTi4oQowbdXVRJKsYtTk35UAzxCgEuA== tarball: 'file:projects/search.tgz' version: 0.0.0 'file:projects/service-bus.tgz': @@ -8638,6 +8664,7 @@ packages: '@azure/eslint-plugin-azure-sdk': 2.0.1_5be9065a4c7972ebfd372404cdf76b9c '@azure/identity': 1.1.0-preview1 '@microsoft/api-extractor': 7.7.10 + '@opentelemetry/api': 0.5.2 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-inject': 4.0.1_rollup@1.32.1 @@ -8708,7 +8735,7 @@ packages: dev: false name: '@rush-temp/service-bus' resolution: - integrity: sha512-woN+nCzNT8aCrWX1zix1dh3Ln+aNtUIQ8J9M3HUfbYiUqH4qfMceDQa0XLr5VhGQGbQes2fyA948FiQ7EbP7xg== + integrity: sha512-c5qeoN42LiZZX9mEm+A5iqTj8hvdVTCH+11ANztegyBT10Y6O2HJbWfqjgQfB/By9sd+ToR2wlWqpQ0kexxINw== tarball: 'file:projects/service-bus.tgz' version: 0.0.0 'file:projects/storage-blob.tgz': @@ -8716,6 +8743,7 @@ packages: '@azure/core-tracing': 1.0.0-preview.7 '@azure/identity': 1.1.0-preview1 '@microsoft/api-extractor': 7.7.10 + '@opentelemetry/api': 0.5.2 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-multi-entry': 3.0.0_rollup@1.32.1 @@ -8770,7 +8798,7 @@ packages: dev: false name: '@rush-temp/storage-blob' resolution: - integrity: sha512-ORzlFGD1Mc7iecyXIU7lTMDAn7PPbmoEvQfL67ydy3P/YSKwyaXJkcrqnL5B8EMGeVHAeDFOBZ7FQ086o2Nkcw== + integrity: sha512-NFjQZR+S7gLNs7dfuP7QLEzeCSW/AvTPv/DnS3PC0jdUCx5k7Fn9QKTrI33toHSMi6/V4KGEBwuOD97WcMQ1jg== tarball: 'file:projects/storage-blob.tgz' version: 0.0.0 'file:projects/storage-file-datalake.tgz': @@ -8778,6 +8806,7 @@ packages: '@azure/core-tracing': 1.0.0-preview.7 '@azure/identity': 1.1.0-preview1 '@microsoft/api-extractor': 7.7.10 + '@opentelemetry/api': 0.5.2 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-multi-entry': 3.0.0_rollup@1.32.1 @@ -8840,13 +8869,14 @@ packages: dev: false name: '@rush-temp/storage-file-datalake' resolution: - integrity: sha512-/ON3OcD18Kxrh7s7ppjQgtKIgTqoHh4gjX6kuNwhuI21pQyZEof9axtpv7Ncr6pygvRki8t/Fgr4inz5Z7uUPA== + integrity: sha512-2vyJjEK3Tv5+jzBbmB/lHItoqe00agZDTS5cMMSNNGYGVXYTICnY79EdsZ47Nm7u5yYezZBX+ln32XNturHUJQ== tarball: 'file:projects/storage-file-datalake.tgz' version: 0.0.0 'file:projects/storage-file-share.tgz': dependencies: '@azure/core-tracing': 1.0.0-preview.7 '@microsoft/api-extractor': 7.7.10 + '@opentelemetry/api': 0.5.2 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-multi-entry': 3.0.0_rollup@1.32.1 @@ -8901,7 +8931,7 @@ packages: dev: false name: '@rush-temp/storage-file-share' resolution: - integrity: sha512-FFmsZnrOpTfeYaiFLAjpb93M0fBTy4Wk+71Nsqliah4Tx5VRxiVLaCbM9rrwfQWl4Jwm82H1OdkSJPU+7ycgxw== + integrity: sha512-Z0B+qJD/wsHjApbmuTvUP8lSkGVvKh6iyMoHivCgXvxGDxf1FxX6VSChoCzodtkpnMpMkSqiCwU+rQ2g0BqMtA== tarball: 'file:projects/storage-file-share.tgz' version: 0.0.0 'file:projects/storage-queue.tgz': @@ -8909,6 +8939,7 @@ packages: '@azure/core-tracing': 1.0.0-preview.7 '@azure/identity': 1.1.0-preview1 '@microsoft/api-extractor': 7.7.10 + '@opentelemetry/api': 0.5.2 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-multi-entry': 3.0.0_rollup@1.32.1 @@ -8962,12 +8993,13 @@ packages: dev: false name: '@rush-temp/storage-queue' resolution: - integrity: sha512-YVQTB88TTimYIb3+Pi6d8BOHhS8Ahj7i0UQ3zJQKDWG0Jgwz4dyGEVMddgQf4z6pm5tBbTX02jxSziE/btOM2g== + integrity: sha512-Y3XTAA8di8IC5mwkSy4Tyw+VnYHl4Eu2F+WHOTc7ApSQRBfNX4soK+LUGFYQSxc/ZvUJqLRnDOwADRonmXrWfQ== tarball: 'file:projects/storage-queue.tgz' version: 0.0.0 'file:projects/template.tgz': dependencies: '@microsoft/api-extractor': 7.7.10 + '@opentelemetry/api': 0.5.2 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -9012,11 +9044,12 @@ packages: dev: false name: '@rush-temp/template' resolution: - integrity: sha512-eUx+jKYTaAnVvTxHJx/nZyaSn4nl2yyCKW3SbkyJgqfdEyQ6Kecq0dwcZC8jGmznoeYmRUFEaQ4qmvw7HUjtwQ== + integrity: sha512-56kS6Tq/5zZqiNYB8mRRT+UaIxvjjiAMVSL1oy5k2twmvW5/PX822xb+u/BhmPU0JsaYpO04W8kb7TR9Ae0MzQ== tarball: 'file:projects/template.tgz' version: 0.0.0 'file:projects/test-utils-recorder.tgz': dependencies: + '@opentelemetry/api': 0.5.2 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-multi-entry': 3.0.0_rollup@1.32.1 @@ -9072,7 +9105,7 @@ packages: dev: false name: '@rush-temp/test-utils-recorder' resolution: - integrity: sha512-P1J2/7E0IP7QJu93Y8FzFPjID1dwmzi0P+wQSSPBbYh0heNiuRfdp7G28aE4n8pkL92CuRfgt1stDYPCona0+A== + integrity: sha512-iavWLNLt9WA5ybaNMd81roVsdkDHsq+GR0ki1SPWTZ4i4Xl+VBusbmLnN3+8sdFKY8SvHyl6gk157e2lNFUQ7w== tarball: 'file:projects/test-utils-recorder.tgz' version: 0.0.0 'file:projects/testhub.tgz': @@ -9096,6 +9129,7 @@ packages: integrity: sha512-guDU8PdEdKCVnGxNd1JEkmqukDoc1wodkEqQCWpY1+bX4ZT+ZY520gfVcMeMHYCEO8TAAhScGNke/y7p9qBArA== tarball: 'file:projects/testhub.tgz' version: 0.0.0 +registry: '' specifiers: '@rush-temp/abort-controller': 'file:./projects/abort-controller.tgz' '@rush-temp/ai-text-analytics': 'file:./projects/ai-text-analytics.tgz' From ad0301d41781348ab6ec5c3adb08e81985c2019e Mon Sep 17 00:00:00 2001 From: Jeff Fisher Date: Fri, 27 Mar 2020 17:13:38 -0700 Subject: [PATCH 15/29] Update lockfile --- common/config/rush/pnpm-lock.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 168e113519e6..b0b89cccf549 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -7598,7 +7598,7 @@ packages: dev: false name: '@rush-temp/ai-text-analytics' resolution: - integrity: sha512-NKwWGJ0lq2yaMbXqCJGpMN/SnTnI4XCTeK9L711pXxLRm5n6J4qLAz1UXhWBC9NfLqTZdqxF/mHuUbb6i9c+eg== + integrity: sha512-rJjzlH9s4ZwBPkjaPfl6dIKmTU+tGSjQxgYwyzjFs3UWLsleYoOrsO6VhckhKPFhIuFpC8cgT+Id0yTX4cc3oA== tarball: 'file:projects/ai-text-analytics.tgz' version: 0.0.0 'file:projects/app-configuration.tgz': @@ -7708,7 +7708,7 @@ packages: dev: false name: '@rush-temp/core-amqp' resolution: - integrity: sha512-qnJioaQ29bI4IJUiu1rQ/eQGa5wzqEr3QbLDzMw2QXKS844nbk1fM8usAsMolmCR6fblMQPyl+hU9JZJvht6Rg== + integrity: sha512-Ou73Jc9fmDU/oiJcVo7FZ1n24B5eIKMV+AT+eDepF70kpcULfqwU2OCArc9Al9ktHAEf7wuvtjM8TlkKsVjcRw== tarball: 'file:projects/core-amqp.tgz' version: 0.0.0 'file:projects/core-arm.tgz': @@ -7878,7 +7878,7 @@ packages: dev: false name: '@rush-temp/core-http' resolution: - integrity: sha512-zNfdZZvfpV16xQxhnTHBxewuRF5jRD/Sx/TkEc2fD8hYoPI0mX7kXJgk/cWsA1YDSLa7+5T+Kdv8zUGZKpbXJg== + integrity: sha512-6tXPGyEfxw/mIUZnE9nGxnlZYt/ukWXvYeOoXfLUJ4kUUzb7NfrkKi0MYVkaCRlI5wiUD8MdcpEMfEfv2EIPrQ== tarball: 'file:projects/core-http.tgz' version: 0.0.0 'file:projects/core-lro.tgz': @@ -8735,7 +8735,7 @@ packages: dev: false name: '@rush-temp/service-bus' resolution: - integrity: sha512-c5qeoN42LiZZX9mEm+A5iqTj8hvdVTCH+11ANztegyBT10Y6O2HJbWfqjgQfB/By9sd+ToR2wlWqpQ0kexxINw== + integrity: sha512-UprRhdDa3NqvoALsN1DBwubfNIsUOXW3lybCFCYOISDj2ZDQt3yHPaJxh0SbnDydONtF9HKwgNmpDy2IzFRU3Q== tarball: 'file:projects/service-bus.tgz' version: 0.0.0 'file:projects/storage-blob.tgz': @@ -8798,7 +8798,7 @@ packages: dev: false name: '@rush-temp/storage-blob' resolution: - integrity: sha512-NFjQZR+S7gLNs7dfuP7QLEzeCSW/AvTPv/DnS3PC0jdUCx5k7Fn9QKTrI33toHSMi6/V4KGEBwuOD97WcMQ1jg== + integrity: sha512-JWUSugtzymFwfOcitG2lGZ6nklWj+3D+iWmIIcEu7bvSVnzY+FLmwKVMJ94sM4+gwCln9XJMDtjfehNanZBoPg== tarball: 'file:projects/storage-blob.tgz' version: 0.0.0 'file:projects/storage-file-datalake.tgz': @@ -8869,7 +8869,7 @@ packages: dev: false name: '@rush-temp/storage-file-datalake' resolution: - integrity: sha512-2vyJjEK3Tv5+jzBbmB/lHItoqe00agZDTS5cMMSNNGYGVXYTICnY79EdsZ47Nm7u5yYezZBX+ln32XNturHUJQ== + integrity: sha512-60Rw2/gbFe3ipbnY97vsFOBhn+vlp8mSX0tkEXVGw3pa++7cErSggQqI3ylbWW1g5XeYRPGIHQ7Ocx20G1Gr8w== tarball: 'file:projects/storage-file-datalake.tgz' version: 0.0.0 'file:projects/storage-file-share.tgz': @@ -8931,7 +8931,7 @@ packages: dev: false name: '@rush-temp/storage-file-share' resolution: - integrity: sha512-Z0B+qJD/wsHjApbmuTvUP8lSkGVvKh6iyMoHivCgXvxGDxf1FxX6VSChoCzodtkpnMpMkSqiCwU+rQ2g0BqMtA== + integrity: sha512-XU28LNFyU6yrKR9PVl/p2hubCLIXqNMIsZRLO0A6b3AR/eNYZa7kGJuZn4HnfmDq9u+6sqw0FZ47YgmzNCJcpA== tarball: 'file:projects/storage-file-share.tgz' version: 0.0.0 'file:projects/storage-queue.tgz': @@ -8993,7 +8993,7 @@ packages: dev: false name: '@rush-temp/storage-queue' resolution: - integrity: sha512-Y3XTAA8di8IC5mwkSy4Tyw+VnYHl4Eu2F+WHOTc7ApSQRBfNX4soK+LUGFYQSxc/ZvUJqLRnDOwADRonmXrWfQ== + integrity: sha512-/1xiq/WYg0niKYKK82qiGhvDZcLyHIjsvG/6FzTjo4UiqkD+X0U5y//jXwXxALcOzoNl0+7n+PBavavBBP+2kw== tarball: 'file:projects/storage-queue.tgz' version: 0.0.0 'file:projects/template.tgz': From 04e4699c4be9be1e1ba93e812f9cb81f10dac387 Mon Sep 17 00:00:00 2001 From: Jeff Fisher Date: Mon, 30 Mar 2020 11:34:26 -0700 Subject: [PATCH 16/29] Update lockfile --- common/config/rush/pnpm-lock.yaml | 74 ++++++++++++++++++++++--------- 1 file changed, 54 insertions(+), 20 deletions(-) diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 6c0cb1ae63da..18f951805cc4 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -295,6 +295,20 @@ packages: node: '>=6.0' resolution: integrity: sha512-xB+w7ZDAu3YBzqH44rCmG9/RlrOmFuDPt/bpf17eJr8eZSrLt7nc7LnWdxM9Mmoj/YKMHpxRg28txu3TcpiL+g== + /@opentelemetry/api/0.5.2: + dependencies: + '@opentelemetry/context-base': 0.5.2 + dev: false + engines: + node: '>=8.0.0' + resolution: + integrity: sha512-SLahDSBn08zxz+zd0kq3XXn29HyUegWX/EUD79RuF7qBoXfMlwnCOx8eIzLsIRUDY4S9Qq7BYGOHdKz2p8oeeQ== + /@opentelemetry/context-base/0.5.2: + dev: false + engines: + node: '>=8.0.0' + resolution: + integrity: sha512-eaXuO5kwlW1X4RG7BJGC+rr6I1KFynJLJS6A0QptkgrMvZ4J1YCoIkhzmAXy2wiIHcbo/vQDV58aLtrYOrYX5g== /@opentelemetry/types/0.2.0: deprecated: 'Package renamed to @opentelemetry/api, see https://github.com/open-telemetry/opentelemetry-js' dev: false @@ -7515,6 +7529,7 @@ packages: dependencies: '@azure/core-tracing': 1.0.0-preview.7 '@microsoft/api-extractor': 7.7.10 + '@opentelemetry/api': 0.5.2 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -7567,13 +7582,14 @@ packages: dev: false name: '@rush-temp/ai-text-analytics' resolution: - integrity: sha512-gypyZnbVpaS0SQmm7cYZzQS7vadpBPi8fV733bk+I6hyQtJft24nJzcoNh4c0uwywnWCu8JKTPbqJdOXDCpZnw== + integrity: sha512-rJjzlH9s4ZwBPkjaPfl6dIKmTU+tGSjQxgYwyzjFs3UWLsleYoOrsO6VhckhKPFhIuFpC8cgT+Id0yTX4cc3oA== tarball: 'file:projects/ai-text-analytics.tgz' version: 0.0.0 'file:projects/app-configuration.tgz': dependencies: '@azure/core-tracing': 1.0.0-preview.7 '@microsoft/api-extractor': 7.7.10 + '@opentelemetry/api': 0.5.2 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-multi-entry': 3.0.0_rollup@1.32.1 @@ -7608,7 +7624,7 @@ packages: dev: false name: '@rush-temp/app-configuration' resolution: - integrity: sha512-Dv9oLT0COSk7jGKKAlHEqhA7caISBQRwjDyLi1fJw5wDoKte1Xxm188D0sm5wNj8l95UFHbV5h6xAZeBEVtFww== + integrity: sha512-okftg9NpKU6fd1Kld0NghrfDbv0EqNBuoO021blpWsQg1FYPoC5o9Bv8jr1/OXbdg6B5zxh0QnBQjw1DZyIDZA== tarball: 'file:projects/app-configuration.tgz' version: 0.0.0 'file:projects/core-amqp.tgz': @@ -7674,7 +7690,7 @@ packages: dev: false name: '@rush-temp/core-amqp' resolution: - integrity: sha512-qnJioaQ29bI4IJUiu1rQ/eQGa5wzqEr3QbLDzMw2QXKS844nbk1fM8usAsMolmCR6fblMQPyl+hU9JZJvht6Rg== + integrity: sha512-Ou73Jc9fmDU/oiJcVo7FZ1n24B5eIKMV+AT+eDepF70kpcULfqwU2OCArc9Al9ktHAEf7wuvtjM8TlkKsVjcRw== tarball: 'file:projects/core-amqp.tgz' version: 0.0.0 'file:projects/core-arm.tgz': @@ -7733,6 +7749,7 @@ packages: '@azure/core-tracing': 1.0.0-preview.7 '@azure/eslint-plugin-azure-sdk': 2.0.1_5be9065a4c7972ebfd372404cdf76b9c '@microsoft/api-extractor': 7.7.10 + '@opentelemetry/api': 0.5.2 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -7765,7 +7782,7 @@ packages: dev: false name: '@rush-temp/core-auth' resolution: - integrity: sha512-hlmXkDM4DXuwx2fFmhebnizTz1B9cJcw0bWjfqM12HHcDsP1++xOXpMgDQgSCynndSHJp5GM+Y4ScV0KxEJIMA== + integrity: sha512-q15y28wD1yUS7BkFSgtasbJokquNCfncfC85LAL0ckXuxw/5IP/vriOZ8BLVxakkyDyr5dptVg0wR2ck3hthsw== tarball: 'file:projects/core-auth.tgz' version: 0.0.0 'file:projects/core-http.tgz': @@ -7773,6 +7790,7 @@ packages: '@azure/core-tracing': 1.0.0-preview.7 '@azure/eslint-plugin-azure-sdk': 2.0.1_5be9065a4c7972ebfd372404cdf76b9c '@azure/logger-js': 1.3.2 + '@opentelemetry/api': 0.5.2 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -7842,13 +7860,14 @@ packages: dev: false name: '@rush-temp/core-http' resolution: - integrity: sha512-QBsiqPWD7595NgEq5QwF4qNIabFFnsICGIBJQyw95r66NPeDfW1A9R4PAzg1AEPNBoyernYU5GNBPw+KkOZAGQ== + integrity: sha512-6tXPGyEfxw/mIUZnE9nGxnlZYt/ukWXvYeOoXfLUJ4kUUzb7NfrkKi0MYVkaCRlI5wiUD8MdcpEMfEfv2EIPrQ== tarball: 'file:projects/core-http.tgz' version: 0.0.0 'file:projects/core-lro.tgz': dependencies: '@azure/core-arm': 1.0.0-preview.7 '@microsoft/api-extractor': 7.7.10 + '@opentelemetry/api': 0.5.2 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-multi-entry': 3.0.0_rollup@1.32.1 @@ -7897,7 +7916,7 @@ packages: dev: false name: '@rush-temp/core-lro' resolution: - integrity: sha512-KWxlVDr6+tYil+37ZQK5SHc1v8a6PQknHKIKm2v88tBmqKqmMGIb9l7CjKR0uwAHlcS+SZVSEQWLVfKhEFjFgA== + integrity: sha512-1BFUqHyEqOs2hI7EynDhAqD7ewH2ymg935YdNSL8A/dZinZZrgKreDXw4/jxb7lU+e+81awsc4w9Unre1exTJg== tarball: 'file:projects/core-lro.tgz' version: 0.0.0 'file:projects/core-paging.tgz': @@ -7923,6 +7942,7 @@ packages: '@azure/eslint-plugin-azure-sdk': 2.0.1_5be9065a4c7972ebfd372404cdf76b9c '@microsoft/api-extractor': 7.7.10 '@opencensus/web-types': 0.0.7 + '@opentelemetry/api': 0.5.2 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -7955,7 +7975,7 @@ packages: dev: false name: '@rush-temp/core-tracing' resolution: - integrity: sha512-/hIvDIYwH6zJc0oroCqPrrKAM7sQp9LSZ2q4M03qb49IV/ABc6u4vBGTXh9zPIZzJVC9pw/xJo18xoNQ0s8CoA== + integrity: sha512-gM5WRm3rnhI1Gr7Nlc6pi/w2uPFm3Ax2F3j9+ipwPRlKnSwipYf8PtkFuNeMJ3A/V7SbtbtKdzk73z1U9avSrQ== tarball: 'file:projects/core-tracing.tgz' version: 0.0.0 'file:projects/cosmos.tgz': @@ -8057,6 +8077,7 @@ packages: '@azure/core-tracing': 1.0.0-preview.7 '@azure/eslint-plugin-azure-sdk': 2.0.1_5be9065a4c7972ebfd372404cdf76b9c '@microsoft/api-extractor': 7.7.10 + '@opentelemetry/api': 0.5.2 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-inject': 4.0.1_rollup@1.32.1 @@ -8127,7 +8148,7 @@ packages: dev: false name: '@rush-temp/event-hubs' resolution: - integrity: sha512-7reWE1jU5bW/i9aJrgM0hoiWYGusWejkZjlZRpCAsfXA7thf83mF/ikO5bTLh6t/ZJMAatX1AzfFzFmjgaZ9FA== + integrity: sha512-1t7rXGcX8S8TuZ6+UQjmW+0uyFgxby/nW2He5H6zz92VzRzD+vxrFRmvh8UQ5kf0MG87xWhDTBqMD7KurD1dig== tarball: 'file:projects/event-hubs.tgz' version: 0.0.0 'file:projects/event-processor-host.tgz': @@ -8255,6 +8276,7 @@ packages: dependencies: '@azure/core-tracing': 1.0.0-preview.7 '@microsoft/api-extractor': 7.7.10 + '@opentelemetry/api': 0.5.2 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -8304,7 +8326,7 @@ packages: dev: false name: '@rush-temp/identity' resolution: - integrity: sha512-ILHEG8dEmffGZQh2fk5syKx+HKNl6GZYfLG5UItUKbKiMZfBqj9WX3Sdv9dIlzc71NkZVr9mZTcyWqJJIUEJEw== + integrity: sha512-/wEU01xb/nG0euyrWaY0bLbERTifxQ3r2DbZxffPCeESxHy8FZWO9u+0wviiUkl8JYY3u5s175W7mb7YBLv4Aw== tarball: 'file:projects/identity.tgz' version: 0.0.0 'file:projects/keyvault-certificates.tgz': @@ -8312,6 +8334,7 @@ packages: '@azure/core-tracing': 1.0.0-preview.7 '@azure/eslint-plugin-azure-sdk': 2.0.1_5be9065a4c7972ebfd372404cdf76b9c '@microsoft/api-extractor': 7.7.10 + '@opentelemetry/api': 0.5.2 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -8369,7 +8392,7 @@ packages: dev: false name: '@rush-temp/keyvault-certificates' resolution: - integrity: sha512-+teaH36d9YsoVsGLNE7+vsmasXdYipPAWzsYalj3fQB8aSs6ezc2Ia2IpZOfXgv1D62ov3FZ2KqvHksT6D7wGQ== + integrity: sha512-GDfnQHeU5shOeXD3n+/zBdx35uluC/m4Ufg3QB/P2/W6RQQzUP2GBeQXgyqHoNma9CWJG2XFr2sXXkMon07M2A== tarball: 'file:projects/keyvault-certificates.tgz' version: 0.0.0 'file:projects/keyvault-keys.tgz': @@ -8377,6 +8400,7 @@ packages: '@azure/core-tracing': 1.0.0-preview.7 '@azure/eslint-plugin-azure-sdk': 2.0.1_5be9065a4c7972ebfd372404cdf76b9c '@microsoft/api-extractor': 7.7.10 + '@opentelemetry/api': 0.5.2 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -8434,7 +8458,7 @@ packages: dev: false name: '@rush-temp/keyvault-keys' resolution: - integrity: sha512-RkkF4riRd8msfx+esRfT0NiONewSHlqExT+hzfkuLC+NN5dhj/stu6Pc2zuJ70O/TUzL5Hg+OVo2915tLlfu6g== + integrity: sha512-RPOalobvP6PXOMYEFSucIuZAkT4D+Wo6okJXUtnO5ctdu3GhtinlBxOBGfW2M9DqEFX/dTxpOwnRVh9neCqBtA== tarball: 'file:projects/keyvault-keys.tgz' version: 0.0.0 'file:projects/keyvault-secrets.tgz': @@ -8442,6 +8466,7 @@ packages: '@azure/core-tracing': 1.0.0-preview.7 '@azure/eslint-plugin-azure-sdk': 2.0.1_5be9065a4c7972ebfd372404cdf76b9c '@microsoft/api-extractor': 7.7.10 + '@opentelemetry/api': 0.5.2 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -8499,7 +8524,7 @@ packages: dev: false name: '@rush-temp/keyvault-secrets' resolution: - integrity: sha512-2xlXKw3cx0zksmdAjgT747weaJHKVksZqfo/szRWnQJctcWqrDulhOmasHdZVKGPdq+c8teVHruW9DNW8lFX9g== + integrity: sha512-6w3Mzr8APDueRdFrT2gfsqyQj43ljkSZSRLT0L0TNAkOpnPSCsgI2g9MaEROo9ECZIKyoWljlYJRxxRHF4bzQg== tarball: 'file:projects/keyvault-secrets.tgz' version: 0.0.0 'file:projects/logger.tgz': @@ -8559,6 +8584,7 @@ packages: dependencies: '@azure/core-tracing': 1.0.0-preview.7 '@microsoft/api-extractor': 7.7.10 + '@opentelemetry/api': 0.5.2 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -8607,13 +8633,14 @@ packages: dev: false name: '@rush-temp/search' resolution: - integrity: sha512-JIAjGgQCihxD2MfLU+fhsZMzTjGC6idmKsA3xj/xHB5iM1D7+XjsMpGd+K48GjkvmSmUd1rF811pdBZmkVBtHQ== + integrity: sha512-nmwe7NvDUzEKCy7BIsQRwK5UbxK2D70nJ4JTKlzLY+FfhW0A7+YPHbVpTi4oQowbdXVRJKsYtTk35UAzxCgEuA== tarball: 'file:projects/search.tgz' version: 0.0.0 'file:projects/service-bus.tgz': dependencies: '@azure/eslint-plugin-azure-sdk': 2.0.1_5be9065a4c7972ebfd372404cdf76b9c '@microsoft/api-extractor': 7.7.10 + '@opentelemetry/api': 0.5.2 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-inject': 4.0.1_rollup@1.32.1 @@ -8684,13 +8711,14 @@ packages: dev: false name: '@rush-temp/service-bus' resolution: - integrity: sha512-oKZNqJJS2RvCaBI+IO7cBy+kjGej1FJ/OYJpMJmq6cgdqr9ASeUclULTRyLriGYLf6H/uJoH/6eF11eHm5/5kg== + integrity: sha512-NaRTIGG1ooZQELzEmXbvWDH1A7rYK1cBdYjZwGcexNfmvSUwSxzIbV7He/FwCn68DydMoJ26gLKTqFanU7vSMA== tarball: 'file:projects/service-bus.tgz' version: 0.0.0 'file:projects/storage-blob.tgz': dependencies: '@azure/core-tracing': 1.0.0-preview.7 '@microsoft/api-extractor': 7.7.10 + '@opentelemetry/api': 0.5.2 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-multi-entry': 3.0.0_rollup@1.32.1 @@ -8745,13 +8773,14 @@ packages: dev: false name: '@rush-temp/storage-blob' resolution: - integrity: sha512-uVx8cmO1zHZNDc+i/zpN8ovsXaTfnOrA1oNRtJI/QHhMu4Dpu98nFLe7zNESmGhBBipuqJoEQjVGcfwAas+D7A== + integrity: sha512-JWUSugtzymFwfOcitG2lGZ6nklWj+3D+iWmIIcEu7bvSVnzY+FLmwKVMJ94sM4+gwCln9XJMDtjfehNanZBoPg== tarball: 'file:projects/storage-blob.tgz' version: 0.0.0 'file:projects/storage-file-datalake.tgz': dependencies: '@azure/core-tracing': 1.0.0-preview.7 '@microsoft/api-extractor': 7.7.10 + '@opentelemetry/api': 0.5.2 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-multi-entry': 3.0.0_rollup@1.32.1 @@ -8814,13 +8843,14 @@ packages: dev: false name: '@rush-temp/storage-file-datalake' resolution: - integrity: sha512-BOgBvVIQgajw92Wy1Ak8IGFycLPH4fOi9LXMZ6M9l6WKxP2qCouD+XdZF3wLGLF2SrUu9fCwPuPfYDxHA8jv3A== + integrity: sha512-60Rw2/gbFe3ipbnY97vsFOBhn+vlp8mSX0tkEXVGw3pa++7cErSggQqI3ylbWW1g5XeYRPGIHQ7Ocx20G1Gr8w== tarball: 'file:projects/storage-file-datalake.tgz' version: 0.0.0 'file:projects/storage-file-share.tgz': dependencies: '@azure/core-tracing': 1.0.0-preview.7 '@microsoft/api-extractor': 7.7.10 + '@opentelemetry/api': 0.5.2 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-multi-entry': 3.0.0_rollup@1.32.1 @@ -8875,13 +8905,14 @@ packages: dev: false name: '@rush-temp/storage-file-share' resolution: - integrity: sha512-FFmsZnrOpTfeYaiFLAjpb93M0fBTy4Wk+71Nsqliah4Tx5VRxiVLaCbM9rrwfQWl4Jwm82H1OdkSJPU+7ycgxw== + integrity: sha512-XU28LNFyU6yrKR9PVl/p2hubCLIXqNMIsZRLO0A6b3AR/eNYZa7kGJuZn4HnfmDq9u+6sqw0FZ47YgmzNCJcpA== tarball: 'file:projects/storage-file-share.tgz' version: 0.0.0 'file:projects/storage-queue.tgz': dependencies: '@azure/core-tracing': 1.0.0-preview.7 '@microsoft/api-extractor': 7.7.10 + '@opentelemetry/api': 0.5.2 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-multi-entry': 3.0.0_rollup@1.32.1 @@ -8935,12 +8966,13 @@ packages: dev: false name: '@rush-temp/storage-queue' resolution: - integrity: sha512-qPSec+u7vnUtqY/d6DS15HcTycFJflvLruOpWvi+Ub6natgHoUgAtPj5XDlDG2s/Ov4tvOqKIacmGbvqWg7jCw== + integrity: sha512-/1xiq/WYg0niKYKK82qiGhvDZcLyHIjsvG/6FzTjo4UiqkD+X0U5y//jXwXxALcOzoNl0+7n+PBavavBBP+2kw== tarball: 'file:projects/storage-queue.tgz' version: 0.0.0 'file:projects/template.tgz': dependencies: '@microsoft/api-extractor': 7.7.10 + '@opentelemetry/api': 0.5.2 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -8985,11 +9017,12 @@ packages: dev: false name: '@rush-temp/template' resolution: - integrity: sha512-eUx+jKYTaAnVvTxHJx/nZyaSn4nl2yyCKW3SbkyJgqfdEyQ6Kecq0dwcZC8jGmznoeYmRUFEaQ4qmvw7HUjtwQ== + integrity: sha512-56kS6Tq/5zZqiNYB8mRRT+UaIxvjjiAMVSL1oy5k2twmvW5/PX822xb+u/BhmPU0JsaYpO04W8kb7TR9Ae0MzQ== tarball: 'file:projects/template.tgz' version: 0.0.0 'file:projects/test-utils-recorder.tgz': dependencies: + '@opentelemetry/api': 0.5.2 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-multi-entry': 3.0.0_rollup@1.32.1 @@ -9045,7 +9078,7 @@ packages: dev: false name: '@rush-temp/test-utils-recorder' resolution: - integrity: sha512-P1J2/7E0IP7QJu93Y8FzFPjID1dwmzi0P+wQSSPBbYh0heNiuRfdp7G28aE4n8pkL92CuRfgt1stDYPCona0+A== + integrity: sha512-iavWLNLt9WA5ybaNMd81roVsdkDHsq+GR0ki1SPWTZ4i4Xl+VBusbmLnN3+8sdFKY8SvHyl6gk157e2lNFUQ7w== tarball: 'file:projects/test-utils-recorder.tgz' version: 0.0.0 'file:projects/testhub.tgz': @@ -9069,6 +9102,7 @@ packages: integrity: sha512-guDU8PdEdKCVnGxNd1JEkmqukDoc1wodkEqQCWpY1+bX4ZT+ZY520gfVcMeMHYCEO8TAAhScGNke/y7p9qBArA== tarball: 'file:projects/testhub.tgz' version: 0.0.0 +registry: '' specifiers: '@rush-temp/abort-controller': 'file:./projects/abort-controller.tgz' '@rush-temp/ai-text-analytics': 'file:./projects/ai-text-analytics.tgz' From 4b49cf73729bab1021746d300f21730db970fc19 Mon Sep 17 00:00:00 2001 From: Jeff Fisher Date: Mon, 30 Mar 2020 12:03:01 -0700 Subject: [PATCH 17/29] Fix test break --- .../app-configuration/test/tracingHelpers.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/appconfiguration/app-configuration/test/tracingHelpers.spec.ts b/sdk/appconfiguration/app-configuration/test/tracingHelpers.spec.ts index c7e51bad5e5c..eae3cc37387c 100644 --- a/sdk/appconfiguration/app-configuration/test/tracingHelpers.spec.ts +++ b/sdk/appconfiguration/app-configuration/test/tracingHelpers.spec.ts @@ -32,7 +32,7 @@ describe("tracingHelpers", () => { const newOptions = Spanner["addParentToOptions"](fakeOptions, parentSpan); assert.equal("fakeName", newOptions.name); - assert.equal(parentSpan, newOptions.spanOptions.parent); + assert.deepEqual(parentSpan.context(), newOptions.spanOptions.parent); assert.ok(newOptions.spanOptions.attributes, "Should have attributes set"); if (newOptions.spanOptions.attributes) { assert.equal("Microsoft.AppConfiguration", newOptions.spanOptions.attributes["az.namespace"]); From e53ce327abb5a2a4b325f422f0d7d97365e72ba4 Mon Sep 17 00:00:00 2001 From: Jeff Fisher Date: Thu, 16 Apr 2020 16:24:44 -0700 Subject: [PATCH 18/29] fixup --- sdk/storage/storage-blob/src/utils/tracing.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/storage/storage-blob/src/utils/tracing.ts b/sdk/storage/storage-blob/src/utils/tracing.ts index c11251e5cf92..c476db1f8b0b 100644 --- a/sdk/storage/storage-blob/src/utils/tracing.ts +++ b/sdk/storage/storage-blob/src/utils/tracing.ts @@ -1,8 +1,8 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -import { getTracer, OperationTracingOptions } from "@azure/core-tracing"; -import { Span, SpanOptions, SpanKind } from "@opentelemetry/api"; +import { getTracer, OperationTracingOptions, SpanOptions } from "@azure/core-tracing"; +import { Span, SpanOptions as OTSpanOptions, SpanKind } from "@opentelemetry/api"; /** * Creates a span using the global tracer. From 3bbb73c01798d9eae3cf6a4e47d4ce692295940b Mon Sep 17 00:00:00 2001 From: Jeff Fisher Date: Thu, 16 Apr 2020 16:25:56 -0700 Subject: [PATCH 19/29] update lockfile --- common/config/rush/pnpm-lock.yaml | 73 ++++++++++++++++++++++--------- 1 file changed, 53 insertions(+), 20 deletions(-) diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 940446dbbb45..517cce0169e4 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -296,6 +296,20 @@ packages: node: '>=6.0' resolution: integrity: sha512-xB+w7ZDAu3YBzqH44rCmG9/RlrOmFuDPt/bpf17eJr8eZSrLt7nc7LnWdxM9Mmoj/YKMHpxRg28txu3TcpiL+g== + /@opentelemetry/api/0.5.2: + dependencies: + '@opentelemetry/context-base': 0.5.2 + dev: false + engines: + node: '>=8.0.0' + resolution: + integrity: sha512-SLahDSBn08zxz+zd0kq3XXn29HyUegWX/EUD79RuF7qBoXfMlwnCOx8eIzLsIRUDY4S9Qq7BYGOHdKz2p8oeeQ== + /@opentelemetry/context-base/0.5.2: + dev: false + engines: + node: '>=8.0.0' + resolution: + integrity: sha512-eaXuO5kwlW1X4RG7BJGC+rr6I1KFynJLJS6A0QptkgrMvZ4J1YCoIkhzmAXy2wiIHcbo/vQDV58aLtrYOrYX5g== /@opentelemetry/types/0.2.0: deprecated: 'Package renamed to @opentelemetry/api, see https://github.com/open-telemetry/opentelemetry-js' dev: false @@ -7338,13 +7352,14 @@ packages: dev: false name: '@rush-temp/ai-form-recognizer' resolution: - integrity: sha512-VOQcPSOHE/VEK0LuExOKJ2U8S4Ruq46hIKwIMiRGblegZ0ir0lqrVP7/apJHu8nzT9D4JZZc85/QYm8t6tBF1Q== + integrity: sha512-yg99yZFn9+W4DBw5vI8p+/SDMYENHpnsYuqSXk8svMIyB9Qc0tUCHiQ2u9rHoPaQx2wnWYnZY52P6FKJTRcGoA== tarball: 'file:projects/ai-form-recognizer.tgz' version: 0.0.0 'file:projects/ai-text-analytics.tgz': dependencies: '@azure/core-tracing': 1.0.0-preview.7 '@microsoft/api-extractor': 7.7.11 + '@opentelemetry/api': 0.5.2 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -7397,13 +7412,14 @@ packages: dev: false name: '@rush-temp/ai-text-analytics' resolution: - integrity: sha512-MnlH3ujXhHSeQXvNsSxKqZQJKTExyBlT1M7NZFefwW7IaX0kEJV+dGnhcxbeXJ4TkxkpjER62HS5stbQSsCARg== + integrity: sha512-gcT3QXqJzBedd0E5to3J4/YJ8CNRGekx9RmukfO4OE6+9NR8Ot0RQmIVDD3pAxZteYIOm3oSafkZu+HvecY9Bg== tarball: 'file:projects/ai-text-analytics.tgz' version: 0.0.0 'file:projects/app-configuration.tgz': dependencies: '@azure/core-tracing': 1.0.0-preview.7 '@microsoft/api-extractor': 7.7.11 + '@opentelemetry/api': 0.5.2 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-multi-entry': 3.0.0_rollup@1.32.1 @@ -7438,7 +7454,7 @@ packages: dev: false name: '@rush-temp/app-configuration' resolution: - integrity: sha512-hmxnjELIDA/thpjlVS5URn8YLaFLk081xlKujtTSE/2Wh/dzjsQq5kcmH9R1W1Jr/9vhlfFXqlbjPXQLQ+/tTQ== + integrity: sha512-davE5uTqGcOcrIvC64K1ief8Fv7VoQxg3h+NVkGxHRp9uSiRTadMVEA4dq6C5gVrhbbnby8E8ZNK1nh0XV0UEg== tarball: 'file:projects/app-configuration.tgz' version: 0.0.0 'file:projects/core-amqp.tgz': @@ -7563,6 +7579,7 @@ packages: '@azure/core-tracing': 1.0.0-preview.7 '@azure/eslint-plugin-azure-sdk': 2.0.1_9e31f0f459c1656d0a7ef30429cc70f8 '@microsoft/api-extractor': 7.7.11 + '@opentelemetry/api': 0.5.2 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -7596,7 +7613,7 @@ packages: dev: false name: '@rush-temp/core-auth' resolution: - integrity: sha512-9PnlIComTMQem5w0/ML7oF2IxwxtfBPABwh1pyNdNhW0ZjWnzpHyabcpdOwqSNl3cG/etUfJCA/iYHDu11199A== + integrity: sha512-aAEdofROW5/g43dN2EFVjZ54CzGDNUvXLaEZpYl2Zbc2LN/Fa1d2BpeWbl/ElvmI7EC+FdBilJ+s/j0hB91reA== tarball: 'file:projects/core-auth.tgz' version: 0.0.0 'file:projects/core-http.tgz': @@ -7604,6 +7621,7 @@ packages: '@azure/core-tracing': 1.0.0-preview.7 '@azure/eslint-plugin-azure-sdk': 2.0.1_9e31f0f459c1656d0a7ef30429cc70f8 '@azure/logger-js': 1.3.2 + '@opentelemetry/api': 0.5.2 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -7672,13 +7690,14 @@ packages: dev: false name: '@rush-temp/core-http' resolution: - integrity: sha512-hyQj/CXDUP8OynSDrr0s4D3JAFfskTgQ12TE4t+a0f7Nrkv3UKlYEeqqSTANJUv2sTr9HzsWYAOY82jvhYdJ0A== + integrity: sha512-Jw6cAa4l0zdDQ+EzH3YQKRM1cDOkxyX1hcEpRjlvXRpkM659V6mKqMM9rUEU98oA9AYFH6MJBQdSzzMLAOJMqA== tarball: 'file:projects/core-http.tgz' version: 0.0.0 'file:projects/core-lro.tgz': dependencies: '@azure/core-arm': 1.0.0-preview.7 '@microsoft/api-extractor': 7.7.11 + '@opentelemetry/api': 0.5.2 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-multi-entry': 3.0.0_rollup@1.32.1 @@ -7727,7 +7746,7 @@ packages: dev: false name: '@rush-temp/core-lro' resolution: - integrity: sha512-ZL66eadCZosOD3Inij3lO9l5++oSw+s16A65fHbWaZLzdZUZPnseA2FSizqqkVpStE4QTEcreytuMryuAJGQYA== + integrity: sha512-30+fwGVCf2UQU5lT+WLyxTSScKaY0OKesin6CveZoYfCsKh8ujxONwy57N6qQI0Vuye4zSNhBefR+XhrtuaFeg== tarball: 'file:projects/core-lro.tgz' version: 0.0.0 'file:projects/core-paging.tgz': @@ -7753,6 +7772,7 @@ packages: '@azure/eslint-plugin-azure-sdk': 2.0.1_9e31f0f459c1656d0a7ef30429cc70f8 '@microsoft/api-extractor': 7.7.11 '@opencensus/web-types': 0.0.7 + '@opentelemetry/api': 0.5.2 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -7785,7 +7805,7 @@ packages: dev: false name: '@rush-temp/core-tracing' resolution: - integrity: sha512-7rjcVoDzWl97RI6v1Phd/i1A//HYnOIkIg222G8Y/DYISJ4jKOngVqhkZZINSfM2cj3JzVXgF3BpIhtiRVOzdA== + integrity: sha512-bj3zyK89BTf0PxCzKhHy+QbmCs0LpFbhb9oR09o2fe2EEVhs8NzEI8wGrrL00083pA/iigzEySvAwY/fVWq9tA== tarball: 'file:projects/core-tracing.tgz' version: 0.0.0 'file:projects/cosmos.tgz': @@ -7887,6 +7907,7 @@ packages: '@azure/core-tracing': 1.0.0-preview.7 '@azure/eslint-plugin-azure-sdk': 2.0.1_9e31f0f459c1656d0a7ef30429cc70f8 '@microsoft/api-extractor': 7.7.11 + '@opentelemetry/api': 0.5.2 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-inject': 4.0.1_rollup@1.32.1 @@ -7957,7 +7978,7 @@ packages: dev: false name: '@rush-temp/event-hubs' resolution: - integrity: sha512-mSsbDIY9FJqzhGQDLARVITW7t/xFu6GcMaIIYtPc0/ZbzKP/HeUW8wZjl+vBuxCG3zMFI/R/d4kGiFh14ZWCwQ== + integrity: sha512-p25NAS1gMfErGS/oDFxLY7FlQNUi3zApFS3DuVrn07E4TMSd3OTm9Smf/YX8C8W7bhFrnjmFrLyHGb34MQ+rTA== tarball: 'file:projects/event-hubs.tgz' version: 0.0.0 'file:projects/event-processor-host.tgz': @@ -8085,6 +8106,7 @@ packages: dependencies: '@azure/core-tracing': 1.0.0-preview.7 '@microsoft/api-extractor': 7.7.11 + '@opentelemetry/api': 0.5.2 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -8134,7 +8156,7 @@ packages: dev: false name: '@rush-temp/identity' resolution: - integrity: sha512-CCxJTus8H96cbGrGw4cWctvjEdsFyfFbREF9XpEHooVLLEw+4Fd7HJ+FsSrBFPupTCqQy52sfky0LnjX/ibjyw== + integrity: sha512-/IwtOb2MNB/cD9Qisb8fSH75gXMQfux3WAAV3TcOj9tegmFvSUYEd32oUReMPVHKfrw2tne+NBEEworzzR6FrQ== tarball: 'file:projects/identity.tgz' version: 0.0.0 'file:projects/keyvault-certificates.tgz': @@ -8142,6 +8164,7 @@ packages: '@azure/core-tracing': 1.0.0-preview.7 '@azure/eslint-plugin-azure-sdk': 2.0.1_9e31f0f459c1656d0a7ef30429cc70f8 '@microsoft/api-extractor': 7.7.11 + '@opentelemetry/api': 0.5.2 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -8199,7 +8222,7 @@ packages: dev: false name: '@rush-temp/keyvault-certificates' resolution: - integrity: sha512-0AOme+rcrw5rWajcjkwToZkem3oUsHduxcGnn4FCVm3z2qbPopZppC78TiWRl4iysT/HM2SifpwedaPsUC9z8g== + integrity: sha512-r5VWqfBNtGNFetNwKahBik6mgxii16LvtEes532a7ctaSM3LuJf3m2RucqNo5Ofup6yvU9mptKgjawj5QXAKHw== tarball: 'file:projects/keyvault-certificates.tgz' version: 0.0.0 'file:projects/keyvault-keys.tgz': @@ -8207,6 +8230,7 @@ packages: '@azure/core-tracing': 1.0.0-preview.7 '@azure/eslint-plugin-azure-sdk': 2.0.1_9e31f0f459c1656d0a7ef30429cc70f8 '@microsoft/api-extractor': 7.7.11 + '@opentelemetry/api': 0.5.2 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -8264,7 +8288,7 @@ packages: dev: false name: '@rush-temp/keyvault-keys' resolution: - integrity: sha512-aq1IOGup7fJPa4P29NiYRx2OEl042M2eqfFnI9LYzoSkF2EMQ0Fr+GNPH87c12RxvAxoG734X2RcsYGvTc+6IQ== + integrity: sha512-EENkD3f3h6r46b9qK6zVrFzi0CESO6bVHebxPMuWrA8/9e4Y40H9ZUg4CuIpDmYNACWIgOiaR+mJk4MTtJHyUA== tarball: 'file:projects/keyvault-keys.tgz' version: 0.0.0 'file:projects/keyvault-secrets.tgz': @@ -8272,6 +8296,7 @@ packages: '@azure/core-tracing': 1.0.0-preview.7 '@azure/eslint-plugin-azure-sdk': 2.0.1_9e31f0f459c1656d0a7ef30429cc70f8 '@microsoft/api-extractor': 7.7.11 + '@opentelemetry/api': 0.5.2 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -8329,7 +8354,7 @@ packages: dev: false name: '@rush-temp/keyvault-secrets' resolution: - integrity: sha512-gyQ56EpYVxWL10eRFjUm3J+13YBxx7+F4joKPfMTHxbYG3JBnjFLFRgdeoN2PcJJRAlLN9++TvRgsGFsQbL6ug== + integrity: sha512-+p1poPxQG6cAkz7pEJGc2pBZBulk+j5ioyqy4i6OWBenak7g7KpWb8H/ogM6p7877kwzh7QFCInl3hPl1gUvww== tarball: 'file:projects/keyvault-secrets.tgz' version: 0.0.0 'file:projects/logger.tgz': @@ -8389,6 +8414,7 @@ packages: dependencies: '@azure/core-tracing': 1.0.0-preview.7 '@microsoft/api-extractor': 7.7.11 + '@opentelemetry/api': 0.5.2 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -8441,13 +8467,14 @@ packages: dev: false name: '@rush-temp/search-documents' resolution: - integrity: sha512-M1hNLKQnv54T1VhngmwFX2aBlJyvDoCWcCRm7juqeDQRqgOUX+wTVYDFBNfBeIyo9w6waW46J8sMrN1QE+3IPw== + integrity: sha512-tYGoiQP8PNCcYZb5fLvNZZ0Zukyr6tFwNZ4YCYJo6vmNC6hAAY9r3Tfllxe1nR4X2IMBkSPfbRuJuUwBeQfLTg== tarball: 'file:projects/search-documents.tgz' version: 0.0.0 'file:projects/service-bus.tgz': dependencies: '@azure/eslint-plugin-azure-sdk': 2.0.1_9e31f0f459c1656d0a7ef30429cc70f8 '@microsoft/api-extractor': 7.7.11 + '@opentelemetry/api': 0.5.2 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-inject': 4.0.1_rollup@1.32.1 @@ -8518,13 +8545,14 @@ packages: dev: false name: '@rush-temp/service-bus' resolution: - integrity: sha512-6Q2CNtM/F+3/7lR2m7l/Q6K02I4p+s/N5I8vobgLQS8sZRex+HylEK0KqyPZXBYfdgt0kHQ629dOAaLMOQbYEg== + integrity: sha512-1LXMJQgtsAG6mtIWOg4ZvZo8BCknKc7vguMC6yWzXZ/8tyzStVEQRNHKj83LLu4shDIq+KqaIVtvIUaPpl+bUQ== tarball: 'file:projects/service-bus.tgz' version: 0.0.0 'file:projects/storage-blob.tgz': dependencies: '@azure/core-tracing': 1.0.0-preview.7 '@microsoft/api-extractor': 7.7.11 + '@opentelemetry/api': 0.5.2 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-multi-entry': 3.0.0_rollup@1.32.1 @@ -8579,13 +8607,14 @@ packages: dev: false name: '@rush-temp/storage-blob' resolution: - integrity: sha512-naOHvsbpiMiC3ZmX99Ned6WfV/ovnt37R8nDb6fjZnHdwCyYZ8aokYEQKllGiUGaPAhqfHHcOBhn/efF/xLN7g== + integrity: sha512-8ehODW393P9m7ywXwt6+udNfFljN/xdtPk3vS7xeaz0f1pwv7LJ9DBG+I8g2tt7PCWXm3GOBKpVrzhC98knCUQ== tarball: 'file:projects/storage-blob.tgz' version: 0.0.0 'file:projects/storage-file-datalake.tgz': dependencies: '@azure/core-tracing': 1.0.0-preview.7 '@microsoft/api-extractor': 7.7.11 + '@opentelemetry/api': 0.5.2 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-multi-entry': 3.0.0_rollup@1.32.1 @@ -8648,13 +8677,14 @@ packages: dev: false name: '@rush-temp/storage-file-datalake' resolution: - integrity: sha512-JiPb2F7judwwjt3bDmBHIVu6h1MqBWL1/nQeINPokJ5vq9x1mlDfYU2YF/4woQIxsGvBB3acAdmO0Ne3PQpgWA== + integrity: sha512-E3c1nSmO0l/XHYC3hfXIFy7xsLeuHdixSojc1WegtI6KtFJy9tUR8Veyqz/F/HuQmlU/lDbszq+GL6DRgTGEAQ== tarball: 'file:projects/storage-file-datalake.tgz' version: 0.0.0 'file:projects/storage-file-share.tgz': dependencies: '@azure/core-tracing': 1.0.0-preview.7 '@microsoft/api-extractor': 7.7.11 + '@opentelemetry/api': 0.5.2 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-multi-entry': 3.0.0_rollup@1.32.1 @@ -8709,13 +8739,14 @@ packages: dev: false name: '@rush-temp/storage-file-share' resolution: - integrity: sha512-1+7sbm3AIYgwKAz4LfzfvKtC5n6o+KU1cS3EUaRO2sPkYgeCQmCdCXV8kseIIcmmpDvDwPkD+9gCiLUSQBbTnQ== + integrity: sha512-qiAocV+S7OQfW9fnhIiWq/s09pA3oqB2mjLy2UoN0SFQs6JhmPG4eF7LMHJ5qxhPAOMHdhiynLf5+7BSTvEFzA== tarball: 'file:projects/storage-file-share.tgz' version: 0.0.0 'file:projects/storage-queue.tgz': dependencies: '@azure/core-tracing': 1.0.0-preview.7 '@microsoft/api-extractor': 7.7.11 + '@opentelemetry/api': 0.5.2 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-multi-entry': 3.0.0_rollup@1.32.1 @@ -8769,12 +8800,13 @@ packages: dev: false name: '@rush-temp/storage-queue' resolution: - integrity: sha512-7heILWon6erIDU9UXjwaqCw3rykQdkzWtKxI9QHqtCRzYnQG6coXyHxuip14XOMYp/9HJPYAqJFSjofz+V5gPA== + integrity: sha512-XIa0kxmkk1gMD7hau/6FNgM8SGexCG+p9iXTblkqzEhJDQVpo59v6zHGP14v6jKs4kXdx64GkNnSo/Un1rmaQQ== tarball: 'file:projects/storage-queue.tgz' version: 0.0.0 'file:projects/template.tgz': dependencies: '@microsoft/api-extractor': 7.7.11 + '@opentelemetry/api': 0.5.2 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -8819,11 +8851,12 @@ packages: dev: false name: '@rush-temp/template' resolution: - integrity: sha512-/k3A3sARicxW85MydT7ep4MfCPDn0lMBGmfl/5nfN9qz1o65Efj6z0051rWeHElz26L5jY1nVu74c2NLihEpQg== + integrity: sha512-pLClB4SYCxRTM4esxOzcpl8D+SpjB/HnynvQdYA3OFMPA5rm2vUAJDisztq7Yj9t+PMOnYiEBjGLwBHYepXXdQ== tarball: 'file:projects/template.tgz' version: 0.0.0 'file:projects/test-utils-recorder.tgz': dependencies: + '@opentelemetry/api': 0.5.2 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-multi-entry': 3.0.0_rollup@1.32.1 @@ -8879,7 +8912,7 @@ packages: dev: false name: '@rush-temp/test-utils-recorder' resolution: - integrity: sha512-2MymjhY0suTq4E9wnY5HNFSla8d3F4dqzQ0w06NJSeLPluhvt2Y6apC3yXwcNRAG9G4YdaQ2IioM1g27l2zhDw== + integrity: sha512-HkWgPfT0eo/uOnzdAQY264emvjDAski6Kp0f9YayxTE73eh3uR3d4+tpK8W+3QRWbn+opp0hBEaRc5SSDaiuvA== tarball: 'file:projects/test-utils-recorder.tgz' version: 0.0.0 'file:projects/testhub.tgz': From b04875e0c0ec034362b94fda896d6bbc96bef54c Mon Sep 17 00:00:00 2001 From: Jeff Fisher Date: Thu, 16 Apr 2020 16:36:40 -0700 Subject: [PATCH 20/29] Fix identity and search --- .../core-tracing/review/core-tracing.api.md | 8 +- sdk/identity/identity/src/util/tracing.ts | 2 +- .../search-documents/rollup.base.config.js | 2 +- .../src/searchServiceClient.ts | 2 +- .../review/storage-file-share.api.md | 2265 ++++++++--------- 5 files changed, 1045 insertions(+), 1234 deletions(-) diff --git a/sdk/core/core-tracing/review/core-tracing.api.md b/sdk/core/core-tracing/review/core-tracing.api.md index 01307a7b1750..59fbe544d1cc 100644 --- a/sdk/core/core-tracing/review/core-tracing.api.md +++ b/sdk/core/core-tracing/review/core-tracing.api.md @@ -74,15 +74,15 @@ export class OpenCensusTracerWrapper implements Tracer { withSpan unknown>(_span: Span, _fn: T): ReturnType; } -export { OTSpanContext } - -export { OTSpanOptions } - // @public export interface OperationTracingOptions { spanOptions?: SpanOptions; } +export { OTSpanContext } + +export { OTSpanOptions } + // @public export function setTracer(tracer: Tracer): void; diff --git a/sdk/identity/identity/src/util/tracing.ts b/sdk/identity/identity/src/util/tracing.ts index 72f361240b70..54f98a9a54f9 100644 --- a/sdk/identity/identity/src/util/tracing.ts +++ b/sdk/identity/identity/src/util/tracing.ts @@ -3,7 +3,7 @@ import { GetTokenOptions } from "@azure/core-http"; import { getTracer, OperationTracingOptions } from "@azure/core-tracing"; -import { Span, SpanKind } from "@opentelemetry/api"; +import { Span, SpanKind, SpanOptions as OTSpanOptions } from "@opentelemetry/api"; /** * Creates a span using the global tracer. diff --git a/sdk/search/search-documents/rollup.base.config.js b/sdk/search/search-documents/rollup.base.config.js index d24a3cb641e5..3eec167f54fd 100644 --- a/sdk/search/search-documents/rollup.base.config.js +++ b/sdk/search/search-documents/rollup.base.config.js @@ -95,7 +95,7 @@ export function browserConfig(test = false) { cjs({ namedExports: { chai: ["assert"], - "@opentelemetry/types": ["CanonicalCode", "SpanKind", "TraceFlags"] + "@opentelemetry/api": ["CanonicalCode", "SpanKind", "TraceFlags"] } }), viz({ filename: "dist-browser/browser-stats.html", sourcemap: false }) diff --git a/sdk/search/search-documents/src/searchServiceClient.ts b/sdk/search/search-documents/src/searchServiceClient.ts index d2f83ac02dd0..27bb2de6d3f7 100644 --- a/sdk/search/search-documents/src/searchServiceClient.ts +++ b/sdk/search/search-documents/src/searchServiceClient.ts @@ -9,7 +9,7 @@ import { PipelineOptions, ServiceClientCredentials } from "@azure/core-http"; -import { CanonicalCode } from "@opentelemetry/types"; +import { CanonicalCode } from "@opentelemetry/api"; import { SDK_VERSION } from "./constants"; import { AnalyzeResult, diff --git a/sdk/storage/storage-file-share/review/storage-file-share.api.md b/sdk/storage/storage-file-share/review/storage-file-share.api.md index e5c7fb18a6b1..fa73a6f94ae3 100644 --- a/sdk/storage/storage-file-share/review/storage-file-share.api.md +++ b/sdk/storage/storage-file-share/review/storage-file-share.api.md @@ -3,437 +3,430 @@ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). ```ts -import { AbortSignalLike } from "@azure/abort-controller"; -import { BaseRequestPolicy } from "@azure/core-http"; -import * as coreHttp from "@azure/core-http"; -import { deserializationPolicy } from "@azure/core-http"; -import { HttpHeaders } from "@azure/core-http"; -import { HttpOperationResponse } from "@azure/core-http"; -import { HttpRequestBody } from "@azure/core-http"; -import { HttpResponse } from "@azure/core-http"; -import { HttpClient as IHttpClient } from "@azure/core-http"; -import { KeepAliveOptions } from "@azure/core-http"; -import { OperationTracingOptions } from "@azure/core-tracing"; -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { ProxyOptions } from "@azure/core-http"; -import { Readable } from "stream"; -import { RequestPolicy } from "@azure/core-http"; -import { RequestPolicyFactory } from "@azure/core-http"; -import { RequestPolicyOptions } from "@azure/core-http"; -import { RestError } from "@azure/core-http"; -import { ServiceClientOptions } from "@azure/core-http"; -import { TransferProgressEvent } from "@azure/core-http"; -import { UserAgentOptions } from "@azure/core-http"; -import { WebResource } from "@azure/core-http"; + +import { AbortSignalLike } from '@azure/abort-controller'; +import { BaseRequestPolicy } from '@azure/core-http'; +import * as coreHttp from '@azure/core-http'; +import { deserializationPolicy } from '@azure/core-http'; +import { HttpHeaders } from '@azure/core-http'; +import { HttpOperationResponse } from '@azure/core-http'; +import { HttpRequestBody } from '@azure/core-http'; +import { HttpResponse } from '@azure/core-http'; +import { HttpClient as IHttpClient } from '@azure/core-http'; +import { KeepAliveOptions } from '@azure/core-http'; +import { OperationTracingOptions } from '@azure/core-tracing'; +import { PagedAsyncIterableIterator } from '@azure/core-paging'; +import { ProxyOptions } from '@azure/core-http'; +import { Readable } from 'stream'; +import { RequestPolicy } from '@azure/core-http'; +import { RequestPolicyFactory } from '@azure/core-http'; +import { RequestPolicyOptions } from '@azure/core-http'; +import { RestError } from '@azure/core-http'; +import { ServiceClientOptions } from '@azure/core-http'; +import { TransferProgressEvent } from '@azure/core-http'; +import { UserAgentOptions } from '@azure/core-http'; +import { WebResource } from '@azure/core-http'; // @public export interface AccessPolicy { - expiresOn?: string; - permissions?: string; - startsOn?: string; + expiresOn?: string; + permissions?: string; + startsOn?: string; } // @public export class AccountSASPermissions { - add: boolean; - create: boolean; - delete: boolean; - list: boolean; - static parse(permissions: string): AccountSASPermissions; - process: boolean; - read: boolean; - toString(): string; - update: boolean; - write: boolean; + add: boolean; + create: boolean; + delete: boolean; + list: boolean; + static parse(permissions: string): AccountSASPermissions; + process: boolean; + read: boolean; + toString(): string; + update: boolean; + write: boolean; } // @public export class AccountSASResourceTypes { - container: boolean; - object: boolean; - static parse(resourceTypes: string): AccountSASResourceTypes; - service: boolean; - toString(): string; + container: boolean; + object: boolean; + static parse(resourceTypes: string): AccountSASResourceTypes; + service: boolean; + toString(): string; } // @public export class AccountSASServices { - blob: boolean; - file: boolean; - static parse(services: string): AccountSASServices; - queue: boolean; - table: boolean; - toString(): string; + blob: boolean; + file: boolean; + static parse(services: string): AccountSASServices; + queue: boolean; + table: boolean; + toString(): string; } // @public export interface AccountSASSignatureValues { - expiresOn: Date; - ipRange?: SasIPRange; - permissions: AccountSASPermissions; - protocol?: SASProtocol; - resourceTypes: string; - services: string; - startsOn?: Date; - version?: string; + expiresOn: Date; + ipRange?: SasIPRange; + permissions: AccountSASPermissions; + protocol?: SASProtocol; + resourceTypes: string; + services: string; + startsOn?: Date; + version?: string; } // @public export class AnonymousCredential extends Credential { - create(nextPolicy: RequestPolicy, options: RequestPolicyOptions): AnonymousCredentialPolicy; + create(nextPolicy: RequestPolicy, options: RequestPolicyOptions): AnonymousCredentialPolicy; } // @public export class AnonymousCredentialPolicy extends CredentialPolicy { - constructor(nextPolicy: RequestPolicy, options: RequestPolicyOptions); + constructor(nextPolicy: RequestPolicy, options: RequestPolicyOptions); } -export { BaseRequestPolicy }; +export { BaseRequestPolicy } // @public export interface CloseHandlesInfo { - // (undocumented) - closedHandlesCount: number; - closeFailureCount?: number; + // (undocumented) + closedHandlesCount: number; + closeFailureCount?: number; } // @public export interface CommonOptions { - // (undocumented) - tracingOptions?: OperationTracingOptions; + // (undocumented) + tracingOptions?: OperationTracingOptions; } // @public export interface CopyFileSmbInfo { - fileAttributes?: string; - fileCreationTime?: string; - fileLastWriteTime?: string; - // Warning: (ae-forgotten-export) The symbol "PermissionCopyModeType" needs to be exported by the entry point index.d.ts - filePermissionCopyMode?: PermissionCopyModeType; - ignoreReadOnly?: boolean; - setArchiveAttribute?: boolean; + fileAttributes?: string; + fileCreationTime?: string; + fileLastWriteTime?: string; + // Warning: (ae-forgotten-export) The symbol "PermissionCopyModeType" needs to be exported by the entry point index.d.ts + filePermissionCopyMode?: PermissionCopyModeType; + ignoreReadOnly?: boolean; + setArchiveAttribute?: boolean; } // @public -export type CopyStatusType = "pending" | "success" | "aborted" | "failed"; +export type CopyStatusType = 'pending' | 'success' | 'aborted' | 'failed'; // @public export interface CorsRule { - allowedHeaders: string; - allowedMethods: string; - allowedOrigins: string; - exposedHeaders: string; - maxAgeInSeconds: number; + allowedHeaders: string; + allowedMethods: string; + allowedOrigins: string; + exposedHeaders: string; + maxAgeInSeconds: number; } // @public export abstract class Credential implements RequestPolicyFactory { - create(_nextPolicy: RequestPolicy, _options: RequestPolicyOptions): RequestPolicy; + create(_nextPolicy: RequestPolicy, _options: RequestPolicyOptions): RequestPolicy; } // @public export abstract class CredentialPolicy extends BaseRequestPolicy { - sendRequest(request: WebResource): Promise; - protected signRequest(request: WebResource): WebResource; + sendRequest(request: WebResource): Promise; + protected signRequest(request: WebResource): WebResource; } // @public -export type CredentialPolicyCreator = ( - nextPolicy: RequestPolicy, - options: RequestPolicyOptions -) => CredentialPolicy; +export type CredentialPolicyCreator = (nextPolicy: RequestPolicy, options: RequestPolicyOptions) => CredentialPolicy; // @public -export type DeleteSnapshotsOptionType = "include"; +export type DeleteSnapshotsOptionType = 'include'; -export { deserializationPolicy }; +export { deserializationPolicy } // @public export interface DirectoryCloseHandlesHeaders { - date?: Date; - marker?: string; - requestId?: string; - version?: string; + date?: Date; + marker?: string; + requestId?: string; + version?: string; } // @public export interface DirectoryCreateHeaders { - date?: Date; - // (undocumented) - errorCode?: string; - etag?: string; - fileAttributes?: string; - fileChangeOn?: Date; - fileCreatedOn?: Date; - fileId?: string; - fileLastWriteOn?: Date; - fileParentId?: string; - filePermissionKey?: string; - isServerEncrypted?: boolean; - lastModified?: Date; - requestId?: string; - version?: string; + date?: Date; + // (undocumented) + errorCode?: string; + etag?: string; + fileAttributes?: string; + fileChangeOn?: Date; + fileCreatedOn?: Date; + fileId?: string; + fileLastWriteOn?: Date; + fileParentId?: string; + filePermissionKey?: string; + isServerEncrypted?: boolean; + lastModified?: Date; + requestId?: string; + version?: string; } // @public export interface DirectoryCreateOptions extends FileAndDirectoryCreateCommonOptions, CommonOptions { - abortSignal?: AbortSignalLike; - metadata?: Metadata; + abortSignal?: AbortSignalLike; + metadata?: Metadata; } // @public export type DirectoryCreateResponse = DirectoryCreateHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: DirectoryCreateHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: DirectoryCreateHeaders; + }; }; // @public export interface DirectoryDeleteHeaders { - date?: Date; - // (undocumented) - errorCode?: string; - requestId?: string; - version?: string; + date?: Date; + // (undocumented) + errorCode?: string; + requestId?: string; + version?: string; } // @public export interface DirectoryDeleteOptions extends CommonOptions { - abortSignal?: AbortSignalLike; + abortSignal?: AbortSignalLike; } // @public export type DirectoryDeleteResponse = DirectoryDeleteHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: DirectoryDeleteHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: DirectoryDeleteHeaders; + }; }; // @public export interface DirectoryForceCloseHandlesHeaders { - date?: Date; - // (undocumented) - errorCode?: string; - marker?: string; - numberOfHandlesClosed?: number; - numberOfHandlesFailedToClose?: number; - requestId?: string; - version?: string; + date?: Date; + // (undocumented) + errorCode?: string; + marker?: string; + numberOfHandlesClosed?: number; + numberOfHandlesFailedToClose?: number; + requestId?: string; + version?: string; } // @public export interface DirectoryForceCloseHandlesOptions extends CommonOptions { - abortSignal?: AbortSignalLike; + abortSignal?: AbortSignalLike; } // @public -export type DirectoryForceCloseHandlesResponse = CloseHandlesInfo & - DirectoryCloseHandlesHeaders & { +export type DirectoryForceCloseHandlesResponse = CloseHandlesInfo & DirectoryCloseHandlesHeaders & { _response: HttpResponse & { - parsedHeaders: DirectoryForceCloseHandlesHeaders; + parsedHeaders: DirectoryForceCloseHandlesHeaders; }; - }; +}; // @public export interface DirectoryForceCloseHandlesSegmentOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - recursive?: boolean; + abortSignal?: AbortSignalLike; + recursive?: boolean; } // @public export interface DirectoryGetPropertiesHeaders { - date?: Date; - // (undocumented) - errorCode?: string; - etag?: string; - fileAttributes?: string; - fileChangeOn?: Date; - fileCreatedOn?: Date; - fileId?: string; - fileLastWriteOn?: Date; - fileParentId?: string; - filePermissionKey?: string; - isServerEncrypted?: boolean; - lastModified?: Date; - // (undocumented) - metadata?: { - [propertyName: string]: string; - }; - requestId?: string; - version?: string; + date?: Date; + // (undocumented) + errorCode?: string; + etag?: string; + fileAttributes?: string; + fileChangeOn?: Date; + fileCreatedOn?: Date; + fileId?: string; + fileLastWriteOn?: Date; + fileParentId?: string; + filePermissionKey?: string; + isServerEncrypted?: boolean; + lastModified?: Date; + // (undocumented) + metadata?: { + [propertyName: string]: string; + }; + requestId?: string; + version?: string; } // @public export interface DirectoryGetPropertiesOptions extends CommonOptions { - abortSignal?: AbortSignalLike; + abortSignal?: AbortSignalLike; } // @public export type DirectoryGetPropertiesResponse = DirectoryGetPropertiesHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: DirectoryGetPropertiesHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: DirectoryGetPropertiesHeaders; + }; }; // @public export interface DirectoryItem { - // (undocumented) - name: string; + // (undocumented) + name: string; } // @public export interface DirectoryListFilesAndDirectoriesOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - prefix?: string; + abortSignal?: AbortSignalLike; + prefix?: string; } // @public export interface DirectoryListFilesAndDirectoriesSegmentHeaders { - contentType?: string; - date?: Date; - // (undocumented) - errorCode?: string; - requestId?: string; - version?: string; + contentType?: string; + date?: Date; + // (undocumented) + errorCode?: string; + requestId?: string; + version?: string; } // @public -export type DirectoryListFilesAndDirectoriesSegmentResponse = ListFilesAndDirectoriesSegmentResponse & - DirectoryListFilesAndDirectoriesSegmentHeaders & { +export type DirectoryListFilesAndDirectoriesSegmentResponse = ListFilesAndDirectoriesSegmentResponse & DirectoryListFilesAndDirectoriesSegmentHeaders & { _response: coreHttp.HttpResponse & { - parsedHeaders: DirectoryListFilesAndDirectoriesSegmentHeaders; - bodyAsText: string; - parsedBody: ListFilesAndDirectoriesSegmentResponse; + parsedHeaders: DirectoryListFilesAndDirectoriesSegmentHeaders; + bodyAsText: string; + parsedBody: ListFilesAndDirectoriesSegmentResponse; }; - }; +}; // @public export interface DirectoryListHandlesHeaders { - contentType?: string; - date?: Date; - // (undocumented) - errorCode?: string; - requestId?: string; - version?: string; + contentType?: string; + date?: Date; + // (undocumented) + errorCode?: string; + requestId?: string; + version?: string; } // @public export interface DirectoryListHandlesOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - recursive?: boolean; + abortSignal?: AbortSignalLike; + recursive?: boolean; } // @public -export type DirectoryListHandlesResponse = ListHandlesResponse & - DirectoryListHandlesHeaders & { +export type DirectoryListHandlesResponse = ListHandlesResponse & DirectoryListHandlesHeaders & { _response: coreHttp.HttpResponse & { - parsedHeaders: DirectoryListHandlesHeaders; - bodyAsText: string; - parsedBody: ListHandlesResponse; + parsedHeaders: DirectoryListHandlesHeaders; + bodyAsText: string; + parsedBody: ListHandlesResponse; }; - }; +}; // @public export interface DirectoryListHandlesSegmentOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - maxResults?: number; - recursive?: boolean; + abortSignal?: AbortSignalLike; + maxResults?: number; + recursive?: boolean; } // @public (undocumented) -export interface DirectoryProperties - extends FileAndDirectorySetPropertiesCommonOptions, - CommonOptions { - abortSignal?: AbortSignalLike; +export interface DirectoryProperties extends FileAndDirectorySetPropertiesCommonOptions, CommonOptions { + abortSignal?: AbortSignalLike; } // @public export interface DirectorySetMetadataHeaders { - date?: Date; - // (undocumented) - errorCode?: string; - etag?: string; - isServerEncrypted?: boolean; - requestId?: string; - version?: string; + date?: Date; + // (undocumented) + errorCode?: string; + etag?: string; + isServerEncrypted?: boolean; + requestId?: string; + version?: string; } // @public export interface DirectorySetMetadataOptions extends CommonOptions { - abortSignal?: AbortSignalLike; + abortSignal?: AbortSignalLike; } // @public export type DirectorySetMetadataResponse = DirectorySetMetadataHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: DirectorySetMetadataHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: DirectorySetMetadataHeaders; + }; }; // @public export interface DirectorySetPropertiesHeaders { - date?: Date; - // (undocumented) - errorCode?: string; - etag?: string; - fileAttributes?: string; - fileChangeOn?: Date; - fileCreatedOn?: Date; - fileId?: string; - fileLastWriteOn?: Date; - fileParentId?: string; - filePermissionKey?: string; - isServerEncrypted?: boolean; - lastModified?: Date; - requestId?: string; - version?: string; + date?: Date; + // (undocumented) + errorCode?: string; + etag?: string; + fileAttributes?: string; + fileChangeOn?: Date; + fileCreatedOn?: Date; + fileId?: string; + fileLastWriteOn?: Date; + fileParentId?: string; + filePermissionKey?: string; + isServerEncrypted?: boolean; + lastModified?: Date; + requestId?: string; + version?: string; } // @public export type DirectorySetPropertiesResponse = DirectorySetPropertiesHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: DirectorySetPropertiesHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: DirectorySetPropertiesHeaders; + }; }; // @public export interface FileAbortCopyFromURLOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - leaseAccessConditions?: LeaseAccessConditions; + abortSignal?: AbortSignalLike; + leaseAccessConditions?: LeaseAccessConditions; } // @public export interface FileAbortCopyHeaders { - date?: Date; - // (undocumented) - errorCode?: string; - requestId?: string; - version?: string; + date?: Date; + // (undocumented) + errorCode?: string; + requestId?: string; + version?: string; } // @public export type FileAbortCopyResponse = FileAbortCopyHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: FileAbortCopyHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: FileAbortCopyHeaders; + }; }; // @public (undocumented) export interface FileAndDirectoryCreateCommonOptions { - creationTime?: Date | TimeNowType; - fileAttributes?: FileSystemAttributes; - filePermission?: string | FilePermissionInheritType; - filePermissionKey?: string; - lastWriteTime?: Date | TimeNowType; + creationTime?: Date | TimeNowType; + fileAttributes?: FileSystemAttributes; + filePermission?: string | FilePermissionInheritType; + filePermissionKey?: string; + lastWriteTime?: Date | TimeNowType; } // @public (undocumented) export interface FileAndDirectorySetPropertiesCommonOptions { - creationTime?: Date | TimeNowType | TimePreserveType; - fileAttributes?: FileSystemAttributes | FileAttributesPreserveType; - filePermission?: string | FilePermissionInheritType | FilePermissionPreserveType; - filePermissionKey?: string; - lastWriteTime?: Date | TimeNowType | TimePreserveType; + creationTime?: Date | TimeNowType | TimePreserveType; + fileAttributes?: FileSystemAttributes | FileAttributesPreserveType; + filePermission?: string | FilePermissionInheritType | FilePermissionPreserveType; + filePermissionKey?: string; + lastWriteTime?: Date | TimeNowType | TimePreserveType; } // @public @@ -441,317 +434,315 @@ export type FileAttributesPreserveType = "preserve"; // @public export interface FileClearRangeOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - leaseAccessConditions?: LeaseAccessConditions; + abortSignal?: AbortSignalLike; + leaseAccessConditions?: LeaseAccessConditions; } // @public export interface FileCloseHandlesHeaders { - date?: Date; - marker?: string; - requestId?: string; - version?: string; + date?: Date; + marker?: string; + requestId?: string; + version?: string; } // @public export interface FileCreateHeaders { - date?: Date; - // (undocumented) - errorCode?: string; - etag?: string; - fileAttributes?: string; - fileChangeOn?: Date; - fileCreatedOn?: Date; - fileId?: string; - fileLastWriteOn?: Date; - fileParentId?: string; - filePermissionKey?: string; - isServerEncrypted?: boolean; - lastModified?: Date; - requestId?: string; - version?: string; + date?: Date; + // (undocumented) + errorCode?: string; + etag?: string; + fileAttributes?: string; + fileChangeOn?: Date; + fileCreatedOn?: Date; + fileId?: string; + fileLastWriteOn?: Date; + fileParentId?: string; + filePermissionKey?: string; + isServerEncrypted?: boolean; + lastModified?: Date; + requestId?: string; + version?: string; } // @public export interface FileCreateOptions extends FileAndDirectoryCreateCommonOptions, CommonOptions { - abortSignal?: AbortSignalLike; - fileHttpHeaders?: FileHttpHeaders; - leaseAccessConditions?: LeaseAccessConditions; - metadata?: Metadata; + abortSignal?: AbortSignalLike; + fileHttpHeaders?: FileHttpHeaders; + leaseAccessConditions?: LeaseAccessConditions; + metadata?: Metadata; } // @public export type FileCreateResponse = FileCreateHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: FileCreateHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: FileCreateHeaders; + }; }; // @public export interface FileDeleteHeaders { - date?: Date; - // (undocumented) - errorCode?: string; - requestId?: string; - version?: string; + date?: Date; + // (undocumented) + errorCode?: string; + requestId?: string; + version?: string; } // @public export interface FileDeleteOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - leaseAccessConditions?: LeaseAccessConditions; + abortSignal?: AbortSignalLike; + leaseAccessConditions?: LeaseAccessConditions; } // @public export type FileDeleteResponse = FileDeleteHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: FileDeleteHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: FileDeleteHeaders; + }; }; // @public export interface FileDownloadHeaders { - acceptRanges?: string; - cacheControl?: string; - contentDisposition?: string; - contentEncoding?: string; - contentLanguage?: string; - contentLength?: number; - contentMD5?: Uint8Array; - contentRange?: string; - contentType?: string; - copyCompletedOn?: Date; - copyId?: string; - copyProgress?: string; - copySource?: string; - copyStatus?: CopyStatusType; - copyStatusDescription?: string; - date?: Date; - // (undocumented) - errorCode?: string; - etag?: string; - fileAttributes?: string; - fileChangeOn?: Date; - fileContentMD5?: Uint8Array; - fileCreatedOn?: Date; - fileId?: string; - fileLastWriteOn?: Date; - fileParentId?: string; - filePermissionKey?: string; - isServerEncrypted?: boolean; - lastModified?: Date; - leaseDuration?: LeaseDurationType; - leaseState?: LeaseStateType; - leaseStatus?: LeaseStatusType; - // (undocumented) - metadata?: { - [propertyName: string]: string; - }; - requestId?: string; - version?: string; + acceptRanges?: string; + cacheControl?: string; + contentDisposition?: string; + contentEncoding?: string; + contentLanguage?: string; + contentLength?: number; + contentMD5?: Uint8Array; + contentRange?: string; + contentType?: string; + copyCompletedOn?: Date; + copyId?: string; + copyProgress?: string; + copySource?: string; + copyStatus?: CopyStatusType; + copyStatusDescription?: string; + date?: Date; + // (undocumented) + errorCode?: string; + etag?: string; + fileAttributes?: string; + fileChangeOn?: Date; + fileContentMD5?: Uint8Array; + fileCreatedOn?: Date; + fileId?: string; + fileLastWriteOn?: Date; + fileParentId?: string; + filePermissionKey?: string; + isServerEncrypted?: boolean; + lastModified?: Date; + leaseDuration?: LeaseDurationType; + leaseState?: LeaseStateType; + leaseStatus?: LeaseStatusType; + // (undocumented) + metadata?: { + [propertyName: string]: string; + }; + requestId?: string; + version?: string; } // @public export interface FileDownloadOptionalParams extends coreHttp.RequestOptionsBase { - leaseAccessConditions?: LeaseAccessConditions; - range?: string; - rangeGetContentMD5?: boolean; - timeoutInSeconds?: number; + leaseAccessConditions?: LeaseAccessConditions; + range?: string; + rangeGetContentMD5?: boolean; + timeoutInSeconds?: number; } // @public export interface FileDownloadOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - leaseAccessConditions?: LeaseAccessConditions; - maxRetryRequests?: number; - onProgress?: (progress: TransferProgressEvent) => void; - rangeGetContentMD5?: boolean; + abortSignal?: AbortSignalLike; + leaseAccessConditions?: LeaseAccessConditions; + maxRetryRequests?: number; + onProgress?: (progress: TransferProgressEvent) => void; + rangeGetContentMD5?: boolean; } // @public export type FileDownloadResponseModel = FileDownloadHeaders & { - blobBody?: Promise; - readableStreamBody?: NodeJS.ReadableStream; - _response: coreHttp.HttpResponse & { - parsedHeaders: FileDownloadHeaders; - }; + blobBody?: Promise; + readableStreamBody?: NodeJS.ReadableStream; + _response: coreHttp.HttpResponse & { + parsedHeaders: FileDownloadHeaders; + }; }; // @public export interface FileDownloadToBufferOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - concurrency?: number; - leaseAccessConditions?: LeaseAccessConditions; - maxRetryRequestsPerRange?: number; - onProgress?: (progress: TransferProgressEvent) => void; - rangeSize?: number; + abortSignal?: AbortSignalLike; + concurrency?: number; + leaseAccessConditions?: LeaseAccessConditions; + maxRetryRequestsPerRange?: number; + onProgress?: (progress: TransferProgressEvent) => void; + rangeSize?: number; } // @public export interface FileForceCloseHandlesHeaders { - date?: Date; - // (undocumented) - errorCode?: string; - marker?: string; - numberOfHandlesClosed?: number; - numberOfHandlesFailedToClose?: number; - requestId?: string; - version?: string; + date?: Date; + // (undocumented) + errorCode?: string; + marker?: string; + numberOfHandlesClosed?: number; + numberOfHandlesFailedToClose?: number; + requestId?: string; + version?: string; } // @public export interface FileForceCloseHandlesOptions extends CommonOptions { - abortSignal?: AbortSignalLike; + abortSignal?: AbortSignalLike; } // @public -export type FileForceCloseHandlesResponse = CloseHandlesInfo & - FileCloseHandlesHeaders & { +export type FileForceCloseHandlesResponse = CloseHandlesInfo & FileCloseHandlesHeaders & { _response: HttpResponse & { - parsedHeaders: FileForceCloseHandlesHeaders; + parsedHeaders: FileForceCloseHandlesHeaders; }; - }; +}; // @public export interface FileGetPropertiesHeaders { - cacheControl?: string; - contentDisposition?: string; - contentEncoding?: string; - contentLanguage?: string; - contentLength?: number; - contentMD5?: Uint8Array; - contentType?: string; - copyCompletedOn?: Date; - copyId?: string; - copyProgress?: string; - copySource?: string; - copyStatus?: CopyStatusType; - copyStatusDescription?: string; - date?: Date; - // (undocumented) - errorCode?: string; - etag?: string; - fileAttributes?: string; - fileChangeOn?: Date; - fileCreatedOn?: Date; - fileId?: string; - fileLastWriteOn?: Date; - fileParentId?: string; - filePermissionKey?: string; - fileType?: FileType; - isServerEncrypted?: boolean; - lastModified?: Date; - leaseDuration?: LeaseDurationType; - leaseState?: LeaseStateType; - leaseStatus?: LeaseStatusType; - // (undocumented) - metadata?: { - [propertyName: string]: string; - }; - requestId?: string; - version?: string; + cacheControl?: string; + contentDisposition?: string; + contentEncoding?: string; + contentLanguage?: string; + contentLength?: number; + contentMD5?: Uint8Array; + contentType?: string; + copyCompletedOn?: Date; + copyId?: string; + copyProgress?: string; + copySource?: string; + copyStatus?: CopyStatusType; + copyStatusDescription?: string; + date?: Date; + // (undocumented) + errorCode?: string; + etag?: string; + fileAttributes?: string; + fileChangeOn?: Date; + fileCreatedOn?: Date; + fileId?: string; + fileLastWriteOn?: Date; + fileParentId?: string; + filePermissionKey?: string; + fileType?: FileType; + isServerEncrypted?: boolean; + lastModified?: Date; + leaseDuration?: LeaseDurationType; + leaseState?: LeaseStateType; + leaseStatus?: LeaseStatusType; + // (undocumented) + metadata?: { + [propertyName: string]: string; + }; + requestId?: string; + version?: string; } // @public export interface FileGetPropertiesOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - leaseAccessConditions?: LeaseAccessConditions; + abortSignal?: AbortSignalLike; + leaseAccessConditions?: LeaseAccessConditions; } // @public export type FileGetPropertiesResponse = FileGetPropertiesHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: FileGetPropertiesHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: FileGetPropertiesHeaders; + }; }; // @public export interface FileGetRangeListHeaders { - date?: Date; - // (undocumented) - errorCode?: string; - etag?: string; - fileContentLength?: number; - lastModified?: Date; - requestId?: string; - version?: string; + date?: Date; + // (undocumented) + errorCode?: string; + etag?: string; + fileContentLength?: number; + lastModified?: Date; + requestId?: string; + version?: string; } // @public export interface FileGetRangeListOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - leaseAccessConditions?: LeaseAccessConditions; - range?: Range; + abortSignal?: AbortSignalLike; + leaseAccessConditions?: LeaseAccessConditions; + range?: Range; } // @public export type FileGetRangeListResponse = FileGetRangeListHeaders & { - rangeList: RangeModel[]; - _response: HttpResponse & { - parsedHeaders: FileGetRangeListHeaders; - bodyAsText: string; - parsedBody: RangeModel[]; - }; + rangeList: RangeModel[]; + _response: HttpResponse & { + parsedHeaders: FileGetRangeListHeaders; + bodyAsText: string; + parsedBody: RangeModel[]; + }; }; // @public (undocumented) export interface FileHttpHeaders { - fileCacheControl?: string; - fileContentDisposition?: string; - fileContentEncoding?: string; - fileContentLanguage?: string; - fileContentMD5?: Uint8Array; - fileContentType?: string; + fileCacheControl?: string; + fileContentDisposition?: string; + fileContentEncoding?: string; + fileContentLanguage?: string; + fileContentMD5?: Uint8Array; + fileContentType?: string; } // @public export interface FileItem { - // (undocumented) - name: string; - // (undocumented) - properties: FileProperty; + // (undocumented) + name: string; + // (undocumented) + properties: FileProperty; } // @public export interface FileListHandlesHeaders { - contentType?: string; - date?: Date; - // (undocumented) - errorCode?: string; - requestId?: string; - version?: string; + contentType?: string; + date?: Date; + // (undocumented) + errorCode?: string; + requestId?: string; + version?: string; } // @public (undocumented) export interface FileListHandlesOptions extends CommonOptions { - abortSignal?: AbortSignalLike; + abortSignal?: AbortSignalLike; } // @public -export type FileListHandlesResponse = ListHandlesResponse & - FileListHandlesHeaders & { +export type FileListHandlesResponse = ListHandlesResponse & FileListHandlesHeaders & { _response: coreHttp.HttpResponse & { - parsedHeaders: FileListHandlesHeaders; - bodyAsText: string; - parsedBody: ListHandlesResponse; + parsedHeaders: FileListHandlesHeaders; + bodyAsText: string; + parsedBody: ListHandlesResponse; }; - }; +}; // @public export interface FileListHandlesSegmentOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - maxPageSize?: number; + abortSignal?: AbortSignalLike; + maxPageSize?: number; } // @public export interface FileParallelUploadOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - concurrency?: number; - fileHttpHeaders?: FileHttpHeaders; - leaseAccessConditions?: LeaseAccessConditions; - metadata?: Metadata; - onProgress?: (progress: TransferProgressEvent) => void; - rangeSize?: number; + abortSignal?: AbortSignalLike; + concurrency?: number; + fileHttpHeaders?: FileHttpHeaders; + leaseAccessConditions?: LeaseAccessConditions; + metadata?: Metadata; + onProgress?: (progress: TransferProgressEvent) => void; + rangeSize?: number; } // @public @@ -762,366 +753,356 @@ export type FilePermissionPreserveType = "preserve"; // @public (undocumented) export interface FileProperties extends FileAndDirectorySetPropertiesCommonOptions, CommonOptions { - abortSignal?: AbortSignalLike; - fileHttpHeaders?: FileHttpHeaders; - leaseAccessConditions?: LeaseAccessConditions; + abortSignal?: AbortSignalLike; + fileHttpHeaders?: FileHttpHeaders; + leaseAccessConditions?: LeaseAccessConditions; } // @public export interface FileProperty { - contentLength: number; + contentLength: number; } // @public -export interface FileResizeOptions - extends FileAndDirectorySetPropertiesCommonOptions, - CommonOptions { - abortSignal?: AbortSignalLike; - leaseAccessConditions?: LeaseAccessConditions; +export interface FileResizeOptions extends FileAndDirectorySetPropertiesCommonOptions, CommonOptions { + abortSignal?: AbortSignalLike; + leaseAccessConditions?: LeaseAccessConditions; } // @public export interface FilesAndDirectoriesListSegment { - // (undocumented) - directoryItems: DirectoryItem[]; - // (undocumented) - fileItems: FileItem[]; + // (undocumented) + directoryItems: DirectoryItem[]; + // (undocumented) + fileItems: FileItem[]; } // @public export class FileSASPermissions { - create: boolean; - delete: boolean; - static parse(permissions: string): FileSASPermissions; - read: boolean; - toString(): string; - write: boolean; + create: boolean; + delete: boolean; + static parse(permissions: string): FileSASPermissions; + read: boolean; + toString(): string; + write: boolean; } // @public export interface FileSASSignatureValues { - cacheControl?: string; - contentDisposition?: string; - contentEncoding?: string; - contentLanguage?: string; - contentType?: string; - expiresOn?: Date; - filePath?: string; - identifier?: string; - ipRange?: SasIPRange; - permissions?: FileSASPermissions; - protocol?: SASProtocol; - shareName: string; - startsOn?: Date; - version?: string; + cacheControl?: string; + contentDisposition?: string; + contentEncoding?: string; + contentLanguage?: string; + contentType?: string; + expiresOn?: Date; + filePath?: string; + identifier?: string; + ipRange?: SasIPRange; + permissions?: FileSASPermissions; + protocol?: SASProtocol; + shareName: string; + startsOn?: Date; + version?: string; } // @public export interface FileServiceProperties { - cors?: CorsRule[]; - hourMetrics?: Metrics; - minuteMetrics?: Metrics; + cors?: CorsRule[]; + hourMetrics?: Metrics; + minuteMetrics?: Metrics; } // @public export interface FileSetHTTPHeadersHeaders { - date?: Date; - // (undocumented) - errorCode?: string; - etag?: string; - fileAttributes?: string; - fileChangeOn?: Date; - fileCreatedOn?: Date; - fileId?: string; - fileLastWriteOn?: Date; - fileParentId?: string; - filePermissionKey?: string; - isServerEncrypted?: boolean; - lastModified?: Date; - requestId?: string; - version?: string; + date?: Date; + // (undocumented) + errorCode?: string; + etag?: string; + fileAttributes?: string; + fileChangeOn?: Date; + fileCreatedOn?: Date; + fileId?: string; + fileLastWriteOn?: Date; + fileParentId?: string; + filePermissionKey?: string; + isServerEncrypted?: boolean; + lastModified?: Date; + requestId?: string; + version?: string; } // @public -export interface FileSetHttpHeadersOptions - extends FileAndDirectorySetPropertiesCommonOptions, - CommonOptions { - abortSignal?: AbortSignalLike; - leaseAccessConditions?: LeaseAccessConditions; +export interface FileSetHttpHeadersOptions extends FileAndDirectorySetPropertiesCommonOptions, CommonOptions { + abortSignal?: AbortSignalLike; + leaseAccessConditions?: LeaseAccessConditions; } // @public export type FileSetHTTPHeadersResponse = FileSetHTTPHeadersHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: FileSetHTTPHeadersHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: FileSetHTTPHeadersHeaders; + }; }; // @public export interface FileSetMetadataHeaders { - date?: Date; - // (undocumented) - errorCode?: string; - etag?: string; - isServerEncrypted?: boolean; - requestId?: string; - version?: string; + date?: Date; + // (undocumented) + errorCode?: string; + etag?: string; + isServerEncrypted?: boolean; + requestId?: string; + version?: string; } // @public export interface FileSetMetadataOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - leaseAccessConditions?: LeaseAccessConditions; + abortSignal?: AbortSignalLike; + leaseAccessConditions?: LeaseAccessConditions; } // @public export type FileSetMetadataResponse = FileSetMetadataHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: FileSetMetadataHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: FileSetMetadataHeaders; + }; }; // @public export interface FileStartCopyHeaders { - copyId?: string; - copyStatus?: CopyStatusType; - date?: Date; - // (undocumented) - errorCode?: string; - etag?: string; - lastModified?: Date; - requestId?: string; - version?: string; + copyId?: string; + copyStatus?: CopyStatusType; + date?: Date; + // (undocumented) + errorCode?: string; + etag?: string; + lastModified?: Date; + requestId?: string; + version?: string; } // @public export interface FileStartCopyOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - copyFileSmbInfo?: CopyFileSmbInfo; - filePermission?: string; - filePermissionKey?: string; - leaseAccessConditions?: LeaseAccessConditions; - metadata?: Metadata; + abortSignal?: AbortSignalLike; + copyFileSmbInfo?: CopyFileSmbInfo; + filePermission?: string; + filePermissionKey?: string; + leaseAccessConditions?: LeaseAccessConditions; + metadata?: Metadata; } // @public export type FileStartCopyResponse = FileStartCopyHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: FileStartCopyHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: FileStartCopyHeaders; + }; }; // @public export class FileSystemAttributes { - archive: boolean; - directory: boolean; - hidden: boolean; - none: boolean; - noScrubData: boolean; - notContentIndexed: boolean; - offline: boolean; - static parse(fileAttributes: string): FileSystemAttributes; - readonly: boolean; - system: boolean; - temporary: boolean; - toString(): string; + archive: boolean; + directory: boolean; + hidden: boolean; + none: boolean; + noScrubData: boolean; + notContentIndexed: boolean; + offline: boolean; + static parse(fileAttributes: string): FileSystemAttributes; + readonly: boolean; + system: boolean; + temporary: boolean; + toString(): string; } // @public -export type FileType = "File"; +export type FileType = 'File'; // @public export interface FileUploadRangeFromURLHeaders { - date?: Date; - // (undocumented) - errorCode?: string; - etag?: string; - isServerEncrypted?: boolean; - lastModified?: Date; - requestId?: string; - version?: string; - xMsContentCrc64?: Uint8Array; + date?: Date; + // (undocumented) + errorCode?: string; + etag?: string; + isServerEncrypted?: boolean; + lastModified?: Date; + requestId?: string; + version?: string; + xMsContentCrc64?: Uint8Array; } // @public export interface FileUploadRangeFromURLOptionalParams extends coreHttp.RequestOptionsBase { - leaseAccessConditions?: LeaseAccessConditions; - sourceContentCrc64?: Uint8Array; - sourceModifiedAccessConditions?: SourceModifiedAccessConditions; - sourceRange?: string; - timeoutInSeconds?: number; + leaseAccessConditions?: LeaseAccessConditions; + sourceContentCrc64?: Uint8Array; + sourceModifiedAccessConditions?: SourceModifiedAccessConditions; + sourceRange?: string; + timeoutInSeconds?: number; } // @public export interface FileUploadRangeFromURLOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - leaseAccessConditions?: LeaseAccessConditions; - sourceConditions?: SourceModifiedAccessConditions; - sourceContentCrc64?: Uint8Array; - timeoutInSeconds?: number; + abortSignal?: AbortSignalLike; + leaseAccessConditions?: LeaseAccessConditions; + sourceConditions?: SourceModifiedAccessConditions; + sourceContentCrc64?: Uint8Array; + timeoutInSeconds?: number; } // @public export type FileUploadRangeFromURLResponse = FileUploadRangeFromURLHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: FileUploadRangeFromURLHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: FileUploadRangeFromURLHeaders; + }; }; // @public export interface FileUploadRangeHeaders { - contentMD5?: Uint8Array; - date?: Date; - // (undocumented) - errorCode?: string; - etag?: string; - isServerEncrypted?: boolean; - lastModified?: Date; - requestId?: string; - version?: string; + contentMD5?: Uint8Array; + date?: Date; + // (undocumented) + errorCode?: string; + etag?: string; + isServerEncrypted?: boolean; + lastModified?: Date; + requestId?: string; + version?: string; } // @public export interface FileUploadRangeOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - contentMD5?: Uint8Array; - leaseAccessConditions?: LeaseAccessConditions; - onProgress?: (progress: TransferProgressEvent) => void; + abortSignal?: AbortSignalLike; + contentMD5?: Uint8Array; + leaseAccessConditions?: LeaseAccessConditions; + onProgress?: (progress: TransferProgressEvent) => void; } // @public export type FileUploadRangeResponse = FileUploadRangeHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: FileUploadRangeHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: FileUploadRangeHeaders; + }; }; // @public export interface FileUploadStreamOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - fileHttpHeaders?: FileHttpHeaders; - leaseAccessConditions?: LeaseAccessConditions; - metadata?: Metadata; - onProgress?: (progress: TransferProgressEvent) => void; + abortSignal?: AbortSignalLike; + fileHttpHeaders?: FileHttpHeaders; + leaseAccessConditions?: LeaseAccessConditions; + metadata?: Metadata; + onProgress?: (progress: TransferProgressEvent) => void; } // @public -export function generateAccountSASQueryParameters( - accountSASSignatureValues: AccountSASSignatureValues, - sharedKeyCredential: StorageSharedKeyCredential -): SASQueryParameters; +export function generateAccountSASQueryParameters(accountSASSignatureValues: AccountSASSignatureValues, sharedKeyCredential: StorageSharedKeyCredential): SASQueryParameters; // @public -export function generateFileSASQueryParameters( - fileSASSignatureValues: FileSASSignatureValues, - sharedKeyCredential: StorageSharedKeyCredential -): SASQueryParameters; +export function generateFileSASQueryParameters(fileSASSignatureValues: FileSASSignatureValues, sharedKeyCredential: StorageSharedKeyCredential): SASQueryParameters; // @public export interface HandleItem { - clientIp: string; - fileId: string; - handleId: string; - lastReconnectTime?: Date; - openTime: Date; - parentId?: string; - path: string; - sessionId: string; + clientIp: string; + fileId: string; + handleId: string; + lastReconnectTime?: Date; + openTime: Date; + parentId?: string; + path: string; + sessionId: string; } -export { HttpHeaders }; +export { HttpHeaders } -export { HttpOperationResponse }; +export { HttpOperationResponse } -export { HttpRequestBody }; +export { HttpRequestBody } -export { IHttpClient }; +export { IHttpClient } // @public export interface LeaseAccessConditions { - leaseId?: string; + leaseId?: string; } // @public -export type LeaseDurationType = "infinite" | "fixed"; +export type LeaseDurationType = 'infinite' | 'fixed'; // @public export interface LeaseOperationOptions extends CommonOptions { - abortSignal?: AbortSignalLike; + abortSignal?: AbortSignalLike; } // @public export type LeaseOperationResponse = LeaseOperationResponseHeaders & { - _response: HttpResponse & { - parsedHeaders: LeaseOperationResponseHeaders; - }; + _response: HttpResponse & { + parsedHeaders: LeaseOperationResponseHeaders; + }; }; // @public export interface LeaseOperationResponseHeaders { - date?: Date; - // (undocumented) - errorCode?: string; - etag?: string; - lastModified?: Date; - leaseId?: string; - requestId?: string; - version?: string; + date?: Date; + // (undocumented) + errorCode?: string; + etag?: string; + lastModified?: Date; + leaseId?: string; + requestId?: string; + version?: string; } // @public -export type LeaseStateType = "available" | "leased" | "expired" | "breaking" | "broken"; +export type LeaseStateType = 'available' | 'leased' | 'expired' | 'breaking' | 'broken'; // @public -export type LeaseStatusType = "locked" | "unlocked"; +export type LeaseStatusType = 'locked' | 'unlocked'; // @public export interface ListFilesAndDirectoriesSegmentResponse { - // (undocumented) - continuationToken: string; - // (undocumented) - directoryPath: string; - // (undocumented) - marker?: string; - // (undocumented) - maxResults?: number; - // (undocumented) - prefix: string; - // (undocumented) - segment: FilesAndDirectoriesListSegment; - // (undocumented) - serviceEndpoint: string; - // (undocumented) - shareName: string; - // (undocumented) - shareSnapshot?: string; + // (undocumented) + continuationToken: string; + // (undocumented) + directoryPath: string; + // (undocumented) + marker?: string; + // (undocumented) + maxResults?: number; + // (undocumented) + prefix: string; + // (undocumented) + segment: FilesAndDirectoriesListSegment; + // (undocumented) + serviceEndpoint: string; + // (undocumented) + shareName: string; + // (undocumented) + shareSnapshot?: string; } // @public export interface ListHandlesResponse { - // (undocumented) - continuationToken: string; - // (undocumented) - handleList?: HandleItem[]; + // (undocumented) + continuationToken: string; + // (undocumented) + handleList?: HandleItem[]; } // @public -export type ListSharesIncludeType = "snapshots" | "metadata"; +export type ListSharesIncludeType = 'snapshots' | 'metadata'; // @public export interface ListSharesResponse { - // (undocumented) - continuationToken: string; - // (undocumented) - marker?: string; - // (undocumented) - maxResults?: number; - // (undocumented) - prefix?: string; - // (undocumented) - serviceEndpoint: string; - // (undocumented) - shareItems?: ShareItem[]; + // (undocumented) + continuationToken: string; + // (undocumented) + marker?: string; + // (undocumented) + maxResults?: number; + // (undocumented) + prefix?: string; + // (undocumented) + serviceEndpoint: string; + // (undocumented) + shareItems?: ShareItem[]; } // @public @@ -1129,883 +1110,711 @@ export const logger: import("@azure/logger").AzureLogger; // @public (undocumented) export interface Metadata { - // (undocumented) - [propertyName: string]: string; + // (undocumented) + [propertyName: string]: string; } // @public export interface Metrics { - enabled: boolean; - includeAPIs?: boolean; - // (undocumented) - retentionPolicy?: RetentionPolicy; - version: string; + enabled: boolean; + includeAPIs?: boolean; + // (undocumented) + retentionPolicy?: RetentionPolicy; + version: string; } // @public -export function newPipeline( - credential: Credential, - pipelineOptions?: StoragePipelineOptions -): Pipeline; +export function newPipeline(credential: Credential, pipelineOptions?: StoragePipelineOptions): Pipeline; // @public export class Pipeline { - constructor(factories: RequestPolicyFactory[], options?: PipelineOptions); - readonly factories: RequestPolicyFactory[]; - readonly options: PipelineOptions; - toServiceClientOptions(): ServiceClientOptions; + constructor(factories: RequestPolicyFactory[], options?: PipelineOptions); + readonly factories: RequestPolicyFactory[]; + readonly options: PipelineOptions; + toServiceClientOptions(): ServiceClientOptions; } // @public export interface PipelineOptions { - httpClient?: IHttpClient; + httpClient?: IHttpClient; } // @public export interface Range { - count?: number; - offset: number; + count?: number; + offset: number; } // @public export interface RangeModel { - end: number; - start: number; + end: number; + start: number; } -export { RequestPolicy }; +export { RequestPolicy } -export { RequestPolicyFactory }; +export { RequestPolicyFactory } -export { RequestPolicyOptions }; +export { RequestPolicyOptions } -export { RestError }; +export { RestError } // @public export interface RetentionPolicy { - days?: number; - enabled: boolean; + days?: number; + enabled: boolean; } // @public export interface SasIPRange { - end?: string; - start: string; + end?: string; + start: string; } // @public export enum SASProtocol { - Https = "https", - HttpsAndHttp = "https,http" + Https = "https", + HttpsAndHttp = "https,http" } // @public export class SASQueryParameters { - constructor( - version: string, - signature: string, - permissions?: string, - services?: string, - resourceTypes?: string, - protocol?: SASProtocol, - startsOn?: Date, - expiresOn?: Date, - ipRange?: SasIPRange, - identifier?: string, - resource?: string, - cacheControl?: string, - contentDisposition?: string, - contentEncoding?: string, - contentLanguage?: string, - contentType?: string - ); - readonly cacheControl?: string; - readonly contentDisposition?: string; - readonly contentEncoding?: string; - readonly contentLanguage?: string; - readonly contentType?: string; - readonly expiresOn?: Date; - readonly identifier?: string; - get ipRange(): SasIPRange | undefined; - readonly permissions?: string; - readonly protocol?: SASProtocol; - readonly resource?: string; - readonly resourceTypes?: string; - readonly services?: string; - readonly signature: string; - readonly startsOn?: Date; - toString(): string; - readonly version: string; + constructor(version: string, signature: string, permissions?: string, services?: string, resourceTypes?: string, protocol?: SASProtocol, startsOn?: Date, expiresOn?: Date, ipRange?: SasIPRange, identifier?: string, resource?: string, cacheControl?: string, contentDisposition?: string, contentEncoding?: string, contentLanguage?: string, contentType?: string); + readonly cacheControl?: string; + readonly contentDisposition?: string; + readonly contentEncoding?: string; + readonly contentLanguage?: string; + readonly contentType?: string; + readonly expiresOn?: Date; + readonly identifier?: string; + get ipRange(): SasIPRange | undefined; + readonly permissions?: string; + readonly protocol?: SASProtocol; + readonly resource?: string; + readonly resourceTypes?: string; + readonly services?: string; + readonly signature: string; + readonly startsOn?: Date; + toString(): string; + readonly version: string; } // @public export interface ServiceGetPropertiesHeaders { - // (undocumented) - errorCode?: string; - requestId?: string; - version?: string; + // (undocumented) + errorCode?: string; + requestId?: string; + version?: string; } // @public export interface ServiceGetPropertiesOptions extends CommonOptions { - abortSignal?: AbortSignalLike; + abortSignal?: AbortSignalLike; } // @public -export type ServiceGetPropertiesResponse = FileServiceProperties & - ServiceGetPropertiesHeaders & { +export type ServiceGetPropertiesResponse = FileServiceProperties & ServiceGetPropertiesHeaders & { _response: coreHttp.HttpResponse & { - parsedHeaders: ServiceGetPropertiesHeaders; - bodyAsText: string; - parsedBody: FileServiceProperties; + parsedHeaders: ServiceGetPropertiesHeaders; + bodyAsText: string; + parsedBody: FileServiceProperties; }; - }; +}; // @public export interface ServiceListSharesOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - includeMetadata?: boolean; - includeSnapshots?: boolean; - prefix?: string; + abortSignal?: AbortSignalLike; + includeMetadata?: boolean; + includeSnapshots?: boolean; + prefix?: string; } // @public export interface ServiceListSharesSegmentHeaders { - // (undocumented) - errorCode?: string; - requestId?: string; - version?: string; + // (undocumented) + errorCode?: string; + requestId?: string; + version?: string; } // @public -export type ServiceListSharesSegmentResponse = ListSharesResponse & - ServiceListSharesSegmentHeaders & { +export type ServiceListSharesSegmentResponse = ListSharesResponse & ServiceListSharesSegmentHeaders & { _response: coreHttp.HttpResponse & { - parsedHeaders: ServiceListSharesSegmentHeaders; - bodyAsText: string; - parsedBody: ListSharesResponse; + parsedHeaders: ServiceListSharesSegmentHeaders; + bodyAsText: string; + parsedBody: ListSharesResponse; }; - }; +}; // @public export interface ServiceSetPropertiesHeaders { - // (undocumented) - errorCode?: string; - requestId?: string; - version?: string; + // (undocumented) + errorCode?: string; + requestId?: string; + version?: string; } // @public export interface ServiceSetPropertiesOptions extends CommonOptions { - abortSignal?: AbortSignalLike; + abortSignal?: AbortSignalLike; } // @public export type ServiceSetPropertiesResponse = ServiceSetPropertiesHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: ServiceSetPropertiesHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: ServiceSetPropertiesHeaders; + }; }; // @public (undocumented) -export interface SetPropertiesResponse extends FileSetHTTPHeadersResponse {} +export interface SetPropertiesResponse extends FileSetHTTPHeadersResponse { +} // Warning: (ae-forgotten-export) The symbol "StorageClient" needs to be exported by the entry point index.d.ts // // @public export class ShareClient extends StorageClient { - constructor(connectionString: string, name: string, options?: StoragePipelineOptions); - constructor(url: string, credential?: Credential, options?: StoragePipelineOptions); - constructor(url: string, pipeline: Pipeline); - create(options?: ShareCreateOptions): Promise; - createDirectory( - directoryName: string, - options?: DirectoryCreateOptions - ): Promise<{ - directoryClient: ShareDirectoryClient; - directoryCreateResponse: DirectoryCreateResponse; - }>; - createFile( - fileName: string, - size: number, - options?: FileCreateOptions - ): Promise<{ - fileClient: ShareFileClient; - fileCreateResponse: FileCreateResponse; - }>; - createPermission( - filePermission: string, - options?: ShareCreatePermissionOptions - ): Promise; - createSnapshot(options?: ShareCreateSnapshotOptions): Promise; - delete(options?: ShareDeleteMethodOptions): Promise; - deleteDirectory( - directoryName: string, - options?: DirectoryDeleteOptions - ): Promise; - deleteFile(fileName: string, options?: FileDeleteOptions): Promise; - getAccessPolicy(options?: ShareGetAccessPolicyOptions): Promise; - getDirectoryClient(directoryName: string): ShareDirectoryClient; - getPermission( - filePermissionKey: string, - options?: ShareGetPermissionOptions - ): Promise; - getProperties(options?: ShareGetPropertiesOptions): Promise; - getStatistics(options?: ShareGetStatisticsOptions): Promise; - get name(): string; - get rootDirectoryClient(): ShareDirectoryClient; - setAccessPolicy( - shareAcl?: SignedIdentifier[], - options?: ShareSetAccessPolicyOptions - ): Promise; - setMetadata( - metadata?: Metadata, - options?: ShareSetMetadataOptions - ): Promise; - setQuota(quotaInGB: number, options?: ShareSetQuotaOptions): Promise; - withSnapshot(snapshot: string): ShareClient; + constructor(connectionString: string, name: string, options?: StoragePipelineOptions); + constructor(url: string, credential?: Credential, options?: StoragePipelineOptions); + constructor(url: string, pipeline: Pipeline); + create(options?: ShareCreateOptions): Promise; + createDirectory(directoryName: string, options?: DirectoryCreateOptions): Promise<{ + directoryClient: ShareDirectoryClient; + directoryCreateResponse: DirectoryCreateResponse; + }>; + createFile(fileName: string, size: number, options?: FileCreateOptions): Promise<{ + fileClient: ShareFileClient; + fileCreateResponse: FileCreateResponse; + }>; + createPermission(filePermission: string, options?: ShareCreatePermissionOptions): Promise; + createSnapshot(options?: ShareCreateSnapshotOptions): Promise; + delete(options?: ShareDeleteMethodOptions): Promise; + deleteDirectory(directoryName: string, options?: DirectoryDeleteOptions): Promise; + deleteFile(fileName: string, options?: FileDeleteOptions): Promise; + getAccessPolicy(options?: ShareGetAccessPolicyOptions): Promise; + getDirectoryClient(directoryName: string): ShareDirectoryClient; + getPermission(filePermissionKey: string, options?: ShareGetPermissionOptions): Promise; + getProperties(options?: ShareGetPropertiesOptions): Promise; + getStatistics(options?: ShareGetStatisticsOptions): Promise; + get name(): string; + get rootDirectoryClient(): ShareDirectoryClient; + setAccessPolicy(shareAcl?: SignedIdentifier[], options?: ShareSetAccessPolicyOptions): Promise; + setMetadata(metadata?: Metadata, options?: ShareSetMetadataOptions): Promise; + setQuota(quotaInGB: number, options?: ShareSetQuotaOptions): Promise; + withSnapshot(snapshot: string): ShareClient; } // @public export interface ShareCreateHeaders { - date?: Date; - // (undocumented) - errorCode?: string; - etag?: string; - lastModified?: Date; - requestId?: string; - version?: string; + date?: Date; + // (undocumented) + errorCode?: string; + etag?: string; + lastModified?: Date; + requestId?: string; + version?: string; } // @public export interface ShareCreateOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - metadata?: { - [propertyName: string]: string; - }; - quota?: number; + abortSignal?: AbortSignalLike; + metadata?: { + [propertyName: string]: string; + }; + quota?: number; } // @public export interface ShareCreatePermissionHeaders { - date?: Date; - // (undocumented) - errorCode?: string; - filePermissionKey?: string; - requestId?: string; - version?: string; + date?: Date; + // (undocumented) + errorCode?: string; + filePermissionKey?: string; + requestId?: string; + version?: string; } // @public export interface ShareCreatePermissionOptions extends CommonOptions { - abortSignal?: AbortSignalLike; + abortSignal?: AbortSignalLike; } // @public export type ShareCreatePermissionResponse = ShareCreatePermissionHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: ShareCreatePermissionHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: ShareCreatePermissionHeaders; + }; }; // @public export type ShareCreateResponse = ShareCreateHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: ShareCreateHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: ShareCreateHeaders; + }; }; // @public export interface ShareCreateSnapshotHeaders { - date?: Date; - // (undocumented) - errorCode?: string; - etag?: string; - lastModified?: Date; - requestId?: string; - snapshot?: string; - version?: string; + date?: Date; + // (undocumented) + errorCode?: string; + etag?: string; + lastModified?: Date; + requestId?: string; + snapshot?: string; + version?: string; } // @public export interface ShareCreateSnapshotOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - metadata?: { - [propertyName: string]: string; - }; + abortSignal?: AbortSignalLike; + metadata?: { + [propertyName: string]: string; + }; } // @public export type ShareCreateSnapshotResponse = ShareCreateSnapshotHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: ShareCreateSnapshotHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: ShareCreateSnapshotHeaders; + }; }; // @public export interface ShareDeleteHeaders { - date?: Date; - // (undocumented) - errorCode?: string; - requestId?: string; - version?: string; + date?: Date; + // (undocumented) + errorCode?: string; + requestId?: string; + version?: string; } // @public export interface ShareDeleteMethodOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - deleteSnapshots?: DeleteSnapshotsOptionType; + abortSignal?: AbortSignalLike; + deleteSnapshots?: DeleteSnapshotsOptionType; } // @public export type ShareDeleteResponse = ShareDeleteHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: ShareDeleteHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: ShareDeleteHeaders; + }; }; // @public export class ShareDirectoryClient extends StorageClient { - constructor(url: string, credential?: Credential, options?: StoragePipelineOptions); - constructor(url: string, pipeline: Pipeline); - create(options?: DirectoryCreateOptions): Promise; - createFile( - fileName: string, - size: number, - options?: FileCreateOptions - ): Promise<{ - fileClient: ShareFileClient; - fileCreateResponse: FileCreateResponse; - }>; - createSubdirectory( - directoryName: string, - options?: DirectoryCreateOptions - ): Promise<{ - directoryClient: ShareDirectoryClient; - directoryCreateResponse: DirectoryCreateResponse; - }>; - delete(options?: DirectoryDeleteOptions): Promise; - deleteFile(fileName: string, options?: FileDeleteOptions): Promise; - deleteSubdirectory( - directoryName: string, - options?: DirectoryDeleteOptions - ): Promise; - forceCloseAllHandles( - options?: DirectoryForceCloseHandlesSegmentOptions - ): Promise; - forceCloseHandle( - handleId: string, - options?: DirectoryForceCloseHandlesOptions - ): Promise; - getDirectoryClient(subDirectoryName: string): ShareDirectoryClient; - getFileClient(fileName: string): ShareFileClient; - getProperties(options?: DirectoryGetPropertiesOptions): Promise; - listFilesAndDirectories( - options?: DirectoryListFilesAndDirectoriesOptions - ): PagedAsyncIterableIterator< - | ({ + constructor(url: string, credential?: Credential, options?: StoragePipelineOptions); + constructor(url: string, pipeline: Pipeline); + create(options?: DirectoryCreateOptions): Promise; + createFile(fileName: string, size: number, options?: FileCreateOptions): Promise<{ + fileClient: ShareFileClient; + fileCreateResponse: FileCreateResponse; + }>; + createSubdirectory(directoryName: string, options?: DirectoryCreateOptions): Promise<{ + directoryClient: ShareDirectoryClient; + directoryCreateResponse: DirectoryCreateResponse; + }>; + delete(options?: DirectoryDeleteOptions): Promise; + deleteFile(fileName: string, options?: FileDeleteOptions): Promise; + deleteSubdirectory(directoryName: string, options?: DirectoryDeleteOptions): Promise; + forceCloseAllHandles(options?: DirectoryForceCloseHandlesSegmentOptions): Promise; + forceCloseHandle(handleId: string, options?: DirectoryForceCloseHandlesOptions): Promise; + getDirectoryClient(subDirectoryName: string): ShareDirectoryClient; + getFileClient(fileName: string): ShareFileClient; + getProperties(options?: DirectoryGetPropertiesOptions): Promise; + listFilesAndDirectories(options?: DirectoryListFilesAndDirectoriesOptions): PagedAsyncIterableIterator<({ kind: "file"; - } & FileItem) - | ({ + } & FileItem) | ({ kind: "directory"; - } & DirectoryItem), - DirectoryListFilesAndDirectoriesSegmentResponse - >; - listHandles( - options?: DirectoryListHandlesOptions - ): PagedAsyncIterableIterator; - get name(): string; - get path(): string; - setMetadata( - metadata?: Metadata, - options?: DirectorySetMetadataOptions - ): Promise; - setProperties(properties?: DirectoryProperties): Promise; - get shareName(): string; -} + } & DirectoryItem), DirectoryListFilesAndDirectoriesSegmentResponse>; + listHandles(options?: DirectoryListHandlesOptions): PagedAsyncIterableIterator; + get name(): string; + get path(): string; + setMetadata(metadata?: Metadata, options?: DirectorySetMetadataOptions): Promise; + setProperties(properties?: DirectoryProperties): Promise; + get shareName(): string; + } // @public export class ShareFileClient extends StorageClient { - constructor(url: string, credential?: Credential, options?: StoragePipelineOptions); - constructor(url: string, pipeline: Pipeline); - abortCopyFromURL( - copyId: string, - options?: FileAbortCopyFromURLOptions - ): Promise; - clearRange( - offset: number, - contentLength: number, - options?: FileClearRangeOptions - ): Promise; - create(size: number, options?: FileCreateOptions): Promise; - delete(options?: FileDeleteOptions): Promise; - download( - offset?: number, - count?: number, - options?: FileDownloadOptions - ): Promise; - downloadToBuffer( - buffer: Buffer, - offset?: number, - count?: number, - options?: FileDownloadToBufferOptions - ): Promise; - downloadToBuffer( - offset?: number, - count?: number, - options?: FileDownloadToBufferOptions - ): Promise; - downloadToFile( - filePath: string, - offset?: number, - count?: number, - options?: FileDownloadOptions - ): Promise; - forceCloseAllHandles(options?: FileForceCloseHandlesOptions): Promise; - forceCloseHandle( - handleId: string, - options?: FileForceCloseHandlesOptions - ): Promise; - getProperties(options?: FileGetPropertiesOptions): Promise; - getRangeList(options?: FileGetRangeListOptions): Promise; - getShareLeaseClient(proposeLeaseId?: string): ShareLeaseClient; - listHandles( - options?: FileListHandlesOptions - ): PagedAsyncIterableIterator; - get name(): string; - get path(): string; - resize(length: number, options?: FileResizeOptions): Promise; - setHttpHeaders( - fileHttpHeaders?: FileHttpHeaders, - options?: FileSetHttpHeadersOptions - ): Promise; - setMetadata( - metadata?: Metadata, - options?: FileSetMetadataOptions - ): Promise; - setProperties(properties?: FileProperties): Promise; - get shareName(): string; - startCopyFromURL( - copySource: string, - options?: FileStartCopyOptions - ): Promise; - uploadData( - data: Buffer | Blob | ArrayBuffer | ArrayBufferView, - options?: FileParallelUploadOptions - ): Promise; - uploadFile(filePath: string, options?: FileParallelUploadOptions): Promise; - uploadRange( - body: HttpRequestBody, - offset: number, - contentLength: number, - options?: FileUploadRangeOptions - ): Promise; - uploadRangeFromURL( - sourceURL: string, - sourceOffset: number, - destOffset: number, - count: number, - options?: FileUploadRangeFromURLOptions - ): Promise; - uploadResetableStream( - streamFactory: (offset: number, count?: number) => NodeJS.ReadableStream, - size: number, - options?: FileParallelUploadOptions - ): Promise; - uploadSeekableBlob( - blobFactory: (offset: number, size: number) => Blob, - size: number, - options?: FileParallelUploadOptions - ): Promise; - uploadStream( - stream: Readable, - size: number, - bufferSize: number, - maxBuffers: number, - options?: FileUploadStreamOptions - ): Promise; + constructor(url: string, credential?: Credential, options?: StoragePipelineOptions); + constructor(url: string, pipeline: Pipeline); + abortCopyFromURL(copyId: string, options?: FileAbortCopyFromURLOptions): Promise; + clearRange(offset: number, contentLength: number, options?: FileClearRangeOptions): Promise; + create(size: number, options?: FileCreateOptions): Promise; + delete(options?: FileDeleteOptions): Promise; + download(offset?: number, count?: number, options?: FileDownloadOptions): Promise; + downloadToBuffer(buffer: Buffer, offset?: number, count?: number, options?: FileDownloadToBufferOptions): Promise; + downloadToBuffer(offset?: number, count?: number, options?: FileDownloadToBufferOptions): Promise; + downloadToFile(filePath: string, offset?: number, count?: number, options?: FileDownloadOptions): Promise; + forceCloseAllHandles(options?: FileForceCloseHandlesOptions): Promise; + forceCloseHandle(handleId: string, options?: FileForceCloseHandlesOptions): Promise; + getProperties(options?: FileGetPropertiesOptions): Promise; + getRangeList(options?: FileGetRangeListOptions): Promise; + getShareLeaseClient(proposeLeaseId?: string): ShareLeaseClient; + listHandles(options?: FileListHandlesOptions): PagedAsyncIterableIterator; + get name(): string; + get path(): string; + resize(length: number, options?: FileResizeOptions): Promise; + setHttpHeaders(fileHttpHeaders?: FileHttpHeaders, options?: FileSetHttpHeadersOptions): Promise; + setMetadata(metadata?: Metadata, options?: FileSetMetadataOptions): Promise; + setProperties(properties?: FileProperties): Promise; + get shareName(): string; + startCopyFromURL(copySource: string, options?: FileStartCopyOptions): Promise; + uploadData(data: Buffer | Blob | ArrayBuffer | ArrayBufferView, options?: FileParallelUploadOptions): Promise; + uploadFile(filePath: string, options?: FileParallelUploadOptions): Promise; + uploadRange(body: HttpRequestBody, offset: number, contentLength: number, options?: FileUploadRangeOptions): Promise; + uploadRangeFromURL(sourceURL: string, sourceOffset: number, destOffset: number, count: number, options?: FileUploadRangeFromURLOptions): Promise; + uploadResetableStream(streamFactory: (offset: number, count?: number) => NodeJS.ReadableStream, size: number, options?: FileParallelUploadOptions): Promise; + uploadSeekableBlob(blobFactory: (offset: number, size: number) => Blob, size: number, options?: FileParallelUploadOptions): Promise; + uploadStream(stream: Readable, size: number, bufferSize: number, maxBuffers: number, options?: FileUploadStreamOptions): Promise; } // @public export interface ShareGetAccessPolicyHeaders { - date?: Date; - // (undocumented) - errorCode?: string; - etag?: string; - lastModified?: Date; - requestId?: string; - version?: string; + date?: Date; + // (undocumented) + errorCode?: string; + etag?: string; + lastModified?: Date; + requestId?: string; + version?: string; } // @public export interface ShareGetAccessPolicyOptions extends CommonOptions { - abortSignal?: AbortSignalLike; + abortSignal?: AbortSignalLike; } // @public (undocumented) export type ShareGetAccessPolicyResponse = { - signedIdentifiers: SignedIdentifier[]; + signedIdentifiers: SignedIdentifier[]; } & ShareGetAccessPolicyHeaders & { _response: HttpResponse & { - parsedHeaders: ShareGetAccessPolicyHeaders; - bodyAsText: string; - parsedBody: SignedIdentifierModel[]; + parsedHeaders: ShareGetAccessPolicyHeaders; + bodyAsText: string; + parsedBody: SignedIdentifierModel[]; }; - }; +}; // @public export interface ShareGetPermissionHeaders { - date?: Date; - // (undocumented) - errorCode?: string; - requestId?: string; - version?: string; + date?: Date; + // (undocumented) + errorCode?: string; + requestId?: string; + version?: string; } // @public export interface ShareGetPermissionOptions extends CommonOptions { - abortSignal?: AbortSignalLike; + abortSignal?: AbortSignalLike; } // @public -export type ShareGetPermissionResponse = SharePermission & - ShareGetPermissionHeaders & { +export type ShareGetPermissionResponse = SharePermission & ShareGetPermissionHeaders & { _response: coreHttp.HttpResponse & { - parsedHeaders: ShareGetPermissionHeaders; - bodyAsText: string; - parsedBody: SharePermission; + parsedHeaders: ShareGetPermissionHeaders; + bodyAsText: string; + parsedBody: SharePermission; }; - }; +}; // @public export interface ShareGetPropertiesHeaders { - date?: Date; - // (undocumented) - errorCode?: string; - etag?: string; - lastModified?: Date; - // (undocumented) - metadata?: { - [propertyName: string]: string; - }; - nextAllowedQuotaDowngradeTime?: Date; - provisionedEgressMBps?: number; - provisionedIngressMBps?: number; - provisionedIops?: number; - quota?: number; - requestId?: string; - version?: string; + date?: Date; + // (undocumented) + errorCode?: string; + etag?: string; + lastModified?: Date; + // (undocumented) + metadata?: { + [propertyName: string]: string; + }; + nextAllowedQuotaDowngradeTime?: Date; + provisionedEgressMBps?: number; + provisionedIngressMBps?: number; + provisionedIops?: number; + quota?: number; + requestId?: string; + version?: string; } // @public export interface ShareGetPropertiesOptions extends CommonOptions { - abortSignal?: AbortSignalLike; + abortSignal?: AbortSignalLike; } // @public export type ShareGetPropertiesResponse = ShareGetPropertiesHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: ShareGetPropertiesHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: ShareGetPropertiesHeaders; + }; }; // @public export interface ShareGetStatisticsHeaders { - date?: Date; - // (undocumented) - errorCode?: string; - etag?: string; - lastModified?: Date; - requestId?: string; - version?: string; + date?: Date; + // (undocumented) + errorCode?: string; + etag?: string; + lastModified?: Date; + requestId?: string; + version?: string; } // @public export interface ShareGetStatisticsOptions extends CommonOptions { - abortSignal?: AbortSignalLike; + abortSignal?: AbortSignalLike; } // @public export type ShareGetStatisticsResponse = ShareGetStatisticsResponseModel & { - shareUsage: number; + shareUsage: number; }; // @public -export type ShareGetStatisticsResponseModel = ShareStats & - ShareGetStatisticsHeaders & { +export type ShareGetStatisticsResponseModel = ShareStats & ShareGetStatisticsHeaders & { _response: coreHttp.HttpResponse & { - parsedHeaders: ShareGetStatisticsHeaders; - bodyAsText: string; - parsedBody: ShareStats; + parsedHeaders: ShareGetStatisticsHeaders; + bodyAsText: string; + parsedBody: ShareStats; }; - }; +}; // @public export interface ShareItem { - // (undocumented) - metadata?: { - [propertyName: string]: string; - }; - // (undocumented) - name: string; - // (undocumented) - properties: ShareProperties; - // (undocumented) - snapshot?: string; + // (undocumented) + metadata?: { + [propertyName: string]: string; + }; + // (undocumented) + name: string; + // (undocumented) + properties: ShareProperties; + // (undocumented) + snapshot?: string; } // @public export class ShareLeaseClient { - constructor(client: ShareFileClient, leaseId?: string); - acquireLease(duration?: number, options?: LeaseOperationOptions): Promise; - breakLease(options?: LeaseOperationOptions): Promise; - changeLease( - proposedLeaseId: string, - options?: LeaseOperationOptions - ): Promise; - get leaseId(): string; - releaseLease(options?: LeaseOperationOptions): Promise; - get url(): string; -} + constructor(client: ShareFileClient, leaseId?: string); + acquireLease(duration?: number, options?: LeaseOperationOptions): Promise; + breakLease(options?: LeaseOperationOptions): Promise; + changeLease(proposedLeaseId: string, options?: LeaseOperationOptions): Promise; + get leaseId(): string; + releaseLease(options?: LeaseOperationOptions): Promise; + get url(): string; + } // @public export interface SharePermission { - permission: string; + permission: string; } // @public export interface ShareProperties { - // (undocumented) - etag: string; - // (undocumented) - lastModified: Date; - // (undocumented) - nextAllowedQuotaDowngradeTime?: Date; - // (undocumented) - provisionedEgressMBps?: number; - // (undocumented) - provisionedIngressMBps?: number; - // (undocumented) - provisionedIops?: number; - // (undocumented) - quota: number; + // (undocumented) + etag: string; + // (undocumented) + lastModified: Date; + // (undocumented) + nextAllowedQuotaDowngradeTime?: Date; + // (undocumented) + provisionedEgressMBps?: number; + // (undocumented) + provisionedIngressMBps?: number; + // (undocumented) + provisionedIops?: number; + // (undocumented) + quota: number; } // @public export class ShareSASPermissions { - create: boolean; - delete: boolean; - list: boolean; - static parse(permissions: string): ShareSASPermissions; - read: boolean; - toString(): string; - write: boolean; + create: boolean; + delete: boolean; + list: boolean; + static parse(permissions: string): ShareSASPermissions; + read: boolean; + toString(): string; + write: boolean; } // @public export class ShareServiceClient extends StorageClient { - constructor(url: string, credential?: Credential, options?: StoragePipelineOptions); - constructor(url: string, pipeline: Pipeline); - createShare( - shareName: string, - options?: ShareCreateOptions - ): Promise<{ - shareCreateResponse: ShareCreateResponse; - shareClient: ShareClient; - }>; - deleteShare(shareName: string, options?: ShareDeleteMethodOptions): Promise; - static fromConnectionString( - connectionString: string, - options?: StoragePipelineOptions - ): ShareServiceClient; - getProperties(options?: ServiceGetPropertiesOptions): Promise; - getShareClient(shareName: string): ShareClient; - listShares( - options?: ServiceListSharesOptions - ): PagedAsyncIterableIterator; - setProperties( - properties: FileServiceProperties, - options?: ServiceSetPropertiesOptions - ): Promise; + constructor(url: string, credential?: Credential, options?: StoragePipelineOptions); + constructor(url: string, pipeline: Pipeline); + createShare(shareName: string, options?: ShareCreateOptions): Promise<{ + shareCreateResponse: ShareCreateResponse; + shareClient: ShareClient; + }>; + deleteShare(shareName: string, options?: ShareDeleteMethodOptions): Promise; + static fromConnectionString(connectionString: string, options?: StoragePipelineOptions): ShareServiceClient; + getProperties(options?: ServiceGetPropertiesOptions): Promise; + getShareClient(shareName: string): ShareClient; + listShares(options?: ServiceListSharesOptions): PagedAsyncIterableIterator; + setProperties(properties: FileServiceProperties, options?: ServiceSetPropertiesOptions): Promise; } // @public export interface ShareSetAccessPolicyHeaders { - date?: Date; - // (undocumented) - errorCode?: string; - etag?: string; - lastModified?: Date; - requestId?: string; - version?: string; + date?: Date; + // (undocumented) + errorCode?: string; + etag?: string; + lastModified?: Date; + requestId?: string; + version?: string; } // @public export interface ShareSetAccessPolicyOptions extends CommonOptions { - abortSignal?: AbortSignalLike; + abortSignal?: AbortSignalLike; } // @public export type ShareSetAccessPolicyResponse = ShareSetAccessPolicyHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: ShareSetAccessPolicyHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: ShareSetAccessPolicyHeaders; + }; }; // @public export interface ShareSetMetadataHeaders { - date?: Date; - // (undocumented) - errorCode?: string; - etag?: string; - lastModified?: Date; - requestId?: string; - version?: string; + date?: Date; + // (undocumented) + errorCode?: string; + etag?: string; + lastModified?: Date; + requestId?: string; + version?: string; } // @public export interface ShareSetMetadataOptions extends CommonOptions { - abortSignal?: AbortSignalLike; + abortSignal?: AbortSignalLike; } // @public export type ShareSetMetadataResponse = ShareSetMetadataHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: ShareSetMetadataHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: ShareSetMetadataHeaders; + }; }; // @public export interface ShareSetQuotaHeaders { - date?: Date; - // (undocumented) - errorCode?: string; - etag?: string; - lastModified?: Date; - requestId?: string; - version?: string; + date?: Date; + // (undocumented) + errorCode?: string; + etag?: string; + lastModified?: Date; + requestId?: string; + version?: string; } // @public export interface ShareSetQuotaOptions extends CommonOptions { - abortSignal?: AbortSignalLike; + abortSignal?: AbortSignalLike; } // @public export type ShareSetQuotaResponse = ShareSetQuotaHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: ShareSetQuotaHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: ShareSetQuotaHeaders; + }; }; // @public export interface ShareStats { - shareUsageBytes: number; + shareUsageBytes: number; } // @public export interface SignedIdentifier { - accessPolicy: { - startsOn: Date; - expiresOn: Date; - permissions: string; - }; - id: string; + accessPolicy: { + startsOn: Date; + expiresOn: Date; + permissions: string; + }; + id: string; } // @public export interface SignedIdentifierModel { - accessPolicy?: AccessPolicy; - id: string; + accessPolicy?: AccessPolicy; + id: string; } // @public export interface SourceModifiedAccessConditions { - sourceIfMatchCrc64?: Uint8Array; - sourceIfNoneMatchCrc64?: Uint8Array; + sourceIfMatchCrc64?: Uint8Array; + sourceIfNoneMatchCrc64?: Uint8Array; } // @public export class StorageBrowserPolicy extends BaseRequestPolicy { - constructor(nextPolicy: RequestPolicy, options: RequestPolicyOptions); - sendRequest(request: WebResource): Promise; + constructor(nextPolicy: RequestPolicy, options: RequestPolicyOptions); + sendRequest(request: WebResource): Promise; } // @public export class StorageBrowserPolicyFactory implements RequestPolicyFactory { - create(nextPolicy: RequestPolicy, options: RequestPolicyOptions): StorageBrowserPolicy; + create(nextPolicy: RequestPolicy, options: RequestPolicyOptions): StorageBrowserPolicy; } // @public export interface StoragePipelineOptions { - httpClient?: IHttpClient; - keepAliveOptions?: KeepAliveOptions; - proxyOptions?: ProxyOptions; - retryOptions?: StorageRetryOptions; - userAgentOptions?: UserAgentOptions; + httpClient?: IHttpClient; + keepAliveOptions?: KeepAliveOptions; + proxyOptions?: ProxyOptions; + retryOptions?: StorageRetryOptions; + userAgentOptions?: UserAgentOptions; } // @public export interface StorageRetryOptions { - readonly maxRetryDelayInMs?: number; - readonly maxTries?: number; - readonly retryDelayInMs?: number; - readonly retryPolicyType?: StorageRetryPolicyType; - readonly tryTimeoutInMs?: number; + readonly maxRetryDelayInMs?: number; + readonly maxTries?: number; + readonly retryDelayInMs?: number; + readonly retryPolicyType?: StorageRetryPolicyType; + readonly tryTimeoutInMs?: number; } // @public export class StorageRetryPolicy extends BaseRequestPolicy { - constructor( - nextPolicy: RequestPolicy, - options: RequestPolicyOptions, - retryOptions?: StorageRetryOptions - ); - protected attemptSendRequest( - request: WebResource, - secondaryHas404: boolean, - attempt: number - ): Promise; - sendRequest(request: WebResource): Promise; - protected shouldRetry( - isPrimaryRetry: boolean, - attempt: number, - response?: HttpOperationResponse, - err?: RestError - ): boolean; + constructor(nextPolicy: RequestPolicy, options: RequestPolicyOptions, retryOptions?: StorageRetryOptions); + protected attemptSendRequest(request: WebResource, secondaryHas404: boolean, attempt: number): Promise; + sendRequest(request: WebResource): Promise; + protected shouldRetry(isPrimaryRetry: boolean, attempt: number, response?: HttpOperationResponse, err?: RestError): boolean; } // @public export class StorageRetryPolicyFactory implements RequestPolicyFactory { - constructor(retryOptions?: StorageRetryOptions); - create(nextPolicy: RequestPolicy, options: RequestPolicyOptions): StorageRetryPolicy; -} + constructor(retryOptions?: StorageRetryOptions); + create(nextPolicy: RequestPolicy, options: RequestPolicyOptions): StorageRetryPolicy; + } // @public export enum StorageRetryPolicyType { - EXPONENTIAL = 0, - FIXED = 1 + EXPONENTIAL = 0, + FIXED = 1 } // @public export class StorageSharedKeyCredential extends Credential { - constructor(accountName: string, accountKey: string); - readonly accountName: string; - computeHMACSHA256(stringToSign: string): string; - create( - nextPolicy: RequestPolicy, - options: RequestPolicyOptions - ): StorageSharedKeyCredentialPolicy; + constructor(accountName: string, accountKey: string); + readonly accountName: string; + computeHMACSHA256(stringToSign: string): string; + create(nextPolicy: RequestPolicy, options: RequestPolicyOptions): StorageSharedKeyCredentialPolicy; } // @public export class StorageSharedKeyCredentialPolicy extends CredentialPolicy { - constructor( - nextPolicy: RequestPolicy, - options: RequestPolicyOptions, - factory: StorageSharedKeyCredential - ); - protected signRequest(request: WebResource): WebResource; + constructor(nextPolicy: RequestPolicy, options: RequestPolicyOptions, factory: StorageSharedKeyCredential); + protected signRequest(request: WebResource): WebResource; } // @public @@ -2014,7 +1823,9 @@ export type TimeNowType = "now"; // @public export type TimePreserveType = "preserve"; -export { WebResource }; +export { WebResource } + // (No @packageDocumentation comment for this package) + ``` From 76c875a580705cae1270abe504b326e1cd3635d5 Mon Sep 17 00:00:00 2001 From: Jeff Fisher Date: Thu, 16 Apr 2020 16:47:48 -0700 Subject: [PATCH 21/29] Fix form recognizer --- dataplane.code-workspace | 4 + .../event-hubs/review/event-hubs.api.md | 346 +- .../ai-form-recognizer/package.json | 2 +- .../src/formRecognizerClient.ts | 2 +- .../src/formTrainingClient.ts | 6 +- .../ai-form-recognizer/src/tracing.ts | 8 +- .../ai-form-recognizer/test/tracing.spec.ts | 10 +- .../storage-blob/review/storage-blob.api.md | 3232 ++++++++--------- .../review/storage-file-datalake.api.md | 2133 +++++------ .../storage-queue/review/storage-queue.api.md | 952 +++-- 10 files changed, 3058 insertions(+), 3637 deletions(-) diff --git a/dataplane.code-workspace b/dataplane.code-workspace index 38147e3321f3..944baeda6afa 100644 --- a/dataplane.code-workspace +++ b/dataplane.code-workspace @@ -51,6 +51,10 @@ { "path": "sdk\\eventhub\\event-processor-host" }, + { + "path": "sdk\\formrecognizer\\ai-form-recognizer", + "name": "form-recognizer" + }, { "path": "sdk\\eventhub\\testhub" }, diff --git a/sdk/eventhub/event-hubs/review/event-hubs.api.md b/sdk/eventhub/event-hubs/review/event-hubs.api.md index eee900000976..d61254936144 100644 --- a/sdk/eventhub/event-hubs/review/event-hubs.api.md +++ b/sdk/eventhub/event-hubs/review/event-hubs.api.md @@ -3,54 +3,46 @@ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). ```ts -import { AbortSignalLike } from "@azure/abort-controller"; -import { MessagingError } from "@azure/core-amqp"; -import { OperationTracingOptions } from "@azure/core-tracing"; -import { RetryOptions } from "@azure/core-amqp"; -import { Span } from "@opentelemetry/api"; -import { SpanContext } from "@opentelemetry/api"; -import { SpanOptions } from "@azure/core-tracing"; -import { TokenCredential } from "@azure/core-amqp"; -import { WebSocketImpl } from "rhea-promise"; -import { WebSocketOptions } from "@azure/core-amqp"; + +import { AbortSignalLike } from '@azure/abort-controller'; +import { MessagingError } from '@azure/core-amqp'; +import { OperationTracingOptions } from '@azure/core-tracing'; +import { RetryOptions } from '@azure/core-amqp'; +import { Span } from '@opentelemetry/api'; +import { SpanContext } from '@opentelemetry/api'; +import { TokenCredential } from '@azure/core-amqp'; +import { WebSocketImpl } from 'rhea-promise'; +import { WebSocketOptions } from '@azure/core-amqp'; // @public export interface Checkpoint { - consumerGroup: string; - eventHubName: string; - fullyQualifiedNamespace: string; - offset: number; - partitionId: string; - sequenceNumber: number; + consumerGroup: string; + eventHubName: string; + fullyQualifiedNamespace: string; + offset: number; + partitionId: string; + sequenceNumber: number; } // @public export interface CheckpointStore { - claimOwnership(partitionOwnership: PartitionOwnership[]): Promise; - listCheckpoints( - fullyQualifiedNamespace: string, - eventHubName: string, - consumerGroup: string - ): Promise; - listOwnership( - fullyQualifiedNamespace: string, - eventHubName: string, - consumerGroup: string - ): Promise; - updateCheckpoint(checkpoint: Checkpoint): Promise; + claimOwnership(partitionOwnership: PartitionOwnership[]): Promise; + listCheckpoints(fullyQualifiedNamespace: string, eventHubName: string, consumerGroup: string): Promise; + listOwnership(fullyQualifiedNamespace: string, eventHubName: string, consumerGroup: string): Promise; + updateCheckpoint(checkpoint: Checkpoint): Promise; } // @public export enum CloseReason { - OwnershipLost = "OwnershipLost", - Shutdown = "Shutdown" + OwnershipLost = "OwnershipLost", + Shutdown = "Shutdown" } // @public export interface CreateBatchOptions extends OperationOptions { - maxSizeInBytes?: number; - partitionId?: string; - partitionKey?: string; + maxSizeInBytes?: number; + partitionId?: string; + partitionKey?: string; } // @public @@ -58,143 +50,102 @@ export const earliestEventPosition: EventPosition; // @public export interface EventData { - body: any; - properties?: { - [key: string]: any; - }; + body: any; + properties?: { + [key: string]: any; + }; } // @public export interface EventDataBatch { - readonly count: number; - readonly maxSizeInBytes: number; - // @internal - readonly _message: Buffer | undefined; - // @internal - readonly _messageSpanContexts: SpanContext[]; - // @internal - readonly partitionId?: string; - // @internal - readonly partitionKey?: string; - readonly sizeInBytes: number; - tryAdd(eventData: EventData, options?: TryAddOptions): boolean; + readonly count: number; + readonly maxSizeInBytes: number; + // @internal + readonly _message: Buffer | undefined; + // @internal + readonly _messageSpanContexts: SpanContext[]; + // @internal + readonly partitionId?: string; + // @internal + readonly partitionKey?: string; + readonly sizeInBytes: number; + tryAdd(eventData: EventData, options?: TryAddOptions): boolean; } // @public export interface EventHubClientOptions { - retryOptions?: RetryOptions; - userAgent?: string; - webSocketOptions?: WebSocketOptions; + retryOptions?: RetryOptions; + userAgent?: string; + webSocketOptions?: WebSocketOptions; } // @public export class EventHubConsumerClient { - constructor(consumerGroup: string, connectionString: string, options?: EventHubClientOptions); - constructor( - consumerGroup: string, - connectionString: string, - checkpointStore: CheckpointStore, - options?: EventHubClientOptions - ); - constructor( - consumerGroup: string, - connectionString: string, - eventHubName: string, - options?: EventHubClientOptions - ); - constructor( - consumerGroup: string, - connectionString: string, - eventHubName: string, - checkpointStore: CheckpointStore, - options?: EventHubClientOptions - ); - constructor( - consumerGroup: string, - fullyQualifiedNamespace: string, - eventHubName: string, - credential: TokenCredential, - options?: EventHubClientOptions - ); - constructor( - consumerGroup: string, - fullyQualifiedNamespace: string, - eventHubName: string, - credential: TokenCredential, - checkpointStore: CheckpointStore, - options?: EventHubClientOptions - ); - close(): Promise; - static defaultConsumerGroupName: string; - get eventHubName(): string; - get fullyQualifiedNamespace(): string; - getEventHubProperties(options?: GetEventHubPropertiesOptions): Promise; - getPartitionIds(options?: GetPartitionIdsOptions): Promise; - getPartitionProperties( - partitionId: string, - options?: GetPartitionPropertiesOptions - ): Promise; - subscribe(handlers: SubscriptionEventHandlers, options?: SubscribeOptions): Subscription; - subscribe( - partitionId: string, - handlers: SubscriptionEventHandlers, - options?: SubscribeOptions - ): Subscription; -} + constructor(consumerGroup: string, connectionString: string, options?: EventHubClientOptions); + constructor(consumerGroup: string, connectionString: string, checkpointStore: CheckpointStore, options?: EventHubClientOptions); + constructor(consumerGroup: string, connectionString: string, eventHubName: string, options?: EventHubClientOptions); + constructor(consumerGroup: string, connectionString: string, eventHubName: string, checkpointStore: CheckpointStore, options?: EventHubClientOptions); + constructor(consumerGroup: string, fullyQualifiedNamespace: string, eventHubName: string, credential: TokenCredential, options?: EventHubClientOptions); + constructor(consumerGroup: string, fullyQualifiedNamespace: string, eventHubName: string, credential: TokenCredential, checkpointStore: CheckpointStore, options?: EventHubClientOptions); + close(): Promise; + static defaultConsumerGroupName: string; + get eventHubName(): string; + get fullyQualifiedNamespace(): string; + getEventHubProperties(options?: GetEventHubPropertiesOptions): Promise; + getPartitionIds(options?: GetPartitionIdsOptions): Promise; + getPartitionProperties(partitionId: string, options?: GetPartitionPropertiesOptions): Promise; + subscribe(handlers: SubscriptionEventHandlers, options?: SubscribeOptions): Subscription; + subscribe(partitionId: string, handlers: SubscriptionEventHandlers, options?: SubscribeOptions): Subscription; + } // @public export class EventHubProducerClient { - constructor(connectionString: string, options?: EventHubClientOptions); - constructor(connectionString: string, eventHubName: string, options?: EventHubClientOptions); - constructor( - fullyQualifiedNamespace: string, - eventHubName: string, - credential: TokenCredential, - options?: EventHubClientOptions - ); - close(): Promise; - createBatch(options?: CreateBatchOptions): Promise; - get eventHubName(): string; - get fullyQualifiedNamespace(): string; - getEventHubProperties(options?: GetEventHubPropertiesOptions): Promise; - getPartitionIds(options?: GetPartitionIdsOptions): Promise>; - getPartitionProperties( - partitionId: string, - options?: GetPartitionPropertiesOptions - ): Promise; - sendBatch(batch: EventDataBatch, options?: SendBatchOptions): Promise; + constructor(connectionString: string, options?: EventHubClientOptions); + constructor(connectionString: string, eventHubName: string, options?: EventHubClientOptions); + constructor(fullyQualifiedNamespace: string, eventHubName: string, credential: TokenCredential, options?: EventHubClientOptions); + close(): Promise; + createBatch(options?: CreateBatchOptions): Promise; + get eventHubName(): string; + get fullyQualifiedNamespace(): string; + getEventHubProperties(options?: GetEventHubPropertiesOptions): Promise; + getPartitionIds(options?: GetPartitionIdsOptions): Promise>; + getPartitionProperties(partitionId: string, options?: GetPartitionPropertiesOptions): Promise; + sendBatch(batch: EventDataBatch, options?: SendBatchOptions): Promise; } // @public export interface EventHubProperties { - createdOn: Date; - name: string; - partitionIds: string[]; + createdOn: Date; + name: string; + partitionIds: string[]; } // @public export interface EventPosition { - enqueuedOn?: Date | number; - isInclusive?: boolean; - offset?: number | "@latest"; - sequenceNumber?: number; + enqueuedOn?: Date | number; + isInclusive?: boolean; + offset?: number | "@latest"; + sequenceNumber?: number; } // @public -export interface GetEventHubPropertiesOptions extends OperationOptions {} +export interface GetEventHubPropertiesOptions extends OperationOptions { +} // @public -export interface GetPartitionIdsOptions extends OperationOptions {} +export interface GetPartitionIdsOptions extends OperationOptions { +} // @public -export interface GetPartitionPropertiesOptions extends OperationOptions {} +export interface GetPartitionPropertiesOptions extends OperationOptions { +} // @public export interface LastEnqueuedEventProperties { - enqueuedOn?: Date; - offset?: string; - retrievedOn?: Date; - sequenceNumber?: number; + enqueuedOn?: Date; + offset?: string; + retrievedOn?: Date; + sequenceNumber?: number; } // @public @@ -203,122 +154,117 @@ export const latestEventPosition: EventPosition; // @public export const logger: import("@azure/logger").AzureLogger; -export { MessagingError }; +export { MessagingError } // @public export interface OperationOptions { - abortSignal?: AbortSignalLike; - tracingOptions?: OperationTracingOptions; + abortSignal?: AbortSignalLike; + tracingOptions?: OperationTracingOptions; } // @public export interface PartitionContext { - readonly consumerGroup: string; - readonly eventHubName: string; - readonly fullyQualifiedNamespace: string; - readonly lastEnqueuedEventProperties?: LastEnqueuedEventProperties; - readonly partitionId: string; - updateCheckpoint(eventData: ReceivedEventData): Promise; + readonly consumerGroup: string; + readonly eventHubName: string; + readonly fullyQualifiedNamespace: string; + readonly lastEnqueuedEventProperties?: LastEnqueuedEventProperties; + readonly partitionId: string; + updateCheckpoint(eventData: ReceivedEventData): Promise; } // @public export interface PartitionOwnership { - consumerGroup: string; - etag?: string; - eventHubName: string; - fullyQualifiedNamespace: string; - lastModifiedTimeInMs?: number; - ownerId: string; - partitionId: string; + consumerGroup: string; + etag?: string; + eventHubName: string; + fullyQualifiedNamespace: string; + lastModifiedTimeInMs?: number; + ownerId: string; + partitionId: string; } // @public export interface PartitionProperties { - beginningSequenceNumber: number; - eventHubName: string; - isEmpty: boolean; - lastEnqueuedOffset: number; - lastEnqueuedOnUtc: Date; - lastEnqueuedSequenceNumber: number; - partitionId: string; + beginningSequenceNumber: number; + eventHubName: string; + isEmpty: boolean; + lastEnqueuedOffset: number; + lastEnqueuedOnUtc: Date; + lastEnqueuedSequenceNumber: number; + partitionId: string; } // @public export type ProcessCloseHandler = (reason: CloseReason, context: PartitionContext) => Promise; // @public -export type ProcessErrorHandler = ( - error: Error | MessagingError, - context: PartitionContext -) => Promise; +export type ProcessErrorHandler = (error: Error | MessagingError, context: PartitionContext) => Promise; // @public -export type ProcessEventsHandler = ( - events: ReceivedEventData[], - context: PartitionContext -) => Promise; +export type ProcessEventsHandler = (events: ReceivedEventData[], context: PartitionContext) => Promise; // @public export type ProcessInitializeHandler = (context: PartitionContext) => Promise; // @public export interface ReceivedEventData { - body: any; - enqueuedTimeUtc: Date; - offset: number; - partitionKey: string | null; - properties?: { - [key: string]: any; - }; - sequenceNumber: number; - systemProperties?: { - [key: string]: any; - }; + body: any; + enqueuedTimeUtc: Date; + offset: number; + partitionKey: string | null; + properties?: { + [key: string]: any; + }; + sequenceNumber: number; + systemProperties?: { + [key: string]: any; + }; } -export { RetryOptions }; +export { RetryOptions } // @public -export interface SendBatchOptions extends OperationOptions {} +export interface SendBatchOptions extends OperationOptions { +} // @public export interface SubscribeOptions { - maxBatchSize?: number; - maxWaitTimeInSeconds?: number; - ownerLevel?: number; - startPosition?: - | EventPosition - | { + maxBatchSize?: number; + maxWaitTimeInSeconds?: number; + ownerLevel?: number; + startPosition?: EventPosition | { [partitionId: string]: EventPosition; - }; - tracingOptions?: OperationTracingOptions; - trackLastEnqueuedEventProperties?: boolean; + }; + tracingOptions?: OperationTracingOptions; + trackLastEnqueuedEventProperties?: boolean; } // @public export interface Subscription { - close(): Promise; - isRunning: boolean; + close(): Promise; + isRunning: boolean; } // @public export interface SubscriptionEventHandlers { - processClose?: ProcessCloseHandler; - processError: ProcessErrorHandler; - processEvents: ProcessEventsHandler; - processInitialize?: ProcessInitializeHandler; + processClose?: ProcessCloseHandler; + processError: ProcessErrorHandler; + processEvents: ProcessEventsHandler; + processInitialize?: ProcessInitializeHandler; } -export { TokenCredential }; +export { TokenCredential } // @public export interface TryAddOptions { - parentSpan?: Span | SpanContext; + parentSpan?: Span | SpanContext; } -export { WebSocketImpl }; +export { WebSocketImpl } + +export { WebSocketOptions } -export { WebSocketOptions }; // (No @packageDocumentation comment for this package) + ``` diff --git a/sdk/formrecognizer/ai-form-recognizer/package.json b/sdk/formrecognizer/ai-form-recognizer/package.json index 59f8bb1ed60d..60f308d68f6e 100644 --- a/sdk/formrecognizer/ai-form-recognizer/package.json +++ b/sdk/formrecognizer/ai-form-recognizer/package.json @@ -80,7 +80,7 @@ "@azure/core-http": "^1.0.0", "@azure/core-tracing": "1.0.0-preview.8", "@azure/logger": "^1.0.0", - "@opentelemetry/types": "^0.2.0", + "@opentelemetry/api": "^0.5.1", "tslib": "^1.10.0" }, "devDependencies": { diff --git a/sdk/formrecognizer/ai-form-recognizer/src/formRecognizerClient.ts b/sdk/formrecognizer/ai-form-recognizer/src/formRecognizerClient.ts index 6605c1dcad79..d01edeee817a 100644 --- a/sdk/formrecognizer/ai-form-recognizer/src/formRecognizerClient.ts +++ b/sdk/formrecognizer/ai-form-recognizer/src/formRecognizerClient.ts @@ -18,7 +18,7 @@ import { toRequestBody, getContentType } from "./common"; -import { CanonicalCode } from "@opentelemetry/types"; +import { CanonicalCode } from "@opentelemetry/api"; import { FormRecognizerClient as GeneratedClient } from "./generated/formRecognizerClient"; import { diff --git a/sdk/formrecognizer/ai-form-recognizer/src/formTrainingClient.ts b/sdk/formrecognizer/ai-form-recognizer/src/formTrainingClient.ts index 7ec685693388..df16c8868d9c 100644 --- a/sdk/formrecognizer/ai-form-recognizer/src/formTrainingClient.ts +++ b/sdk/formrecognizer/ai-form-recognizer/src/formTrainingClient.ts @@ -15,7 +15,7 @@ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; import { SDK_VERSION } from "./constants"; import { logger } from "./logger"; import { createSpan } from "./tracing"; -import { CanonicalCode } from "@opentelemetry/types"; +import { CanonicalCode } from "@opentelemetry/api"; import { FormRecognizerClient as GeneratedClient } from "./generated/formRecognizerClient"; import { FormRecognizerClientGetCustomModelsResponse as ListModelsResponseModel, @@ -150,7 +150,9 @@ export class FormTrainingClient { * * @param {GetAccountPropertiesOptions} options Options to GetSummary operation */ - public async getAccountProperties(options?: GetAccountPropertiesOptions): Promise { + public async getAccountProperties( + options?: GetAccountPropertiesOptions + ): Promise { const realOptions: ListModelsOptions = options || {}; const { span, updatedOptions: finalOptions } = createSpan( "FormTrainingClient-listCustomModels", diff --git a/sdk/formrecognizer/ai-form-recognizer/src/tracing.ts b/sdk/formrecognizer/ai-form-recognizer/src/tracing.ts index f52c04a1878f..bb78681b5fe7 100644 --- a/sdk/formrecognizer/ai-form-recognizer/src/tracing.ts +++ b/sdk/formrecognizer/ai-form-recognizer/src/tracing.ts @@ -1,12 +1,10 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -import { getTracer } from "@azure/core-tracing"; -import { Span, SpanOptions, SpanKind } from "@opentelemetry/types"; +import { getTracer, OperationTracingOptions } from "@azure/core-tracing"; +import { Span, SpanOptions, SpanKind } from "@opentelemetry/api"; import { OperationOptions } from "@azure/core-http"; -type OperationTracingOptions = OperationOptions["tracingOptions"]; - /** * Creates a span using the global tracer. * @ignore @@ -35,7 +33,7 @@ export function createSpan( if (span.isRecording()) { newSpanOptions = { ...tracingOptions.spanOptions, - parent: span, + parent: span.context(), attributes: { ...spanOptions.attributes, "az.namespace": "Microsoft.CognitiveServices" diff --git a/sdk/formrecognizer/ai-form-recognizer/test/tracing.spec.ts b/sdk/formrecognizer/ai-form-recognizer/test/tracing.spec.ts index 84994dca0a2e..af59e880d0fa 100644 --- a/sdk/formrecognizer/ai-form-recognizer/test/tracing.spec.ts +++ b/sdk/formrecognizer/ai-form-recognizer/test/tracing.spec.ts @@ -5,8 +5,8 @@ import { assert } from "chai"; import * as sinon from "sinon"; import { createSpan } from "../src/tracing"; import { setTracer, TestTracer, TestSpan } from "@azure/core-tracing"; -import { SpanKind } from "@opentelemetry/types"; -import { OperationOptions } from "@azure/core-auth"; +import { SpanKind, TraceFlags } from "@opentelemetry/api"; +import { OperationOptions } from "@azure/core-http"; describe("tracing.createSpan", () => { it("returns a created span with the right metadata", () => { @@ -14,7 +14,7 @@ describe("tracing.createSpan", () => { const testSpan = new TestSpan( tracer, "testing", - { traceId: "", spanId: "" }, + { traceId: "", spanId: "", traceFlags: TraceFlags.NONE }, SpanKind.INTERNAL ); const setAttributeSpy = sinon.spy(testSpan, "setAttribute"); @@ -40,7 +40,7 @@ describe("tracing.createSpan", () => { const expected: OperationOptions = { tracingOptions: { spanOptions: { - parent: span, + parent: span.context(), attributes: { "az.namespace": "Microsoft.CognitiveServices" } @@ -65,7 +65,7 @@ describe("tracing.createSpan", () => { const expected: OperationOptions = { tracingOptions: { spanOptions: { - parent: span, + parent: span.context(), attributes: { "az.namespace": "Microsoft.CognitiveServices", foo: "bar" diff --git a/sdk/storage/storage-blob/review/storage-blob.api.md b/sdk/storage/storage-blob/review/storage-blob.api.md index 643a08b99ec7..10c05ece2200 100644 --- a/sdk/storage/storage-blob/review/storage-blob.api.md +++ b/sdk/storage/storage-blob/review/storage-blob.api.md @@ -3,368 +3,300 @@ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). ```ts -import { AbortSignalLike } from "@azure/abort-controller"; -import { BaseRequestPolicy } from "@azure/core-http"; -import * as coreHttp from "@azure/core-http"; -import { deserializationPolicy } from "@azure/core-http"; -import { HttpHeaders } from "@azure/core-http"; -import { HttpOperationResponse } from "@azure/core-http"; -import { HttpRequestBody } from "@azure/core-http"; -import { HttpResponse } from "@azure/core-http"; -import { HttpClient as IHttpClient } from "@azure/core-http"; -import { KeepAliveOptions } from "@azure/core-http"; -import { OperationTracingOptions } from "@azure/core-tracing"; -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike } from "@azure/core-lro"; -import { PollOperationState } from "@azure/core-lro"; -import { ProxyOptions } from "@azure/core-http"; -import { Readable } from "stream"; -import { RequestPolicy } from "@azure/core-http"; -import { RequestPolicyFactory } from "@azure/core-http"; -import { RequestPolicyOptions } from "@azure/core-http"; -import { RestError } from "@azure/core-http"; -import { ServiceClientOptions } from "@azure/core-http"; -import { TokenCredential } from "@azure/core-http"; -import { TransferProgressEvent } from "@azure/core-http"; -import { UserAgentOptions } from "@azure/core-http"; -import { WebResource } from "@azure/core-http"; + +import { AbortSignalLike } from '@azure/abort-controller'; +import { BaseRequestPolicy } from '@azure/core-http'; +import * as coreHttp from '@azure/core-http'; +import { deserializationPolicy } from '@azure/core-http'; +import { HttpHeaders } from '@azure/core-http'; +import { HttpOperationResponse } from '@azure/core-http'; +import { HttpRequestBody } from '@azure/core-http'; +import { HttpResponse } from '@azure/core-http'; +import { HttpClient as IHttpClient } from '@azure/core-http'; +import { KeepAliveOptions } from '@azure/core-http'; +import { OperationTracingOptions } from '@azure/core-tracing'; +import { PagedAsyncIterableIterator } from '@azure/core-paging'; +import { PollerLike } from '@azure/core-lro'; +import { PollOperationState } from '@azure/core-lro'; +import { ProxyOptions } from '@azure/core-http'; +import { Readable } from 'stream'; +import { RequestPolicy } from '@azure/core-http'; +import { RequestPolicyFactory } from '@azure/core-http'; +import { RequestPolicyOptions } from '@azure/core-http'; +import { RestError } from '@azure/core-http'; +import { ServiceClientOptions } from '@azure/core-http'; +import { TokenCredential } from '@azure/core-http'; +import { TransferProgressEvent } from '@azure/core-http'; +import { UserAgentOptions } from '@azure/core-http'; +import { WebResource } from '@azure/core-http'; // @public export interface AccessPolicy { - expiresOn?: string; - permissions?: string; - startsOn?: string; + expiresOn?: string; + permissions?: string; + startsOn?: string; } // @public -export type AccessTier = - | "P4" - | "P6" - | "P10" - | "P15" - | "P20" - | "P30" - | "P40" - | "P50" - | "P60" - | "P70" - | "P80" - | "Hot" - | "Cool" - | "Archive"; +export type AccessTier = 'P4' | 'P6' | 'P10' | 'P15' | 'P20' | 'P30' | 'P40' | 'P50' | 'P60' | 'P70' | 'P80' | 'Hot' | 'Cool' | 'Archive'; // @public -export type AccountKind = "Storage" | "BlobStorage" | "StorageV2"; +export type AccountKind = 'Storage' | 'BlobStorage' | 'StorageV2'; // @public export class AccountSASPermissions { - add: boolean; - create: boolean; - delete: boolean; - list: boolean; - static parse(permissions: string): AccountSASPermissions; - process: boolean; - read: boolean; - toString(): string; - update: boolean; - write: boolean; + add: boolean; + create: boolean; + delete: boolean; + list: boolean; + static parse(permissions: string): AccountSASPermissions; + process: boolean; + read: boolean; + toString(): string; + update: boolean; + write: boolean; } // @public export class AccountSASResourceTypes { - container: boolean; - object: boolean; - static parse(resourceTypes: string): AccountSASResourceTypes; - service: boolean; - toString(): string; + container: boolean; + object: boolean; + static parse(resourceTypes: string): AccountSASResourceTypes; + service: boolean; + toString(): string; } // @public export class AccountSASServices { - blob: boolean; - file: boolean; - static parse(services: string): AccountSASServices; - queue: boolean; - table: boolean; - toString(): string; + blob: boolean; + file: boolean; + static parse(services: string): AccountSASServices; + queue: boolean; + table: boolean; + toString(): string; } // @public export interface AccountSASSignatureValues { - expiresOn: Date; - ipRange?: SasIPRange; - permissions: AccountSASPermissions; - protocol?: SASProtocol; - resourceTypes: string; - services: string; - startsOn?: Date; - version?: string; + expiresOn: Date; + ipRange?: SasIPRange; + permissions: AccountSASPermissions; + protocol?: SASProtocol; + resourceTypes: string; + services: string; + startsOn?: Date; + version?: string; } // @public export class AnonymousCredential extends Credential { - create(nextPolicy: RequestPolicy, options: RequestPolicyOptions): AnonymousCredentialPolicy; + create(nextPolicy: RequestPolicy, options: RequestPolicyOptions): AnonymousCredentialPolicy; } // @public export class AnonymousCredentialPolicy extends CredentialPolicy { - constructor(nextPolicy: RequestPolicy, options: RequestPolicyOptions); + constructor(nextPolicy: RequestPolicy, options: RequestPolicyOptions); } // @public export interface AppendBlobAppendBlockFromUrlHeaders { - blobAppendOffset?: string; - blobCommittedBlockCount?: number; - contentMD5?: Uint8Array; - date?: Date; - encryptionKeySha256?: string; - encryptionScope?: string; - // (undocumented) - errorCode?: string; - etag?: string; - isServerEncrypted?: boolean; - lastModified?: Date; - requestId?: string; - version?: string; - xMsContentCrc64?: Uint8Array; + blobAppendOffset?: string; + blobCommittedBlockCount?: number; + contentMD5?: Uint8Array; + date?: Date; + encryptionKeySha256?: string; + encryptionScope?: string; + // (undocumented) + errorCode?: string; + etag?: string; + isServerEncrypted?: boolean; + lastModified?: Date; + requestId?: string; + version?: string; + xMsContentCrc64?: Uint8Array; } // @public export interface AppendBlobAppendBlockFromURLOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - conditions?: AppendBlobRequestConditions; - customerProvidedKey?: CpkInfo; - encryptionScope?: string; - sourceConditions?: ModifiedAccessConditions; - sourceContentCrc64?: Uint8Array; - sourceContentMD5?: Uint8Array; + abortSignal?: AbortSignalLike; + conditions?: AppendBlobRequestConditions; + customerProvidedKey?: CpkInfo; + encryptionScope?: string; + sourceConditions?: ModifiedAccessConditions; + sourceContentCrc64?: Uint8Array; + sourceContentMD5?: Uint8Array; } // @public export type AppendBlobAppendBlockFromUrlResponse = AppendBlobAppendBlockFromUrlHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: AppendBlobAppendBlockFromUrlHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: AppendBlobAppendBlockFromUrlHeaders; + }; }; // @public export interface AppendBlobAppendBlockHeaders { - blobAppendOffset?: string; - blobCommittedBlockCount?: number; - clientRequestId?: string; - contentMD5?: Uint8Array; - date?: Date; - encryptionKeySha256?: string; - encryptionScope?: string; - // (undocumented) - errorCode?: string; - etag?: string; - isServerEncrypted?: boolean; - lastModified?: Date; - requestId?: string; - version?: string; - xMsContentCrc64?: Uint8Array; + blobAppendOffset?: string; + blobCommittedBlockCount?: number; + clientRequestId?: string; + contentMD5?: Uint8Array; + date?: Date; + encryptionKeySha256?: string; + encryptionScope?: string; + // (undocumented) + errorCode?: string; + etag?: string; + isServerEncrypted?: boolean; + lastModified?: Date; + requestId?: string; + version?: string; + xMsContentCrc64?: Uint8Array; } // @public export interface AppendBlobAppendBlockOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - conditions?: AppendBlobRequestConditions; - customerProvidedKey?: CpkInfo; - encryptionScope?: string; - onProgress?: (progress: TransferProgressEvent) => void; - transactionalContentCrc64?: Uint8Array; - transactionalContentMD5?: Uint8Array; + abortSignal?: AbortSignalLike; + conditions?: AppendBlobRequestConditions; + customerProvidedKey?: CpkInfo; + encryptionScope?: string; + onProgress?: (progress: TransferProgressEvent) => void; + transactionalContentCrc64?: Uint8Array; + transactionalContentMD5?: Uint8Array; } // @public export type AppendBlobAppendBlockResponse = AppendBlobAppendBlockHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: AppendBlobAppendBlockHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: AppendBlobAppendBlockHeaders; + }; }; // @public export class AppendBlobClient extends BlobClient { - constructor( - connectionString: string, - containerName: string, - blobName: string, - options?: StoragePipelineOptions - ); - constructor( - url: string, - credential: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, - options?: StoragePipelineOptions - ); - constructor(url: string, pipeline: Pipeline); - appendBlock( - body: HttpRequestBody, - contentLength: number, - options?: AppendBlobAppendBlockOptions - ): Promise; - appendBlockFromURL( - sourceURL: string, - sourceOffset: number, - count: number, - options?: AppendBlobAppendBlockFromURLOptions - ): Promise; - create(options?: AppendBlobCreateOptions): Promise; - withSnapshot(snapshot: string): AppendBlobClient; + constructor(connectionString: string, containerName: string, blobName: string, options?: StoragePipelineOptions); + constructor(url: string, credential: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, options?: StoragePipelineOptions); + constructor(url: string, pipeline: Pipeline); + appendBlock(body: HttpRequestBody, contentLength: number, options?: AppendBlobAppendBlockOptions): Promise; + appendBlockFromURL(sourceURL: string, sourceOffset: number, count: number, options?: AppendBlobAppendBlockFromURLOptions): Promise; + create(options?: AppendBlobCreateOptions): Promise; + withSnapshot(snapshot: string): AppendBlobClient; } // @public export interface AppendBlobCreateHeaders { - clientRequestId?: string; - contentMD5?: Uint8Array; - date?: Date; - encryptionKeySha256?: string; - encryptionScope?: string; - // (undocumented) - errorCode?: string; - etag?: string; - isServerEncrypted?: boolean; - lastModified?: Date; - requestId?: string; - version?: string; + clientRequestId?: string; + contentMD5?: Uint8Array; + date?: Date; + encryptionKeySha256?: string; + encryptionScope?: string; + // (undocumented) + errorCode?: string; + etag?: string; + isServerEncrypted?: boolean; + lastModified?: Date; + requestId?: string; + version?: string; } // @public export interface AppendBlobCreateOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - blobHTTPHeaders?: BlobHTTPHeaders; - conditions?: BlobRequestConditions; - customerProvidedKey?: CpkInfo; - encryptionScope?: string; - metadata?: Metadata; + abortSignal?: AbortSignalLike; + blobHTTPHeaders?: BlobHTTPHeaders; + conditions?: BlobRequestConditions; + customerProvidedKey?: CpkInfo; + encryptionScope?: string; + metadata?: Metadata; } // @public export type AppendBlobCreateResponse = AppendBlobCreateHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: AppendBlobCreateHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: AppendBlobCreateHeaders; + }; }; // @public -export interface AppendBlobRequestConditions - extends BlobRequestConditions, - AppendPositionAccessConditions {} +export interface AppendBlobRequestConditions extends BlobRequestConditions, AppendPositionAccessConditions { +} // @public export interface AppendPositionAccessConditions { - appendPosition?: number; - maxSize?: number; + appendPosition?: number; + maxSize?: number; } // @public -export type ArchiveStatus = "rehydrate-pending-to-hot" | "rehydrate-pending-to-cool"; +export type ArchiveStatus = 'rehydrate-pending-to-hot' | 'rehydrate-pending-to-cool'; -export { BaseRequestPolicy }; +export { BaseRequestPolicy } // @public export interface BatchSubRequest { - credential: StorageSharedKeyCredential | AnonymousCredential | TokenCredential; - url: string; + credential: StorageSharedKeyCredential | AnonymousCredential | TokenCredential; + url: string; } // @public export interface BatchSubResponse { - bodyAsText?: string; - errorCode?: string; - headers: HttpHeaders; - _request: BatchSubRequest; - status: number; - statusMessage: string; + bodyAsText?: string; + errorCode?: string; + headers: HttpHeaders; + _request: BatchSubRequest; + status: number; + statusMessage: string; } // @public export interface BlobAbortCopyFromURLHeaders { - clientRequestId?: string; - date?: Date; - // (undocumented) - errorCode?: string; - requestId?: string; - version?: string; + clientRequestId?: string; + date?: Date; + // (undocumented) + errorCode?: string; + requestId?: string; + version?: string; } // @public export interface BlobAbortCopyFromURLOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - conditions?: LeaseAccessConditions; + abortSignal?: AbortSignalLike; + conditions?: LeaseAccessConditions; } // @public export type BlobAbortCopyFromURLResponse = BlobAbortCopyFromURLHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: BlobAbortCopyFromURLHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: BlobAbortCopyFromURLHeaders; + }; }; // @public export interface BlobAcquireLeaseOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - conditions?: ModifiedAccessConditions; + abortSignal?: AbortSignalLike; + conditions?: ModifiedAccessConditions; } // @public export class BlobBatch { - constructor(); - deleteBlob( - url: string, - credential: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, - options?: BlobDeleteOptions - ): Promise; - deleteBlob(blobClient: BlobClient, options?: BlobDeleteOptions): Promise; - getHttpRequestBody(): string; - getMultiPartContentType(): string; - getSubRequests(): Map; - setBlobAccessTier( - url: string, - credential: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, - tier: AccessTier, - options?: BlobSetTierOptions - ): Promise; - setBlobAccessTier( - blobClient: BlobClient, - tier: AccessTier, - options?: BlobSetTierOptions - ): Promise; + constructor(); + deleteBlob(url: string, credential: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, options?: BlobDeleteOptions): Promise; + deleteBlob(blobClient: BlobClient, options?: BlobDeleteOptions): Promise; + getHttpRequestBody(): string; + getMultiPartContentType(): string; + getSubRequests(): Map; + setBlobAccessTier(url: string, credential: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, tier: AccessTier, options?: BlobSetTierOptions): Promise; + setBlobAccessTier(blobClient: BlobClient, tier: AccessTier, options?: BlobSetTierOptions): Promise; } // @public export class BlobBatchClient { - constructor( - url: string, - credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, - options?: StoragePipelineOptions - ); - constructor(url: string, pipeline: Pipeline); - createBatch(): BlobBatch; - deleteBlobs( - urls: string[], - credential: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, - options?: BlobDeleteOptions - ): Promise; - deleteBlobs( - blobClients: BlobClient[], - options?: BlobDeleteOptions - ): Promise; - setBlobsAccessTier( - urls: string[], - credential: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, - tier: AccessTier, - options?: BlobSetTierOptions - ): Promise; - setBlobsAccessTier( - blobClients: BlobClient[], - tier: AccessTier, - options?: BlobSetTierOptions - ): Promise; - submitBatch( - batchRequest: BlobBatch, - options?: BlobBatchSubmitBatchOptionalParams - ): Promise; + constructor(url: string, credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, options?: StoragePipelineOptions); + constructor(url: string, pipeline: Pipeline); + createBatch(): BlobBatch; + deleteBlobs(urls: string[], credential: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, options?: BlobDeleteOptions): Promise; + deleteBlobs(blobClients: BlobClient[], options?: BlobDeleteOptions): Promise; + setBlobsAccessTier(urls: string[], credential: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, tier: AccessTier, options?: BlobSetTierOptions): Promise; + setBlobsAccessTier(blobClients: BlobClient[], tier: AccessTier, options?: BlobSetTierOptions): Promise; + submitBatch(batchRequest: BlobBatch, options?: BlobBatchSubmitBatchOptionalParams): Promise; } // @public @@ -374,1580 +306,1414 @@ export type BlobBatchDeleteBlobsResponse = BlobBatchSubmitBatchResponse; export type BlobBatchSetBlobsAccessTierResponse = BlobBatchSubmitBatchResponse; // @public -export interface BlobBatchSubmitBatchOptionalParams - extends ServiceSubmitBatchOptionalParamsModel, - CommonOptions { - abortSignal?: AbortSignalLike; +export interface BlobBatchSubmitBatchOptionalParams extends ServiceSubmitBatchOptionalParamsModel, CommonOptions { + abortSignal?: AbortSignalLike; } // @public -export type BlobBatchSubmitBatchResponse = ParsedBatchResponse & - ServiceSubmitBatchHeaders & { +export type BlobBatchSubmitBatchResponse = ParsedBatchResponse & ServiceSubmitBatchHeaders & { _response: HttpResponse & { - parsedHeaders: ServiceSubmitBatchHeaders; + parsedHeaders: ServiceSubmitBatchHeaders; }; - }; +}; // @public export interface BlobBeginCopyFromURLOptions extends BlobStartCopyFromURLOptions { - intervalInMs?: number; - onProgress?: (state: BlobBeginCopyFromUrlPollState) => void; - resumeFrom?: string; + intervalInMs?: number; + onProgress?: (state: BlobBeginCopyFromUrlPollState) => void; + resumeFrom?: string; } // @public -export interface BlobBeginCopyFromUrlPollState - extends PollOperationState { - readonly blobClient: CopyPollerBlobClient; - copyId?: string; - copyProgress?: string; - copySource: string; - readonly startCopyFromURLOptions?: BlobStartCopyFromURLOptions; +export interface BlobBeginCopyFromUrlPollState extends PollOperationState { + readonly blobClient: CopyPollerBlobClient; + copyId?: string; + copyProgress?: string; + copySource: string; + readonly startCopyFromURLOptions?: BlobStartCopyFromURLOptions; } // @public -export interface BlobBeginCopyFromURLResponse extends BlobStartCopyFromURLResponse {} +export interface BlobBeginCopyFromURLResponse extends BlobStartCopyFromURLResponse { +} // @public export interface BlobBreakLeaseOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - conditions?: ModifiedAccessConditions; + abortSignal?: AbortSignalLike; + conditions?: ModifiedAccessConditions; } // @public export interface BlobChangeLeaseOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - conditions?: ModifiedAccessConditions; + abortSignal?: AbortSignalLike; + conditions?: ModifiedAccessConditions; } // Warning: (ae-forgotten-export) The symbol "StorageClient" needs to be exported by the entry point index.d.ts // // @public export class BlobClient extends StorageClient { - constructor( - connectionString: string, - containerName: string, - blobName: string, - options?: StoragePipelineOptions - ); - constructor( - url: string, - credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, - options?: StoragePipelineOptions - ); - constructor(url: string, pipeline: Pipeline); - abortCopyFromURL( - copyId: string, - options?: BlobAbortCopyFromURLOptions - ): Promise; - beginCopyFromURL( - copySource: string, - options?: BlobBeginCopyFromURLOptions - ): Promise< - PollerLike, BlobBeginCopyFromURLResponse> - >; - get containerName(): string; - createSnapshot(options?: BlobCreateSnapshotOptions): Promise; - delete(options?: BlobDeleteOptions): Promise; - download( - offset?: number, - count?: number, - options?: BlobDownloadOptions - ): Promise; - downloadToBuffer( - offset?: number, - count?: number, - options?: BlobDownloadToBufferOptions - ): Promise; - downloadToBuffer( - buffer: Buffer, - offset?: number, - count?: number, - options?: BlobDownloadToBufferOptions - ): Promise; - downloadToFile( - filePath: string, - offset?: number, - count?: number, - options?: BlobDownloadOptions - ): Promise; - exists(options?: BlobExistsOptions): Promise; - getAppendBlobClient(): AppendBlobClient; - getBlobLeaseClient(proposeLeaseId?: string): BlobLeaseClient; - getBlockBlobClient(): BlockBlobClient; - getPageBlobClient(): PageBlobClient; - getProperties(options?: BlobGetPropertiesOptions): Promise; - get name(): string; - setAccessTier( - tier: BlockBlobTier | PremiumPageBlobTier | string, - options?: BlobSetTierOptions - ): Promise; - setHTTPHeaders( - blobHTTPHeaders?: BlobHTTPHeaders, - options?: BlobSetHTTPHeadersOptions - ): Promise; - setMetadata( - metadata?: Metadata, - options?: BlobSetMetadataOptions - ): Promise; - syncCopyFromURL( - copySource: string, - options?: BlobSyncCopyFromURLOptions - ): Promise; - undelete(options?: BlobUndeleteOptions): Promise; - withSnapshot(snapshot: string): BlobClient; + constructor(connectionString: string, containerName: string, blobName: string, options?: StoragePipelineOptions); + constructor(url: string, credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, options?: StoragePipelineOptions); + constructor(url: string, pipeline: Pipeline); + abortCopyFromURL(copyId: string, options?: BlobAbortCopyFromURLOptions): Promise; + beginCopyFromURL(copySource: string, options?: BlobBeginCopyFromURLOptions): Promise, BlobBeginCopyFromURLResponse>>; + get containerName(): string; + createSnapshot(options?: BlobCreateSnapshotOptions): Promise; + delete(options?: BlobDeleteOptions): Promise; + download(offset?: number, count?: number, options?: BlobDownloadOptions): Promise; + downloadToBuffer(offset?: number, count?: number, options?: BlobDownloadToBufferOptions): Promise; + downloadToBuffer(buffer: Buffer, offset?: number, count?: number, options?: BlobDownloadToBufferOptions): Promise; + downloadToFile(filePath: string, offset?: number, count?: number, options?: BlobDownloadOptions): Promise; + exists(options?: BlobExistsOptions): Promise; + getAppendBlobClient(): AppendBlobClient; + getBlobLeaseClient(proposeLeaseId?: string): BlobLeaseClient; + getBlockBlobClient(): BlockBlobClient; + getPageBlobClient(): PageBlobClient; + getProperties(options?: BlobGetPropertiesOptions): Promise; + get name(): string; + setAccessTier(tier: BlockBlobTier | PremiumPageBlobTier | string, options?: BlobSetTierOptions): Promise; + setHTTPHeaders(blobHTTPHeaders?: BlobHTTPHeaders, options?: BlobSetHTTPHeadersOptions): Promise; + setMetadata(metadata?: Metadata, options?: BlobSetMetadataOptions): Promise; + syncCopyFromURL(copySource: string, options?: BlobSyncCopyFromURLOptions): Promise; + undelete(options?: BlobUndeleteOptions): Promise; + withSnapshot(snapshot: string): BlobClient; } // @public export interface BlobCopyFromURLHeaders { - clientRequestId?: string; - contentMD5?: Uint8Array; - copyId?: string; - copyStatus?: SyncCopyStatusType; - date?: Date; - // (undocumented) - errorCode?: string; - etag?: string; - lastModified?: Date; - requestId?: string; - version?: string; - xMsContentCrc64?: Uint8Array; + clientRequestId?: string; + contentMD5?: Uint8Array; + copyId?: string; + copyStatus?: SyncCopyStatusType; + date?: Date; + // (undocumented) + errorCode?: string; + etag?: string; + lastModified?: Date; + requestId?: string; + version?: string; + xMsContentCrc64?: Uint8Array; } // @public export type BlobCopyFromURLResponse = BlobCopyFromURLHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: BlobCopyFromURLHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: BlobCopyFromURLHeaders; + }; }; // @public export interface BlobCreateSnapshotHeaders { - clientRequestId?: string; - date?: Date; - // (undocumented) - errorCode?: string; - etag?: string; - isServerEncrypted?: boolean; - lastModified?: Date; - requestId?: string; - snapshot?: string; - version?: string; + clientRequestId?: string; + date?: Date; + // (undocumented) + errorCode?: string; + etag?: string; + isServerEncrypted?: boolean; + lastModified?: Date; + requestId?: string; + snapshot?: string; + version?: string; } // @public export interface BlobCreateSnapshotOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - conditions?: BlobRequestConditions; - customerProvidedKey?: CpkInfo; - encryptionScope?: string; - metadata?: Metadata; + abortSignal?: AbortSignalLike; + conditions?: BlobRequestConditions; + customerProvidedKey?: CpkInfo; + encryptionScope?: string; + metadata?: Metadata; } // @public export type BlobCreateSnapshotResponse = BlobCreateSnapshotHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: BlobCreateSnapshotHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: BlobCreateSnapshotHeaders; + }; }; // @public export interface BlobDeleteHeaders { - clientRequestId?: string; - date?: Date; - // (undocumented) - errorCode?: string; - requestId?: string; - version?: string; + clientRequestId?: string; + date?: Date; + // (undocumented) + errorCode?: string; + requestId?: string; + version?: string; } // @public export interface BlobDeleteOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - conditions?: BlobRequestConditions; - customerProvidedKey?: CpkInfo; - deleteSnapshots?: DeleteSnapshotsOptionType; + abortSignal?: AbortSignalLike; + conditions?: BlobRequestConditions; + customerProvidedKey?: CpkInfo; + deleteSnapshots?: DeleteSnapshotsOptionType; } // @public export type BlobDeleteResponse = BlobDeleteHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: BlobDeleteHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: BlobDeleteHeaders; + }; }; // @public export interface BlobDownloadHeaders { - acceptRanges?: string; - blobCommittedBlockCount?: number; - blobContentMD5?: Uint8Array; - blobSequenceNumber?: number; - blobType?: BlobType; - cacheControl?: string; - clientRequestId?: string; - contentCrc64?: Uint8Array; - contentDisposition?: string; - contentEncoding?: string; - contentLanguage?: string; - contentLength?: number; - contentMD5?: Uint8Array; - contentRange?: string; - contentType?: string; - copyCompletedOn?: Date; - copyId?: string; - copyProgress?: string; - copySource?: string; - copyStatus?: CopyStatusType; - copyStatusDescription?: string; - date?: Date; - encryptionKeySha256?: string; - encryptionScope?: string; - // (undocumented) - errorCode?: string; - etag?: string; - isServerEncrypted?: boolean; - lastModified?: Date; - leaseDuration?: LeaseDurationType; - leaseState?: LeaseStateType; - leaseStatus?: LeaseStatusType; - // (undocumented) - metadata?: { - [propertyName: string]: string; - }; - requestId?: string; - version?: string; + acceptRanges?: string; + blobCommittedBlockCount?: number; + blobContentMD5?: Uint8Array; + blobSequenceNumber?: number; + blobType?: BlobType; + cacheControl?: string; + clientRequestId?: string; + contentCrc64?: Uint8Array; + contentDisposition?: string; + contentEncoding?: string; + contentLanguage?: string; + contentLength?: number; + contentMD5?: Uint8Array; + contentRange?: string; + contentType?: string; + copyCompletedOn?: Date; + copyId?: string; + copyProgress?: string; + copySource?: string; + copyStatus?: CopyStatusType; + copyStatusDescription?: string; + date?: Date; + encryptionKeySha256?: string; + encryptionScope?: string; + // (undocumented) + errorCode?: string; + etag?: string; + isServerEncrypted?: boolean; + lastModified?: Date; + leaseDuration?: LeaseDurationType; + leaseState?: LeaseStateType; + leaseStatus?: LeaseStatusType; + // (undocumented) + metadata?: { + [propertyName: string]: string; + }; + requestId?: string; + version?: string; } // @public export interface BlobDownloadOptionalParams extends coreHttp.RequestOptionsBase { - cpkInfo?: CpkInfo; - leaseAccessConditions?: LeaseAccessConditions; - modifiedAccessConditions?: ModifiedAccessConditions; - range?: string; - rangeGetContentCRC64?: boolean; - rangeGetContentMD5?: boolean; - requestId?: string; - snapshot?: string; - timeoutInSeconds?: number; + cpkInfo?: CpkInfo; + leaseAccessConditions?: LeaseAccessConditions; + modifiedAccessConditions?: ModifiedAccessConditions; + range?: string; + rangeGetContentCRC64?: boolean; + rangeGetContentMD5?: boolean; + requestId?: string; + snapshot?: string; + timeoutInSeconds?: number; } // @public export interface BlobDownloadOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - conditions?: BlobRequestConditions; - customerProvidedKey?: CpkInfo; - maxRetryRequests?: number; - onProgress?: (progress: TransferProgressEvent) => void; - rangeGetContentCrc64?: boolean; - rangeGetContentMD5?: boolean; - snapshot?: string; + abortSignal?: AbortSignalLike; + conditions?: BlobRequestConditions; + customerProvidedKey?: CpkInfo; + maxRetryRequests?: number; + onProgress?: (progress: TransferProgressEvent) => void; + rangeGetContentCrc64?: boolean; + rangeGetContentMD5?: boolean; + snapshot?: string; } // @public export type BlobDownloadResponseModel = BlobDownloadHeaders & { - blobBody?: Promise; - readableStreamBody?: NodeJS.ReadableStream; - _response: coreHttp.HttpResponse & { - parsedHeaders: BlobDownloadHeaders; - }; + blobBody?: Promise; + readableStreamBody?: NodeJS.ReadableStream; + _response: coreHttp.HttpResponse & { + parsedHeaders: BlobDownloadHeaders; + }; }; // @public export interface BlobDownloadToBufferOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - blockSize?: number; - concurrency?: number; - conditions?: BlobRequestConditions; - maxRetryRequestsPerBlock?: number; - onProgress?: (progress: TransferProgressEvent) => void; + abortSignal?: AbortSignalLike; + blockSize?: number; + concurrency?: number; + conditions?: BlobRequestConditions; + maxRetryRequestsPerBlock?: number; + onProgress?: (progress: TransferProgressEvent) => void; } // @public export interface BlobExistsOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - customerProvidedKey?: CpkInfo; + abortSignal?: AbortSignalLike; + customerProvidedKey?: CpkInfo; } // @public export interface BlobFlatListSegment { - // (undocumented) - blobItems: BlobItem[]; + // (undocumented) + blobItems: BlobItem[]; } // @public export interface BlobGetPropertiesHeaders { - acceptRanges?: string; - accessTier?: string; - accessTierChangedOn?: Date; - accessTierInferred?: boolean; - archiveStatus?: string; - blobCommittedBlockCount?: number; - blobSequenceNumber?: number; - blobType?: BlobType; - cacheControl?: string; - clientRequestId?: string; - contentDisposition?: string; - contentEncoding?: string; - contentLanguage?: string; - contentLength?: number; - contentMD5?: Uint8Array; - contentType?: string; - copyCompletedOn?: Date; - copyId?: string; - copyProgress?: string; - copySource?: string; - copyStatus?: CopyStatusType; - copyStatusDescription?: string; - createdOn?: Date; - date?: Date; - destinationSnapshot?: string; - encryptionKeySha256?: string; - encryptionScope?: string; - // (undocumented) - errorCode?: string; - etag?: string; - isIncrementalCopy?: boolean; - isServerEncrypted?: boolean; - lastModified?: Date; - leaseDuration?: LeaseDurationType; - leaseState?: LeaseStateType; - leaseStatus?: LeaseStatusType; - // (undocumented) - metadata?: { - [propertyName: string]: string; - }; - requestId?: string; - version?: string; + acceptRanges?: string; + accessTier?: string; + accessTierChangedOn?: Date; + accessTierInferred?: boolean; + archiveStatus?: string; + blobCommittedBlockCount?: number; + blobSequenceNumber?: number; + blobType?: BlobType; + cacheControl?: string; + clientRequestId?: string; + contentDisposition?: string; + contentEncoding?: string; + contentLanguage?: string; + contentLength?: number; + contentMD5?: Uint8Array; + contentType?: string; + copyCompletedOn?: Date; + copyId?: string; + copyProgress?: string; + copySource?: string; + copyStatus?: CopyStatusType; + copyStatusDescription?: string; + createdOn?: Date; + date?: Date; + destinationSnapshot?: string; + encryptionKeySha256?: string; + encryptionScope?: string; + // (undocumented) + errorCode?: string; + etag?: string; + isIncrementalCopy?: boolean; + isServerEncrypted?: boolean; + lastModified?: Date; + leaseDuration?: LeaseDurationType; + leaseState?: LeaseStateType; + leaseStatus?: LeaseStatusType; + // (undocumented) + metadata?: { + [propertyName: string]: string; + }; + requestId?: string; + version?: string; } // @public export interface BlobGetPropertiesOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - conditions?: BlobRequestConditions; - customerProvidedKey?: CpkInfo; + abortSignal?: AbortSignalLike; + conditions?: BlobRequestConditions; + customerProvidedKey?: CpkInfo; } // @public export type BlobGetPropertiesResponse = BlobGetPropertiesHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: BlobGetPropertiesHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: BlobGetPropertiesHeaders; + }; }; // @public export interface BlobHierarchyListSegment { - // (undocumented) - blobItems: BlobItem[]; - // (undocumented) - blobPrefixes?: BlobPrefix[]; + // (undocumented) + blobItems: BlobItem[]; + // (undocumented) + blobPrefixes?: BlobPrefix[]; } // @public export interface BlobHTTPHeaders { - blobCacheControl?: string; - blobContentDisposition?: string; - blobContentEncoding?: string; - blobContentLanguage?: string; - blobContentMD5?: Uint8Array; - blobContentType?: string; + blobCacheControl?: string; + blobContentDisposition?: string; + blobContentEncoding?: string; + blobContentLanguage?: string; + blobContentMD5?: Uint8Array; + blobContentType?: string; } // @public export interface BlobItem { - // (undocumented) - deleted: boolean; - // (undocumented) - metadata?: { - [propertyName: string]: string; - }; - // (undocumented) - name: string; - // (undocumented) - properties: BlobProperties; - // (undocumented) - snapshot: string; + // (undocumented) + deleted: boolean; + // (undocumented) + metadata?: { + [propertyName: string]: string; + }; + // (undocumented) + name: string; + // (undocumented) + properties: BlobProperties; + // (undocumented) + snapshot: string; } // @public export class BlobLeaseClient { - constructor(client: ContainerClient | BlobClient, leaseId?: string); - acquireLease(duration: number, options?: LeaseOperationOptions): Promise; - breakLease(breakPeriod: number, options?: LeaseOperationOptions): Promise; - changeLease( - proposedLeaseId: string, - options?: LeaseOperationOptions - ): Promise; - get leaseId(): string; - releaseLease(options?: LeaseOperationOptions): Promise; - renewLease(options?: LeaseOperationOptions): Promise; - get url(): string; -} + constructor(client: ContainerClient | BlobClient, leaseId?: string); + acquireLease(duration: number, options?: LeaseOperationOptions): Promise; + breakLease(breakPeriod: number, options?: LeaseOperationOptions): Promise; + changeLease(proposedLeaseId: string, options?: LeaseOperationOptions): Promise; + get leaseId(): string; + releaseLease(options?: LeaseOperationOptions): Promise; + renewLease(options?: LeaseOperationOptions): Promise; + get url(): string; + } // @public export interface BlobPrefix { - // (undocumented) - name: string; + // (undocumented) + name: string; } // @public export interface BlobProperties { - accessTier?: AccessTier; - // (undocumented) - accessTierChangedOn?: Date; - // (undocumented) - accessTierInferred?: boolean; - archiveStatus?: ArchiveStatus; - // (undocumented) - blobSequenceNumber?: number; - blobType?: BlobType; - // (undocumented) - cacheControl?: string; - // (undocumented) - contentDisposition?: string; - // (undocumented) - contentEncoding?: string; - // (undocumented) - contentLanguage?: string; - contentLength?: number; - // (undocumented) - contentMD5?: Uint8Array; - // (undocumented) - contentType?: string; - // (undocumented) - copyCompletedOn?: Date; - // (undocumented) - copyId?: string; - // (undocumented) - copyProgress?: string; - // (undocumented) - copySource?: string; - copyStatus?: CopyStatusType; - // (undocumented) - copyStatusDescription?: string; - // (undocumented) - createdOn?: Date; - // (undocumented) - customerProvidedKeySha256?: string; - // (undocumented) - deletedOn?: Date; - // (undocumented) - destinationSnapshot?: string; - encryptionScope?: string; - // (undocumented) - etag: string; - // (undocumented) - incrementalCopy?: boolean; - // (undocumented) - lastModified: Date; - leaseDuration?: LeaseDurationType; - leaseState?: LeaseStateType; - leaseStatus?: LeaseStatusType; - // (undocumented) - remainingRetentionDays?: number; - // (undocumented) - serverEncrypted?: boolean; + accessTier?: AccessTier; + // (undocumented) + accessTierChangedOn?: Date; + // (undocumented) + accessTierInferred?: boolean; + archiveStatus?: ArchiveStatus; + // (undocumented) + blobSequenceNumber?: number; + blobType?: BlobType; + // (undocumented) + cacheControl?: string; + // (undocumented) + contentDisposition?: string; + // (undocumented) + contentEncoding?: string; + // (undocumented) + contentLanguage?: string; + contentLength?: number; + // (undocumented) + contentMD5?: Uint8Array; + // (undocumented) + contentType?: string; + // (undocumented) + copyCompletedOn?: Date; + // (undocumented) + copyId?: string; + // (undocumented) + copyProgress?: string; + // (undocumented) + copySource?: string; + copyStatus?: CopyStatusType; + // (undocumented) + copyStatusDescription?: string; + // (undocumented) + createdOn?: Date; + // (undocumented) + customerProvidedKeySha256?: string; + // (undocumented) + deletedOn?: Date; + // (undocumented) + destinationSnapshot?: string; + encryptionScope?: string; + // (undocumented) + etag: string; + // (undocumented) + incrementalCopy?: boolean; + // (undocumented) + lastModified: Date; + leaseDuration?: LeaseDurationType; + leaseState?: LeaseStateType; + leaseStatus?: LeaseStatusType; + // (undocumented) + remainingRetentionDays?: number; + // (undocumented) + serverEncrypted?: boolean; } // @public export interface BlobReleaseLeaseOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - conditions?: ModifiedAccessConditions; + abortSignal?: AbortSignalLike; + conditions?: ModifiedAccessConditions; } // @public export interface BlobRenewLeaseOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - conditions?: ModifiedAccessConditions; + abortSignal?: AbortSignalLike; + conditions?: ModifiedAccessConditions; } // @public -export interface BlobRequestConditions extends ModifiedAccessConditions, LeaseAccessConditions {} +export interface BlobRequestConditions extends ModifiedAccessConditions, LeaseAccessConditions { +} // @public export class BlobSASPermissions { - add: boolean; - create: boolean; - delete: boolean; - static parse(permissions: string): BlobSASPermissions; - read: boolean; - toString(): string; - write: boolean; + add: boolean; + create: boolean; + delete: boolean; + static parse(permissions: string): BlobSASPermissions; + read: boolean; + toString(): string; + write: boolean; } // @public export interface BlobSASSignatureValues { - blobName?: string; - cacheControl?: string; - containerName: string; - contentDisposition?: string; - contentEncoding?: string; - contentLanguage?: string; - contentType?: string; - expiresOn?: Date; - identifier?: string; - ipRange?: SasIPRange; - permissions?: BlobSASPermissions; - protocol?: SASProtocol; - snapshotTime?: string; - startsOn?: Date; - version?: string; + blobName?: string; + cacheControl?: string; + containerName: string; + contentDisposition?: string; + contentEncoding?: string; + contentLanguage?: string; + contentType?: string; + expiresOn?: Date; + identifier?: string; + ipRange?: SasIPRange; + permissions?: BlobSASPermissions; + protocol?: SASProtocol; + snapshotTime?: string; + startsOn?: Date; + version?: string; } // @public export class BlobServiceClient extends StorageClient { - constructor( - url: string, - credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, - options?: StoragePipelineOptions - ); - constructor(url: string, pipeline: Pipeline); - createContainer( - containerName: string, - options?: ContainerCreateOptions - ): Promise<{ - containerClient: ContainerClient; - containerCreateResponse: ContainerCreateResponse; - }>; - deleteContainer( - containerName: string, - options?: ContainerDeleteMethodOptions - ): Promise; - static fromConnectionString( - connectionString: string, - options?: StoragePipelineOptions - ): BlobServiceClient; - getAccountInfo(options?: ServiceGetAccountInfoOptions): Promise; - getBlobBatchClient(): BlobBatchClient; - getContainerClient(containerName: string): ContainerClient; - getProperties(options?: ServiceGetPropertiesOptions): Promise; - getStatistics(options?: ServiceGetStatisticsOptions): Promise; - getUserDelegationKey( - startsOn: Date, - expiresOn: Date, - options?: ServiceGetUserDelegationKeyOptions - ): Promise; - listContainers( - options?: ServiceListContainersOptions - ): PagedAsyncIterableIterator; - setProperties( - properties: BlobServiceProperties, - options?: ServiceSetPropertiesOptions - ): Promise; + constructor(url: string, credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, options?: StoragePipelineOptions); + constructor(url: string, pipeline: Pipeline); + createContainer(containerName: string, options?: ContainerCreateOptions): Promise<{ + containerClient: ContainerClient; + containerCreateResponse: ContainerCreateResponse; + }>; + deleteContainer(containerName: string, options?: ContainerDeleteMethodOptions): Promise; + static fromConnectionString(connectionString: string, options?: StoragePipelineOptions): BlobServiceClient; + getAccountInfo(options?: ServiceGetAccountInfoOptions): Promise; + getBlobBatchClient(): BlobBatchClient; + getContainerClient(containerName: string): ContainerClient; + getProperties(options?: ServiceGetPropertiesOptions): Promise; + getStatistics(options?: ServiceGetStatisticsOptions): Promise; + getUserDelegationKey(startsOn: Date, expiresOn: Date, options?: ServiceGetUserDelegationKeyOptions): Promise; + listContainers(options?: ServiceListContainersOptions): PagedAsyncIterableIterator; + setProperties(properties: BlobServiceProperties, options?: ServiceSetPropertiesOptions): Promise; } // @public export interface BlobServiceProperties { - // (undocumented) - blobAnalyticsLogging?: Logging; - cors?: CorsRule[]; - defaultServiceVersion?: string; - // (undocumented) - deleteRetentionPolicy?: RetentionPolicy; - // (undocumented) - hourMetrics?: Metrics; - // (undocumented) - minuteMetrics?: Metrics; - // (undocumented) - staticWebsite?: StaticWebsite; + // (undocumented) + blobAnalyticsLogging?: Logging; + cors?: CorsRule[]; + defaultServiceVersion?: string; + // (undocumented) + deleteRetentionPolicy?: RetentionPolicy; + // (undocumented) + hourMetrics?: Metrics; + // (undocumented) + minuteMetrics?: Metrics; + // (undocumented) + staticWebsite?: StaticWebsite; } // @public export interface BlobServiceStatistics { - // (undocumented) - geoReplication?: GeoReplication; + // (undocumented) + geoReplication?: GeoReplication; } // @public export interface BlobSetHTTPHeadersHeaders { - blobSequenceNumber?: number; - clientRequestId?: string; - date?: Date; - // (undocumented) - errorCode?: string; - etag?: string; - lastModified?: Date; - requestId?: string; - version?: string; + blobSequenceNumber?: number; + clientRequestId?: string; + date?: Date; + // (undocumented) + errorCode?: string; + etag?: string; + lastModified?: Date; + requestId?: string; + version?: string; } // @public export interface BlobSetHTTPHeadersOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - conditions?: BlobRequestConditions; - customerProvidedKey?: CpkInfo; + abortSignal?: AbortSignalLike; + conditions?: BlobRequestConditions; + customerProvidedKey?: CpkInfo; } // @public export type BlobSetHTTPHeadersResponse = BlobSetHTTPHeadersHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: BlobSetHTTPHeadersHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: BlobSetHTTPHeadersHeaders; + }; }; // @public export interface BlobSetMetadataHeaders { - clientRequestId?: string; - date?: Date; - encryptionKeySha256?: string; - encryptionScope?: string; - // (undocumented) - errorCode?: string; - etag?: string; - isServerEncrypted?: boolean; - lastModified?: Date; - requestId?: string; - version?: string; + clientRequestId?: string; + date?: Date; + encryptionKeySha256?: string; + encryptionScope?: string; + // (undocumented) + errorCode?: string; + etag?: string; + isServerEncrypted?: boolean; + lastModified?: Date; + requestId?: string; + version?: string; } // @public export interface BlobSetMetadataOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - conditions?: BlobRequestConditions; - customerProvidedKey?: CpkInfo; - encryptionScope?: string; + abortSignal?: AbortSignalLike; + conditions?: BlobRequestConditions; + customerProvidedKey?: CpkInfo; + encryptionScope?: string; } // @public export type BlobSetMetadataResponse = BlobSetMetadataHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: BlobSetMetadataHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: BlobSetMetadataHeaders; + }; }; // @public export interface BlobSetTierHeaders { - clientRequestId?: string; - // (undocumented) - errorCode?: string; - requestId?: string; - version?: string; + clientRequestId?: string; + // (undocumented) + errorCode?: string; + requestId?: string; + version?: string; } // @public export interface BlobSetTierOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - conditions?: LeaseAccessConditions; - rehydratePriority?: RehydratePriority; + abortSignal?: AbortSignalLike; + conditions?: LeaseAccessConditions; + rehydratePriority?: RehydratePriority; } // @public export type BlobSetTierResponse = BlobSetTierHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: BlobSetTierHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: BlobSetTierHeaders; + }; }; // @public export interface BlobStartCopyFromURLHeaders { - clientRequestId?: string; - copyId?: string; - copyStatus?: CopyStatusType; - date?: Date; - // (undocumented) - errorCode?: string; - etag?: string; - lastModified?: Date; - requestId?: string; - version?: string; + clientRequestId?: string; + copyId?: string; + copyStatus?: CopyStatusType; + date?: Date; + // (undocumented) + errorCode?: string; + etag?: string; + lastModified?: Date; + requestId?: string; + version?: string; } // @public export interface BlobStartCopyFromURLOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - conditions?: BlobRequestConditions; - metadata?: Metadata; - rehydratePriority?: RehydratePriority; - sourceConditions?: ModifiedAccessConditions; - tier?: BlockBlobTier | PremiumPageBlobTier | string; + abortSignal?: AbortSignalLike; + conditions?: BlobRequestConditions; + metadata?: Metadata; + rehydratePriority?: RehydratePriority; + sourceConditions?: ModifiedAccessConditions; + tier?: BlockBlobTier | PremiumPageBlobTier | string; } // @public export type BlobStartCopyFromURLResponse = BlobStartCopyFromURLHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: BlobStartCopyFromURLHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: BlobStartCopyFromURLHeaders; + }; }; // @public export interface BlobSyncCopyFromURLOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - conditions?: BlobRequestConditions; - metadata?: Metadata; - sourceConditions?: ModifiedAccessConditions; - sourceContentMD5?: Uint8Array; + abortSignal?: AbortSignalLike; + conditions?: BlobRequestConditions; + metadata?: Metadata; + sourceConditions?: ModifiedAccessConditions; + sourceContentMD5?: Uint8Array; } // @public -export type BlobType = "BlockBlob" | "PageBlob" | "AppendBlob"; +export type BlobType = 'BlockBlob' | 'PageBlob' | 'AppendBlob'; // @public export interface BlobUndeleteHeaders { - clientRequestId?: string; - date?: Date; - // (undocumented) - errorCode?: string; - requestId?: string; - version?: string; + clientRequestId?: string; + date?: Date; + // (undocumented) + errorCode?: string; + requestId?: string; + version?: string; } // @public export interface BlobUndeleteOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - customerProvidedKey?: CpkInfo; + abortSignal?: AbortSignalLike; + customerProvidedKey?: CpkInfo; } // @public export type BlobUndeleteResponse = BlobUndeleteHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: BlobUndeleteHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: BlobUndeleteHeaders; + }; }; // @public export type BlobUploadCommonResponse = BlockBlobUploadHeaders & { - _response: HttpResponse; + _response: HttpResponse; }; // @public export interface Block { - name: string; - size: number; + name: string; + size: number; } // @public export class BlockBlobClient extends BlobClient { - constructor( - connectionString: string, - containerName: string, - blobName: string, - options?: StoragePipelineOptions - ); - constructor( - url: string, - credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, - options?: StoragePipelineOptions - ); - constructor(url: string, pipeline: Pipeline); - commitBlockList( - blocks: string[], - options?: BlockBlobCommitBlockListOptions - ): Promise; - getBlockList( - listType: BlockListType, - options?: BlockBlobGetBlockListOptions - ): Promise; - stageBlock( - blockId: string, - body: HttpRequestBody, - contentLength: number, - options?: BlockBlobStageBlockOptions - ): Promise; - stageBlockFromURL( - blockId: string, - sourceURL: string, - offset?: number, - count?: number, - options?: BlockBlobStageBlockFromURLOptions - ): Promise; - upload( - body: HttpRequestBody, - contentLength: number, - options?: BlockBlobUploadOptions - ): Promise; - uploadBrowserData( - browserData: Blob | ArrayBuffer | ArrayBufferView, - options?: BlockBlobParallelUploadOptions - ): Promise; - uploadFile( - filePath: string, - options?: BlockBlobParallelUploadOptions - ): Promise; - uploadStream( - stream: Readable, - bufferSize?: number, - maxConcurrency?: number, - options?: BlockBlobUploadStreamOptions - ): Promise; - withSnapshot(snapshot: string): BlockBlobClient; + constructor(connectionString: string, containerName: string, blobName: string, options?: StoragePipelineOptions); + constructor(url: string, credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, options?: StoragePipelineOptions); + constructor(url: string, pipeline: Pipeline); + commitBlockList(blocks: string[], options?: BlockBlobCommitBlockListOptions): Promise; + getBlockList(listType: BlockListType, options?: BlockBlobGetBlockListOptions): Promise; + stageBlock(blockId: string, body: HttpRequestBody, contentLength: number, options?: BlockBlobStageBlockOptions): Promise; + stageBlockFromURL(blockId: string, sourceURL: string, offset?: number, count?: number, options?: BlockBlobStageBlockFromURLOptions): Promise; + upload(body: HttpRequestBody, contentLength: number, options?: BlockBlobUploadOptions): Promise; + uploadBrowserData(browserData: Blob | ArrayBuffer | ArrayBufferView, options?: BlockBlobParallelUploadOptions): Promise; + uploadFile(filePath: string, options?: BlockBlobParallelUploadOptions): Promise; + uploadStream(stream: Readable, bufferSize?: number, maxConcurrency?: number, options?: BlockBlobUploadStreamOptions): Promise; + withSnapshot(snapshot: string): BlockBlobClient; } // @public export interface BlockBlobCommitBlockListHeaders { - clientRequestId?: string; - contentMD5?: Uint8Array; - date?: Date; - encryptionKeySha256?: string; - encryptionScope?: string; - // (undocumented) - errorCode?: string; - etag?: string; - isServerEncrypted?: boolean; - lastModified?: Date; - requestId?: string; - version?: string; - xMsContentCrc64?: Uint8Array; + clientRequestId?: string; + contentMD5?: Uint8Array; + date?: Date; + encryptionKeySha256?: string; + encryptionScope?: string; + // (undocumented) + errorCode?: string; + etag?: string; + isServerEncrypted?: boolean; + lastModified?: Date; + requestId?: string; + version?: string; + xMsContentCrc64?: Uint8Array; } // @public export interface BlockBlobCommitBlockListOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - blobHTTPHeaders?: BlobHTTPHeaders; - conditions?: BlobRequestConditions; - customerProvidedKey?: CpkInfo; - encryptionScope?: string; - metadata?: Metadata; - tier?: BlockBlobTier | string; + abortSignal?: AbortSignalLike; + blobHTTPHeaders?: BlobHTTPHeaders; + conditions?: BlobRequestConditions; + customerProvidedKey?: CpkInfo; + encryptionScope?: string; + metadata?: Metadata; + tier?: BlockBlobTier | string; } // @public export type BlockBlobCommitBlockListResponse = BlockBlobCommitBlockListHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: BlockBlobCommitBlockListHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: BlockBlobCommitBlockListHeaders; + }; }; // @public export interface BlockBlobGetBlockListHeaders { - blobContentLength?: number; - clientRequestId?: string; - contentType?: string; - date?: Date; - // (undocumented) - errorCode?: string; - etag?: string; - lastModified?: Date; - requestId?: string; - version?: string; + blobContentLength?: number; + clientRequestId?: string; + contentType?: string; + date?: Date; + // (undocumented) + errorCode?: string; + etag?: string; + lastModified?: Date; + requestId?: string; + version?: string; } // @public export interface BlockBlobGetBlockListOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - conditions?: LeaseAccessConditions; + abortSignal?: AbortSignalLike; + conditions?: LeaseAccessConditions; } // @public -export type BlockBlobGetBlockListResponse = BlockList & - BlockBlobGetBlockListHeaders & { +export type BlockBlobGetBlockListResponse = BlockList & BlockBlobGetBlockListHeaders & { _response: coreHttp.HttpResponse & { - parsedHeaders: BlockBlobGetBlockListHeaders; - bodyAsText: string; - parsedBody: BlockList; + parsedHeaders: BlockBlobGetBlockListHeaders; + bodyAsText: string; + parsedBody: BlockList; }; - }; +}; // @public export interface BlockBlobParallelUploadOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - blobHTTPHeaders?: BlobHTTPHeaders; - blockSize?: number; - concurrency?: number; - conditions?: BlobRequestConditions; - encryptionScope?: string; - maxSingleShotSize?: number; - metadata?: { - [propertyName: string]: string; - }; - onProgress?: (progress: TransferProgressEvent) => void; + abortSignal?: AbortSignalLike; + blobHTTPHeaders?: BlobHTTPHeaders; + blockSize?: number; + concurrency?: number; + conditions?: BlobRequestConditions; + encryptionScope?: string; + maxSingleShotSize?: number; + metadata?: { + [propertyName: string]: string; + }; + onProgress?: (progress: TransferProgressEvent) => void; } // @public export interface BlockBlobStageBlockFromURLHeaders { - clientRequestId?: string; - contentMD5?: Uint8Array; - date?: Date; - encryptionKeySha256?: string; - encryptionScope?: string; - // (undocumented) - errorCode?: string; - isServerEncrypted?: boolean; - requestId?: string; - version?: string; - xMsContentCrc64?: Uint8Array; + clientRequestId?: string; + contentMD5?: Uint8Array; + date?: Date; + encryptionKeySha256?: string; + encryptionScope?: string; + // (undocumented) + errorCode?: string; + isServerEncrypted?: boolean; + requestId?: string; + version?: string; + xMsContentCrc64?: Uint8Array; } // @public export interface BlockBlobStageBlockFromURLOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - conditions?: LeaseAccessConditions; - customerProvidedKey?: CpkInfo; - encryptionScope?: string; - range?: Range; - sourceContentCrc64?: Uint8Array; - sourceContentMD5?: Uint8Array; + abortSignal?: AbortSignalLike; + conditions?: LeaseAccessConditions; + customerProvidedKey?: CpkInfo; + encryptionScope?: string; + range?: Range; + sourceContentCrc64?: Uint8Array; + sourceContentMD5?: Uint8Array; } // @public export type BlockBlobStageBlockFromURLResponse = BlockBlobStageBlockFromURLHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: BlockBlobStageBlockFromURLHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: BlockBlobStageBlockFromURLHeaders; + }; }; // @public export interface BlockBlobStageBlockHeaders { - clientRequestId?: string; - contentMD5?: Uint8Array; - date?: Date; - encryptionKeySha256?: string; - encryptionScope?: string; - // (undocumented) - errorCode?: string; - isServerEncrypted?: boolean; - requestId?: string; - version?: string; - xMsContentCrc64?: Uint8Array; + clientRequestId?: string; + contentMD5?: Uint8Array; + date?: Date; + encryptionKeySha256?: string; + encryptionScope?: string; + // (undocumented) + errorCode?: string; + isServerEncrypted?: boolean; + requestId?: string; + version?: string; + xMsContentCrc64?: Uint8Array; } // @public export interface BlockBlobStageBlockOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - conditions?: LeaseAccessConditions; - customerProvidedKey?: CpkInfo; - encryptionScope?: string; - onProgress?: (progress: TransferProgressEvent) => void; - transactionalContentCrc64?: Uint8Array; - transactionalContentMD5?: Uint8Array; + abortSignal?: AbortSignalLike; + conditions?: LeaseAccessConditions; + customerProvidedKey?: CpkInfo; + encryptionScope?: string; + onProgress?: (progress: TransferProgressEvent) => void; + transactionalContentCrc64?: Uint8Array; + transactionalContentMD5?: Uint8Array; } // @public export type BlockBlobStageBlockResponse = BlockBlobStageBlockHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: BlockBlobStageBlockHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: BlockBlobStageBlockHeaders; + }; }; // @public export enum BlockBlobTier { - Archive = "Archive", - Cool = "Cool", - Hot = "Hot" + Archive = "Archive", + Cool = "Cool", + Hot = "Hot" } // @public export interface BlockBlobUploadHeaders { - clientRequestId?: string; - contentMD5?: Uint8Array; - date?: Date; - encryptionKeySha256?: string; - encryptionScope?: string; - // (undocumented) - errorCode?: string; - etag?: string; - isServerEncrypted?: boolean; - lastModified?: Date; - requestId?: string; - version?: string; + clientRequestId?: string; + contentMD5?: Uint8Array; + date?: Date; + encryptionKeySha256?: string; + encryptionScope?: string; + // (undocumented) + errorCode?: string; + etag?: string; + isServerEncrypted?: boolean; + lastModified?: Date; + requestId?: string; + version?: string; } // @public export interface BlockBlobUploadOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - blobHTTPHeaders?: BlobHTTPHeaders; - conditions?: BlobRequestConditions; - customerProvidedKey?: CpkInfo; - encryptionScope?: string; - metadata?: Metadata; - onProgress?: (progress: TransferProgressEvent) => void; - tier?: BlockBlobTier | string; + abortSignal?: AbortSignalLike; + blobHTTPHeaders?: BlobHTTPHeaders; + conditions?: BlobRequestConditions; + customerProvidedKey?: CpkInfo; + encryptionScope?: string; + metadata?: Metadata; + onProgress?: (progress: TransferProgressEvent) => void; + tier?: BlockBlobTier | string; } // @public export type BlockBlobUploadResponse = BlockBlobUploadHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: BlockBlobUploadHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: BlockBlobUploadHeaders; + }; }; // @public export interface BlockBlobUploadStreamOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - blobHTTPHeaders?: BlobHTTPHeaders; - conditions?: BlobRequestConditions; - encryptionScope?: string; - metadata?: { - [propertyName: string]: string; - }; - onProgress?: (progress: TransferProgressEvent) => void; + abortSignal?: AbortSignalLike; + blobHTTPHeaders?: BlobHTTPHeaders; + conditions?: BlobRequestConditions; + encryptionScope?: string; + metadata?: { + [propertyName: string]: string; + }; + onProgress?: (progress: TransferProgressEvent) => void; } // @public export interface BlockList { - // (undocumented) - committedBlocks?: Block[]; - // (undocumented) - uncommittedBlocks?: Block[]; + // (undocumented) + committedBlocks?: Block[]; + // (undocumented) + uncommittedBlocks?: Block[]; } // @public -export type BlockListType = "committed" | "uncommitted" | "all"; +export type BlockListType = 'committed' | 'uncommitted' | 'all'; // @public export interface CommonOptions { - tracingOptions?: OperationTracingOptions; + tracingOptions?: OperationTracingOptions; } // @public export interface ContainerAcquireLeaseOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - conditions?: ModifiedAccessConditions; + abortSignal?: AbortSignalLike; + conditions?: ModifiedAccessConditions; } // @public export interface ContainerBreakLeaseOptionalParams extends coreHttp.RequestOptionsBase { - breakPeriod?: number; - modifiedAccessConditions?: ModifiedAccessConditions; - requestId?: string; - timeoutInSeconds?: number; + breakPeriod?: number; + modifiedAccessConditions?: ModifiedAccessConditions; + requestId?: string; + timeoutInSeconds?: number; } // @public export interface ContainerBreakLeaseOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - conditions?: ModifiedAccessConditions; + abortSignal?: AbortSignalLike; + conditions?: ModifiedAccessConditions; } // @public export interface ContainerChangeLeaseOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - conditions?: ModifiedAccessConditions; + abortSignal?: AbortSignalLike; + conditions?: ModifiedAccessConditions; } // @public export class ContainerClient extends StorageClient { - constructor(connectionString: string, containerName: string, options?: StoragePipelineOptions); - constructor( - url: string, - credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, - options?: StoragePipelineOptions - ); - constructor(url: string, pipeline: Pipeline); - get containerName(): string; - create(options?: ContainerCreateOptions): Promise; - delete(options?: ContainerDeleteMethodOptions): Promise; - deleteBlob(blobName: string, options?: BlobDeleteOptions): Promise; - exists(options?: ContainerExistsOptions): Promise; - getAccessPolicy( - options?: ContainerGetAccessPolicyOptions - ): Promise; - getAppendBlobClient(blobName: string): AppendBlobClient; - getBlobClient(blobName: string): BlobClient; - getBlobLeaseClient(proposeLeaseId?: string): BlobLeaseClient; - getBlockBlobClient(blobName: string): BlockBlobClient; - getPageBlobClient(blobName: string): PageBlobClient; - getProperties(options?: ContainerGetPropertiesOptions): Promise; - listBlobsByHierarchy( - delimiter: string, - options?: ContainerListBlobsOptions - ): PagedAsyncIterableIterator< - | ({ + constructor(connectionString: string, containerName: string, options?: StoragePipelineOptions); + constructor(url: string, credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, options?: StoragePipelineOptions); + constructor(url: string, pipeline: Pipeline); + get containerName(): string; + create(options?: ContainerCreateOptions): Promise; + delete(options?: ContainerDeleteMethodOptions): Promise; + deleteBlob(blobName: string, options?: BlobDeleteOptions): Promise; + exists(options?: ContainerExistsOptions): Promise; + getAccessPolicy(options?: ContainerGetAccessPolicyOptions): Promise; + getAppendBlobClient(blobName: string): AppendBlobClient; + getBlobClient(blobName: string): BlobClient; + getBlobLeaseClient(proposeLeaseId?: string): BlobLeaseClient; + getBlockBlobClient(blobName: string): BlockBlobClient; + getPageBlobClient(blobName: string): PageBlobClient; + getProperties(options?: ContainerGetPropertiesOptions): Promise; + listBlobsByHierarchy(delimiter: string, options?: ContainerListBlobsOptions): PagedAsyncIterableIterator<({ kind: "prefix"; - } & BlobPrefix) - | ({ + } & BlobPrefix) | ({ kind: "blob"; - } & BlobItem), - ContainerListBlobHierarchySegmentResponse - >; - listBlobsFlat( - options?: ContainerListBlobsOptions - ): PagedAsyncIterableIterator; - setAccessPolicy( - access?: PublicAccessType, - containerAcl?: SignedIdentifier[], - options?: ContainerSetAccessPolicyOptions - ): Promise; - setMetadata( - metadata?: Metadata, - options?: ContainerSetMetadataOptions - ): Promise; - uploadBlockBlob( - blobName: string, - body: HttpRequestBody, - contentLength: number, - options?: BlockBlobUploadOptions - ): Promise<{ - blockBlobClient: BlockBlobClient; - response: BlockBlobUploadResponse; - }>; + } & BlobItem), ContainerListBlobHierarchySegmentResponse>; + listBlobsFlat(options?: ContainerListBlobsOptions): PagedAsyncIterableIterator; + setAccessPolicy(access?: PublicAccessType, containerAcl?: SignedIdentifier[], options?: ContainerSetAccessPolicyOptions): Promise; + setMetadata(metadata?: Metadata, options?: ContainerSetMetadataOptions): Promise; + uploadBlockBlob(blobName: string, body: HttpRequestBody, contentLength: number, options?: BlockBlobUploadOptions): Promise<{ + blockBlobClient: BlockBlobClient; + response: BlockBlobUploadResponse; + }>; } // @public export interface ContainerCreateHeaders { - clientRequestId?: string; - date?: Date; - // (undocumented) - errorCode?: string; - etag?: string; - lastModified?: Date; - requestId?: string; - version?: string; + clientRequestId?: string; + date?: Date; + // (undocumented) + errorCode?: string; + etag?: string; + lastModified?: Date; + requestId?: string; + version?: string; } // @public export interface ContainerCreateOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - access?: PublicAccessType; - containerEncryptionScope?: ContainerEncryptionScope; - metadata?: Metadata; + abortSignal?: AbortSignalLike; + access?: PublicAccessType; + containerEncryptionScope?: ContainerEncryptionScope; + metadata?: Metadata; } // @public export type ContainerCreateResponse = ContainerCreateHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: ContainerCreateHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: ContainerCreateHeaders; + }; }; // @public export interface ContainerDeleteHeaders { - clientRequestId?: string; - date?: Date; - // (undocumented) - errorCode?: string; - requestId?: string; - version?: string; + clientRequestId?: string; + date?: Date; + // (undocumented) + errorCode?: string; + requestId?: string; + version?: string; } // @public export interface ContainerDeleteMethodOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - conditions?: BlobRequestConditions; + abortSignal?: AbortSignalLike; + conditions?: BlobRequestConditions; } // @public export type ContainerDeleteResponse = ContainerDeleteHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: ContainerDeleteHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: ContainerDeleteHeaders; + }; }; // @public export interface ContainerEncryptionScope { - defaultEncryptionScope?: string; - preventEncryptionScopeOverride?: boolean; + defaultEncryptionScope?: string; + preventEncryptionScopeOverride?: boolean; } // @public export interface ContainerExistsOptions extends CommonOptions { - abortSignal?: AbortSignalLike; + abortSignal?: AbortSignalLike; } // @public export interface ContainerGetAccessPolicyHeaders { - blobPublicAccess?: PublicAccessType; - clientRequestId?: string; - date?: Date; - // (undocumented) - errorCode?: string; - etag?: string; - lastModified?: Date; - requestId?: string; - version?: string; + blobPublicAccess?: PublicAccessType; + clientRequestId?: string; + date?: Date; + // (undocumented) + errorCode?: string; + etag?: string; + lastModified?: Date; + requestId?: string; + version?: string; } // @public export interface ContainerGetAccessPolicyOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - conditions?: LeaseAccessConditions; + abortSignal?: AbortSignalLike; + conditions?: LeaseAccessConditions; } // @public export type ContainerGetAccessPolicyResponse = { - signedIdentifiers: SignedIdentifier[]; + signedIdentifiers: SignedIdentifier[]; } & ContainerGetAccessPolicyHeaders & { _response: HttpResponse & { - parsedHeaders: ContainerGetAccessPolicyHeaders; - bodyAsText: string; - parsedBody: SignedIdentifierModel[]; + parsedHeaders: ContainerGetAccessPolicyHeaders; + bodyAsText: string; + parsedBody: SignedIdentifierModel[]; }; - }; +}; // @public export interface ContainerGetPropertiesHeaders { - blobPublicAccess?: PublicAccessType; - clientRequestId?: string; - date?: Date; - defaultEncryptionScope?: string; - denyEncryptionScopeOverride?: boolean; - // (undocumented) - errorCode?: string; - etag?: string; - hasImmutabilityPolicy?: boolean; - hasLegalHold?: boolean; - lastModified?: Date; - leaseDuration?: LeaseDurationType; - leaseState?: LeaseStateType; - leaseStatus?: LeaseStatusType; - // (undocumented) - metadata?: { - [propertyName: string]: string; - }; - requestId?: string; - version?: string; + blobPublicAccess?: PublicAccessType; + clientRequestId?: string; + date?: Date; + defaultEncryptionScope?: string; + denyEncryptionScopeOverride?: boolean; + // (undocumented) + errorCode?: string; + etag?: string; + hasImmutabilityPolicy?: boolean; + hasLegalHold?: boolean; + lastModified?: Date; + leaseDuration?: LeaseDurationType; + leaseState?: LeaseStateType; + leaseStatus?: LeaseStatusType; + // (undocumented) + metadata?: { + [propertyName: string]: string; + }; + requestId?: string; + version?: string; } // @public export interface ContainerGetPropertiesOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - conditions?: LeaseAccessConditions; + abortSignal?: AbortSignalLike; + conditions?: LeaseAccessConditions; } // @public export type ContainerGetPropertiesResponse = ContainerGetPropertiesHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: ContainerGetPropertiesHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: ContainerGetPropertiesHeaders; + }; }; // @public export interface ContainerItem { - // (undocumented) - metadata?: { - [propertyName: string]: string; - }; - // (undocumented) - name: string; - // (undocumented) - properties: ContainerProperties; + // (undocumented) + metadata?: { + [propertyName: string]: string; + }; + // (undocumented) + name: string; + // (undocumented) + properties: ContainerProperties; } // @public export interface ContainerListBlobFlatSegmentHeaders { - clientRequestId?: string; - contentType?: string; - date?: Date; - // (undocumented) - errorCode?: string; - requestId?: string; - version?: string; + clientRequestId?: string; + contentType?: string; + date?: Date; + // (undocumented) + errorCode?: string; + requestId?: string; + version?: string; } // @public -export type ContainerListBlobFlatSegmentResponse = ListBlobsFlatSegmentResponse & - ContainerListBlobFlatSegmentHeaders & { +export type ContainerListBlobFlatSegmentResponse = ListBlobsFlatSegmentResponse & ContainerListBlobFlatSegmentHeaders & { _response: coreHttp.HttpResponse & { - parsedHeaders: ContainerListBlobFlatSegmentHeaders; - bodyAsText: string; - parsedBody: ListBlobsFlatSegmentResponse; + parsedHeaders: ContainerListBlobFlatSegmentHeaders; + bodyAsText: string; + parsedBody: ListBlobsFlatSegmentResponse; }; - }; +}; // @public export interface ContainerListBlobHierarchySegmentHeaders { - clientRequestId?: string; - contentType?: string; - date?: Date; - // (undocumented) - errorCode?: string; - requestId?: string; - version?: string; + clientRequestId?: string; + contentType?: string; + date?: Date; + // (undocumented) + errorCode?: string; + requestId?: string; + version?: string; } // @public -export type ContainerListBlobHierarchySegmentResponse = ListBlobsHierarchySegmentResponse & - ContainerListBlobHierarchySegmentHeaders & { +export type ContainerListBlobHierarchySegmentResponse = ListBlobsHierarchySegmentResponse & ContainerListBlobHierarchySegmentHeaders & { _response: coreHttp.HttpResponse & { - parsedHeaders: ContainerListBlobHierarchySegmentHeaders; - bodyAsText: string; - parsedBody: ListBlobsHierarchySegmentResponse; + parsedHeaders: ContainerListBlobHierarchySegmentHeaders; + bodyAsText: string; + parsedBody: ListBlobsHierarchySegmentResponse; }; - }; +}; // @public export interface ContainerListBlobsOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - includeCopy?: boolean; - includeDeleted?: boolean; - includeMetadata?: boolean; - includeSnapshots?: boolean; - includeUncommitedBlobs?: boolean; - prefix?: string; + abortSignal?: AbortSignalLike; + includeCopy?: boolean; + includeDeleted?: boolean; + includeMetadata?: boolean; + includeSnapshots?: boolean; + includeUncommitedBlobs?: boolean; + prefix?: string; } // @public export interface ContainerProperties { - // (undocumented) - defaultEncryptionScope?: string; - // (undocumented) - etag: string; - // (undocumented) - hasImmutabilityPolicy?: boolean; - // (undocumented) - hasLegalHold?: boolean; - // (undocumented) - lastModified: Date; - leaseDuration?: LeaseDurationType; - leaseState?: LeaseStateType; - leaseStatus?: LeaseStatusType; - // (undocumented) - preventEncryptionScopeOverride?: boolean; - publicAccess?: PublicAccessType; + // (undocumented) + defaultEncryptionScope?: string; + // (undocumented) + etag: string; + // (undocumented) + hasImmutabilityPolicy?: boolean; + // (undocumented) + hasLegalHold?: boolean; + // (undocumented) + lastModified: Date; + leaseDuration?: LeaseDurationType; + leaseState?: LeaseStateType; + leaseStatus?: LeaseStatusType; + // (undocumented) + preventEncryptionScopeOverride?: boolean; + publicAccess?: PublicAccessType; } // @public export interface ContainerReleaseLeaseOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - conditions?: ModifiedAccessConditions; + abortSignal?: AbortSignalLike; + conditions?: ModifiedAccessConditions; } // @public export interface ContainerRenewLeaseOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - conditions?: ModifiedAccessConditions; + abortSignal?: AbortSignalLike; + conditions?: ModifiedAccessConditions; } // @public export class ContainerSASPermissions { - add: boolean; - create: boolean; - delete: boolean; - list: boolean; - static parse(permissions: string): ContainerSASPermissions; - read: boolean; - toString(): string; - write: boolean; + add: boolean; + create: boolean; + delete: boolean; + list: boolean; + static parse(permissions: string): ContainerSASPermissions; + read: boolean; + toString(): string; + write: boolean; } // @public export interface ContainerSetAccessPolicyHeaders { - clientRequestId?: string; - date?: Date; - // (undocumented) - errorCode?: string; - etag?: string; - lastModified?: Date; - requestId?: string; - version?: string; + clientRequestId?: string; + date?: Date; + // (undocumented) + errorCode?: string; + etag?: string; + lastModified?: Date; + requestId?: string; + version?: string; } // @public export interface ContainerSetAccessPolicyOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - conditions?: BlobRequestConditions; + abortSignal?: AbortSignalLike; + conditions?: BlobRequestConditions; } // @public export type ContainerSetAccessPolicyResponse = ContainerSetAccessPolicyHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: ContainerSetAccessPolicyHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: ContainerSetAccessPolicyHeaders; + }; }; // @public export interface ContainerSetMetadataHeaders { - clientRequestId?: string; - date?: Date; - // (undocumented) - errorCode?: string; - etag?: string; - lastModified?: Date; - requestId?: string; - version?: string; + clientRequestId?: string; + date?: Date; + // (undocumented) + errorCode?: string; + etag?: string; + lastModified?: Date; + requestId?: string; + version?: string; } // @public export interface ContainerSetMetadataOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - conditions?: BlobRequestConditions; + abortSignal?: AbortSignalLike; + conditions?: BlobRequestConditions; } // @public export type ContainerSetMetadataResponse = ContainerSetMetadataHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: ContainerSetMetadataHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: ContainerSetMetadataHeaders; + }; }; // @public export type CopyPollerBlobClient = Pick & { - startCopyFromURL( - copySource: string, - options?: BlobStartCopyFromURLOptions - ): Promise; + startCopyFromURL(copySource: string, options?: BlobStartCopyFromURLOptions): Promise; }; // @public -export type CopyStatusType = "pending" | "success" | "aborted" | "failed"; +export type CopyStatusType = 'pending' | 'success' | 'aborted' | 'failed'; // @public export interface CorsRule { - allowedHeaders: string; - allowedMethods: string; - allowedOrigins: string; - exposedHeaders: string; - maxAgeInSeconds: number; + allowedHeaders: string; + allowedMethods: string; + allowedOrigins: string; + exposedHeaders: string; + maxAgeInSeconds: number; } // @public export interface CpkInfo { - encryptionAlgorithm?: EncryptionAlgorithmType; - encryptionKey?: string; - encryptionKeySha256?: string; + encryptionAlgorithm?: EncryptionAlgorithmType; + encryptionKey?: string; + encryptionKeySha256?: string; } // @public export abstract class Credential implements RequestPolicyFactory { - create(_nextPolicy: RequestPolicy, _options: RequestPolicyOptions): RequestPolicy; + create(_nextPolicy: RequestPolicy, _options: RequestPolicyOptions): RequestPolicy; } // @public export abstract class CredentialPolicy extends BaseRequestPolicy { - sendRequest(request: WebResource): Promise; - protected signRequest(request: WebResource): WebResource; + sendRequest(request: WebResource): Promise; + protected signRequest(request: WebResource): WebResource; } // @public -export type CredentialPolicyCreator = ( - nextPolicy: RequestPolicy, - options: RequestPolicyOptions -) => CredentialPolicy; +export type CredentialPolicyCreator = (nextPolicy: RequestPolicy, options: RequestPolicyOptions) => CredentialPolicy; // @public -export type DeleteSnapshotsOptionType = "include" | "only"; +export type DeleteSnapshotsOptionType = 'include' | 'only'; -export { deserializationPolicy }; +export { deserializationPolicy } // @public -export type EncryptionAlgorithmType = "AES256"; +export type EncryptionAlgorithmType = 'AES256'; // @public -export function generateAccountSASQueryParameters( - accountSASSignatureValues: AccountSASSignatureValues, - sharedKeyCredential: StorageSharedKeyCredential -): SASQueryParameters; +export function generateAccountSASQueryParameters(accountSASSignatureValues: AccountSASSignatureValues, sharedKeyCredential: StorageSharedKeyCredential): SASQueryParameters; // @public -export function generateBlobSASQueryParameters( - blobSASSignatureValues: BlobSASSignatureValues, - sharedKeyCredential: StorageSharedKeyCredential -): SASQueryParameters; +export function generateBlobSASQueryParameters(blobSASSignatureValues: BlobSASSignatureValues, sharedKeyCredential: StorageSharedKeyCredential): SASQueryParameters; // @public -export function generateBlobSASQueryParameters( - blobSASSignatureValues: BlobSASSignatureValues, - userDelegationKey: UserDelegationKey, - accountName: string -): SASQueryParameters; +export function generateBlobSASQueryParameters(blobSASSignatureValues: BlobSASSignatureValues, userDelegationKey: UserDelegationKey, accountName: string): SASQueryParameters; // @public export interface GeoReplication { - lastSyncOn: Date; - status: GeoReplicationStatusType; + lastSyncOn: Date; + status: GeoReplicationStatusType; } // @public -export type GeoReplicationStatusType = "live" | "bootstrap" | "unavailable"; +export type GeoReplicationStatusType = 'live' | 'bootstrap' | 'unavailable'; -export { HttpHeaders }; +export { HttpHeaders } -export { HttpOperationResponse }; +export { HttpOperationResponse } -export { HttpRequestBody }; +export { HttpRequestBody } -export { IHttpClient }; +export { IHttpClient } // @public export interface Lease { - date?: Date; - errorCode?: string; - etag?: string; - lastModified?: Date; - leaseId?: string; - leaseTime?: number; - requestId?: string; - version?: string; + date?: Date; + errorCode?: string; + etag?: string; + lastModified?: Date; + leaseId?: string; + leaseTime?: number; + requestId?: string; + version?: string; } // @public export interface LeaseAccessConditions { - leaseId?: string; + leaseId?: string; } // @public -export type LeaseDurationType = "infinite" | "fixed"; +export type LeaseDurationType = 'infinite' | 'fixed'; // @public export interface LeaseOperationOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - conditions?: ModifiedAccessConditions; + abortSignal?: AbortSignalLike; + conditions?: ModifiedAccessConditions; } // @public export type LeaseOperationResponse = Lease & { - _response: HttpResponse & { - parsedHeaders: Lease; - }; + _response: HttpResponse & { + parsedHeaders: Lease; + }; }; // @public -export type LeaseStateType = "available" | "leased" | "expired" | "breaking" | "broken"; +export type LeaseStateType = 'available' | 'leased' | 'expired' | 'breaking' | 'broken'; // @public -export type LeaseStatusType = "locked" | "unlocked"; +export type LeaseStatusType = 'locked' | 'unlocked'; // @public export interface ListBlobsFlatSegmentResponse { - // (undocumented) - containerName: string; - // (undocumented) - continuationToken?: string; - // (undocumented) - marker?: string; - // (undocumented) - maxPageSize?: number; - // (undocumented) - prefix?: string; - // (undocumented) - segment: BlobFlatListSegment; - // (undocumented) - serviceEndpoint: string; + // (undocumented) + containerName: string; + // (undocumented) + continuationToken?: string; + // (undocumented) + marker?: string; + // (undocumented) + maxPageSize?: number; + // (undocumented) + prefix?: string; + // (undocumented) + segment: BlobFlatListSegment; + // (undocumented) + serviceEndpoint: string; } // @public export interface ListBlobsHierarchySegmentResponse { - // (undocumented) - containerName: string; - // (undocumented) - continuationToken?: string; - // (undocumented) - delimiter?: string; - // (undocumented) - marker?: string; - // (undocumented) - maxPageSize?: number; - // (undocumented) - prefix?: string; - // (undocumented) - segment: BlobHierarchyListSegment; - // (undocumented) - serviceEndpoint: string; + // (undocumented) + containerName: string; + // (undocumented) + continuationToken?: string; + // (undocumented) + delimiter?: string; + // (undocumented) + marker?: string; + // (undocumented) + maxPageSize?: number; + // (undocumented) + prefix?: string; + // (undocumented) + segment: BlobHierarchyListSegment; + // (undocumented) + serviceEndpoint: string; } // @public -export type ListBlobsIncludeItem = - | "copy" - | "deleted" - | "metadata" - | "snapshots" - | "uncommittedblobs"; +export type ListBlobsIncludeItem = 'copy' | 'deleted' | 'metadata' | 'snapshots' | 'uncommittedblobs'; // @public -export type ListContainersIncludeType = "metadata"; +export type ListContainersIncludeType = 'metadata'; // @public export interface ListContainersSegmentResponse { - // (undocumented) - containerItems: ContainerItem[]; - // (undocumented) - continuationToken?: string; - // (undocumented) - marker?: string; - // (undocumented) - maxPageSize?: number; - // (undocumented) - prefix?: string; - // (undocumented) - serviceEndpoint: string; + // (undocumented) + containerItems: ContainerItem[]; + // (undocumented) + continuationToken?: string; + // (undocumented) + marker?: string; + // (undocumented) + maxPageSize?: number; + // (undocumented) + prefix?: string; + // (undocumented) + serviceEndpoint: string; } // @public @@ -1955,729 +1721,651 @@ export const logger: import("@azure/logger").AzureLogger; // @public export interface Logging { - deleteProperty: boolean; - read: boolean; - // (undocumented) - retentionPolicy: RetentionPolicy; - version: string; - write: boolean; + deleteProperty: boolean; + read: boolean; + // (undocumented) + retentionPolicy: RetentionPolicy; + version: string; + write: boolean; } // @public export interface Metadata { - [propertyName: string]: string; + [propertyName: string]: string; } // @public export interface Metrics { - enabled: boolean; - includeAPIs?: boolean; - // (undocumented) - retentionPolicy?: RetentionPolicy; - version?: string; + enabled: boolean; + includeAPIs?: boolean; + // (undocumented) + retentionPolicy?: RetentionPolicy; + version?: string; } // @public export interface ModifiedAccessConditions { - ifMatch?: string; - ifModifiedSince?: Date; - ifNoneMatch?: string; - ifUnmodifiedSince?: Date; + ifMatch?: string; + ifModifiedSince?: Date; + ifNoneMatch?: string; + ifUnmodifiedSince?: Date; } // @public -export function newPipeline( - credential: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, - pipelineOptions?: StoragePipelineOptions -): Pipeline; +export function newPipeline(credential: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, pipelineOptions?: StoragePipelineOptions): Pipeline; // @public export interface PageBlobClearPagesHeaders { - blobSequenceNumber?: number; - clientRequestId?: string; - contentMD5?: Uint8Array; - date?: Date; - // (undocumented) - errorCode?: string; - etag?: string; - lastModified?: Date; - requestId?: string; - version?: string; - xMsContentCrc64?: Uint8Array; + blobSequenceNumber?: number; + clientRequestId?: string; + contentMD5?: Uint8Array; + date?: Date; + // (undocumented) + errorCode?: string; + etag?: string; + lastModified?: Date; + requestId?: string; + version?: string; + xMsContentCrc64?: Uint8Array; } // @public export interface PageBlobClearPagesOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - conditions?: PageBlobRequestConditions; - customerProvidedKey?: CpkInfo; - encryptionScope?: string; + abortSignal?: AbortSignalLike; + conditions?: PageBlobRequestConditions; + customerProvidedKey?: CpkInfo; + encryptionScope?: string; } // @public export type PageBlobClearPagesResponse = PageBlobClearPagesHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: PageBlobClearPagesHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: PageBlobClearPagesHeaders; + }; }; // @public export class PageBlobClient extends BlobClient { - constructor( - connectionString: string, - containerName: string, - blobName: string, - options?: StoragePipelineOptions - ); - constructor( - url: string, - credential: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, - options?: StoragePipelineOptions - ); - constructor(url: string, pipeline: Pipeline); - clearPages( - offset?: number, - count?: number, - options?: PageBlobClearPagesOptions - ): Promise; - create(size: number, options?: PageBlobCreateOptions): Promise; - getPageRanges( - offset?: number, - count?: number, - options?: PageBlobGetPageRangesOptions - ): Promise; - getPageRangesDiff( - offset: number, - count: number, - prevSnapshot: string, - options?: PageBlobGetPageRangesDiffOptions - ): Promise; - getPageRangesDiffForManagedDisks( - offset: number, - count: number, - prevSnapshotUrl: string, - options?: PageBlobGetPageRangesDiffOptions - ): Promise; - resize(size: number, options?: PageBlobResizeOptions): Promise; - startCopyIncremental( - copySource: string, - options?: PageBlobStartCopyIncrementalOptions - ): Promise; - updateSequenceNumber( - sequenceNumberAction: SequenceNumberActionType, - sequenceNumber?: number, - options?: PageBlobUpdateSequenceNumberOptions - ): Promise; - uploadPages( - body: HttpRequestBody, - offset: number, - count: number, - options?: PageBlobUploadPagesOptions - ): Promise; - uploadPagesFromURL( - sourceURL: string, - sourceOffset: number, - destOffset: number, - count: number, - options?: PageBlobUploadPagesFromURLOptions - ): Promise; - withSnapshot(snapshot: string): PageBlobClient; + constructor(connectionString: string, containerName: string, blobName: string, options?: StoragePipelineOptions); + constructor(url: string, credential: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, options?: StoragePipelineOptions); + constructor(url: string, pipeline: Pipeline); + clearPages(offset?: number, count?: number, options?: PageBlobClearPagesOptions): Promise; + create(size: number, options?: PageBlobCreateOptions): Promise; + getPageRanges(offset?: number, count?: number, options?: PageBlobGetPageRangesOptions): Promise; + getPageRangesDiff(offset: number, count: number, prevSnapshot: string, options?: PageBlobGetPageRangesDiffOptions): Promise; + getPageRangesDiffForManagedDisks(offset: number, count: number, prevSnapshotUrl: string, options?: PageBlobGetPageRangesDiffOptions): Promise; + resize(size: number, options?: PageBlobResizeOptions): Promise; + startCopyIncremental(copySource: string, options?: PageBlobStartCopyIncrementalOptions): Promise; + updateSequenceNumber(sequenceNumberAction: SequenceNumberActionType, sequenceNumber?: number, options?: PageBlobUpdateSequenceNumberOptions): Promise; + uploadPages(body: HttpRequestBody, offset: number, count: number, options?: PageBlobUploadPagesOptions): Promise; + uploadPagesFromURL(sourceURL: string, sourceOffset: number, destOffset: number, count: number, options?: PageBlobUploadPagesFromURLOptions): Promise; + withSnapshot(snapshot: string): PageBlobClient; } // @public export interface PageBlobCopyIncrementalHeaders { - clientRequestId?: string; - copyId?: string; - copyStatus?: CopyStatusType; - date?: Date; - // (undocumented) - errorCode?: string; - etag?: string; - lastModified?: Date; - requestId?: string; - version?: string; + clientRequestId?: string; + copyId?: string; + copyStatus?: CopyStatusType; + date?: Date; + // (undocumented) + errorCode?: string; + etag?: string; + lastModified?: Date; + requestId?: string; + version?: string; } // @public export type PageBlobCopyIncrementalResponse = PageBlobCopyIncrementalHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: PageBlobCopyIncrementalHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: PageBlobCopyIncrementalHeaders; + }; }; // @public export interface PageBlobCreateHeaders { - clientRequestId?: string; - contentMD5?: Uint8Array; - date?: Date; - encryptionKeySha256?: string; - encryptionScope?: string; - // (undocumented) - errorCode?: string; - etag?: string; - isServerEncrypted?: boolean; - lastModified?: Date; - requestId?: string; - version?: string; + clientRequestId?: string; + contentMD5?: Uint8Array; + date?: Date; + encryptionKeySha256?: string; + encryptionScope?: string; + // (undocumented) + errorCode?: string; + etag?: string; + isServerEncrypted?: boolean; + lastModified?: Date; + requestId?: string; + version?: string; } // @public export interface PageBlobCreateOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - blobHTTPHeaders?: BlobHTTPHeaders; - blobSequenceNumber?: number; - conditions?: BlobRequestConditions; - customerProvidedKey?: CpkInfo; - encryptionScope?: string; - metadata?: Metadata; - tier?: PremiumPageBlobTier | string; + abortSignal?: AbortSignalLike; + blobHTTPHeaders?: BlobHTTPHeaders; + blobSequenceNumber?: number; + conditions?: BlobRequestConditions; + customerProvidedKey?: CpkInfo; + encryptionScope?: string; + metadata?: Metadata; + tier?: PremiumPageBlobTier | string; } // @public export type PageBlobCreateResponse = PageBlobCreateHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: PageBlobCreateHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: PageBlobCreateHeaders; + }; }; // @public export interface PageBlobGetPageRangesDiffHeaders { - blobContentLength?: number; - clientRequestId?: string; - date?: Date; - // (undocumented) - errorCode?: string; - etag?: string; - lastModified?: Date; - requestId?: string; - version?: string; + blobContentLength?: number; + clientRequestId?: string; + date?: Date; + // (undocumented) + errorCode?: string; + etag?: string; + lastModified?: Date; + requestId?: string; + version?: string; } // @public export interface PageBlobGetPageRangesDiffOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - conditions?: BlobRequestConditions; - range?: string; + abortSignal?: AbortSignalLike; + conditions?: BlobRequestConditions; + range?: string; } // @public -export interface PageBlobGetPageRangesDiffResponse - extends PageList, - PageBlobGetPageRangesDiffHeaders { - _response: HttpResponse & { - parsedHeaders: PageBlobGetPageRangesDiffHeaders; - bodyAsText: string; - parsedBody: PageList; - }; +export interface PageBlobGetPageRangesDiffResponse extends PageList, PageBlobGetPageRangesDiffHeaders { + _response: HttpResponse & { + parsedHeaders: PageBlobGetPageRangesDiffHeaders; + bodyAsText: string; + parsedBody: PageList; + }; } // @public export interface PageBlobGetPageRangesHeaders { - blobContentLength?: number; - clientRequestId?: string; - date?: Date; - // (undocumented) - errorCode?: string; - etag?: string; - lastModified?: Date; - requestId?: string; - version?: string; + blobContentLength?: number; + clientRequestId?: string; + date?: Date; + // (undocumented) + errorCode?: string; + etag?: string; + lastModified?: Date; + requestId?: string; + version?: string; } // @public export interface PageBlobGetPageRangesOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - conditions?: BlobRequestConditions; + abortSignal?: AbortSignalLike; + conditions?: BlobRequestConditions; } // @public export interface PageBlobGetPageRangesResponse extends PageList, PageBlobGetPageRangesHeaders { - _response: HttpResponse & { - parsedHeaders: PageBlobGetPageRangesHeaders; - bodyAsText: string; - parsedBody: PageList; - }; + _response: HttpResponse & { + parsedHeaders: PageBlobGetPageRangesHeaders; + bodyAsText: string; + parsedBody: PageList; + }; } // @public -export interface PageBlobRequestConditions - extends BlobRequestConditions, - SequenceNumberAccessConditions {} +export interface PageBlobRequestConditions extends BlobRequestConditions, SequenceNumberAccessConditions { +} // @public export interface PageBlobResizeHeaders { - blobSequenceNumber?: number; - clientRequestId?: string; - date?: Date; - // (undocumented) - errorCode?: string; - etag?: string; - lastModified?: Date; - requestId?: string; - version?: string; + blobSequenceNumber?: number; + clientRequestId?: string; + date?: Date; + // (undocumented) + errorCode?: string; + etag?: string; + lastModified?: Date; + requestId?: string; + version?: string; } // @public export interface PageBlobResizeOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - conditions?: BlobRequestConditions; - encryptionScope?: string; + abortSignal?: AbortSignalLike; + conditions?: BlobRequestConditions; + encryptionScope?: string; } // @public export type PageBlobResizeResponse = PageBlobResizeHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: PageBlobResizeHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: PageBlobResizeHeaders; + }; }; // @public export interface PageBlobStartCopyIncrementalOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - conditions?: ModifiedAccessConditions; + abortSignal?: AbortSignalLike; + conditions?: ModifiedAccessConditions; } // @public export interface PageBlobUpdateSequenceNumberHeaders { - blobSequenceNumber?: number; - clientRequestId?: string; - date?: Date; - // (undocumented) - errorCode?: string; - etag?: string; - lastModified?: Date; - requestId?: string; - version?: string; + blobSequenceNumber?: number; + clientRequestId?: string; + date?: Date; + // (undocumented) + errorCode?: string; + etag?: string; + lastModified?: Date; + requestId?: string; + version?: string; } // @public export interface PageBlobUpdateSequenceNumberOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - conditions?: BlobRequestConditions; + abortSignal?: AbortSignalLike; + conditions?: BlobRequestConditions; } // @public export type PageBlobUpdateSequenceNumberResponse = PageBlobUpdateSequenceNumberHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: PageBlobUpdateSequenceNumberHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: PageBlobUpdateSequenceNumberHeaders; + }; }; // @public export interface PageBlobUploadPagesFromURLHeaders { - blobSequenceNumber?: number; - contentMD5?: Uint8Array; - date?: Date; - encryptionKeySha256?: string; - encryptionScope?: string; - // (undocumented) - errorCode?: string; - etag?: string; - isServerEncrypted?: boolean; - lastModified?: Date; - requestId?: string; - version?: string; - xMsContentCrc64?: Uint8Array; + blobSequenceNumber?: number; + contentMD5?: Uint8Array; + date?: Date; + encryptionKeySha256?: string; + encryptionScope?: string; + // (undocumented) + errorCode?: string; + etag?: string; + isServerEncrypted?: boolean; + lastModified?: Date; + requestId?: string; + version?: string; + xMsContentCrc64?: Uint8Array; } // @public export interface PageBlobUploadPagesFromURLOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - conditions?: PageBlobRequestConditions; - customerProvidedKey?: CpkInfo; - encryptionScope?: string; - sourceConditions?: ModifiedAccessConditions; - sourceContentCrc64?: Uint8Array; - sourceContentMD5?: Uint8Array; + abortSignal?: AbortSignalLike; + conditions?: PageBlobRequestConditions; + customerProvidedKey?: CpkInfo; + encryptionScope?: string; + sourceConditions?: ModifiedAccessConditions; + sourceContentCrc64?: Uint8Array; + sourceContentMD5?: Uint8Array; } // @public export type PageBlobUploadPagesFromURLResponse = PageBlobUploadPagesFromURLHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: PageBlobUploadPagesFromURLHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: PageBlobUploadPagesFromURLHeaders; + }; }; // @public export interface PageBlobUploadPagesHeaders { - blobSequenceNumber?: number; - clientRequestId?: string; - contentMD5?: Uint8Array; - date?: Date; - encryptionKeySha256?: string; - encryptionScope?: string; - // (undocumented) - errorCode?: string; - etag?: string; - isServerEncrypted?: boolean; - lastModified?: Date; - requestId?: string; - version?: string; - xMsContentCrc64?: Uint8Array; + blobSequenceNumber?: number; + clientRequestId?: string; + contentMD5?: Uint8Array; + date?: Date; + encryptionKeySha256?: string; + encryptionScope?: string; + // (undocumented) + errorCode?: string; + etag?: string; + isServerEncrypted?: boolean; + lastModified?: Date; + requestId?: string; + version?: string; + xMsContentCrc64?: Uint8Array; } // @public export interface PageBlobUploadPagesOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - conditions?: PageBlobRequestConditions; - customerProvidedKey?: CpkInfo; - encryptionScope?: string; - onProgress?: (progress: TransferProgressEvent) => void; - transactionalContentCrc64?: Uint8Array; - transactionalContentMD5?: Uint8Array; + abortSignal?: AbortSignalLike; + conditions?: PageBlobRequestConditions; + customerProvidedKey?: CpkInfo; + encryptionScope?: string; + onProgress?: (progress: TransferProgressEvent) => void; + transactionalContentCrc64?: Uint8Array; + transactionalContentMD5?: Uint8Array; } // @public export type PageBlobUploadPagesResponse = PageBlobUploadPagesHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: PageBlobUploadPagesHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: PageBlobUploadPagesHeaders; + }; }; // @public export interface PageList { - clearRange?: Range[]; - pageRange?: Range[]; + clearRange?: Range[]; + pageRange?: Range[]; } // @public export interface ParsedBatchResponse { - subResponses: BatchSubResponse[]; - subResponsesFailedCount: number; - subResponsesSucceededCount: number; + subResponses: BatchSubResponse[]; + subResponsesFailedCount: number; + subResponsesSucceededCount: number; } // @public export class Pipeline { - constructor(factories: RequestPolicyFactory[], options?: PipelineOptions); - readonly factories: RequestPolicyFactory[]; - readonly options: PipelineOptions; - toServiceClientOptions(): ServiceClientOptions; + constructor(factories: RequestPolicyFactory[], options?: PipelineOptions); + readonly factories: RequestPolicyFactory[]; + readonly options: PipelineOptions; + toServiceClientOptions(): ServiceClientOptions; } // @public export interface PipelineOptions { - httpClient?: IHttpClient; + httpClient?: IHttpClient; } -export { PollerLike }; +export { PollerLike } -export { PollOperationState }; +export { PollOperationState } // @public export enum PremiumPageBlobTier { - P10 = "P10", - P15 = "P15", - P20 = "P20", - P30 = "P30", - P4 = "P4", - P40 = "P40", - P50 = "P50", - P6 = "P6", - P60 = "P60", - P70 = "P70", - P80 = "P80" + P10 = "P10", + P15 = "P15", + P20 = "P20", + P30 = "P30", + P4 = "P4", + P40 = "P40", + P50 = "P50", + P6 = "P6", + P60 = "P60", + P70 = "P70", + P80 = "P80" } // @public -export type PublicAccessType = "container" | "blob"; +export type PublicAccessType = 'container' | 'blob'; // @public export interface Range { - count?: number; - offset: number; + count?: number; + offset: number; } // @public -export type RehydratePriority = "High" | "Standard"; +export type RehydratePriority = 'High' | 'Standard'; -export { RequestPolicy }; +export { RequestPolicy } -export { RequestPolicyFactory }; +export { RequestPolicyFactory } -export { RequestPolicyOptions }; +export { RequestPolicyOptions } -export { RestError }; +export { RestError } // @public export interface RetentionPolicy { - days?: number; - enabled: boolean; + days?: number; + enabled: boolean; } // @public export interface SasIPRange { - end?: string; - start: string; + end?: string; + start: string; } // @public export enum SASProtocol { - Https = "https", - HttpsAndHttp = "https,http" + Https = "https", + HttpsAndHttp = "https,http" } // @public export class SASQueryParameters { - constructor( - version: string, - signature: string, - permissions?: string, - services?: string, - resourceTypes?: string, - protocol?: SASProtocol, - startsOn?: Date, - expiresOn?: Date, - ipRange?: SasIPRange, - identifier?: string, - resource?: string, - cacheControl?: string, - contentDisposition?: string, - contentEncoding?: string, - contentLanguage?: string, - contentType?: string, - userDelegationKey?: UserDelegationKey - ); - readonly cacheControl?: string; - readonly contentDisposition?: string; - readonly contentEncoding?: string; - readonly contentLanguage?: string; - readonly contentType?: string; - readonly expiresOn?: Date; - readonly identifier?: string; - get ipRange(): SasIPRange | undefined; - readonly permissions?: string; - readonly protocol?: SASProtocol; - readonly resource?: string; - readonly resourceTypes?: string; - readonly services?: string; - readonly signature: string; - readonly startsOn?: Date; - toString(): string; - readonly version: string; + constructor(version: string, signature: string, permissions?: string, services?: string, resourceTypes?: string, protocol?: SASProtocol, startsOn?: Date, expiresOn?: Date, ipRange?: SasIPRange, identifier?: string, resource?: string, cacheControl?: string, contentDisposition?: string, contentEncoding?: string, contentLanguage?: string, contentType?: string, userDelegationKey?: UserDelegationKey); + readonly cacheControl?: string; + readonly contentDisposition?: string; + readonly contentEncoding?: string; + readonly contentLanguage?: string; + readonly contentType?: string; + readonly expiresOn?: Date; + readonly identifier?: string; + get ipRange(): SasIPRange | undefined; + readonly permissions?: string; + readonly protocol?: SASProtocol; + readonly resource?: string; + readonly resourceTypes?: string; + readonly services?: string; + readonly signature: string; + readonly startsOn?: Date; + toString(): string; + readonly version: string; } // @public export interface SequenceNumberAccessConditions { - ifSequenceNumberEqualTo?: number; - ifSequenceNumberLessThan?: number; - ifSequenceNumberLessThanOrEqualTo?: number; + ifSequenceNumberEqualTo?: number; + ifSequenceNumberLessThan?: number; + ifSequenceNumberLessThanOrEqualTo?: number; } // @public -export type SequenceNumberActionType = "max" | "update" | "increment"; +export type SequenceNumberActionType = 'max' | 'update' | 'increment'; // @public export interface ServiceGetAccountInfoHeaders { - accountKind?: AccountKind; - clientRequestId?: string; - date?: Date; - // (undocumented) - errorCode?: string; - requestId?: string; - skuName?: SkuName; - version?: string; + accountKind?: AccountKind; + clientRequestId?: string; + date?: Date; + // (undocumented) + errorCode?: string; + requestId?: string; + skuName?: SkuName; + version?: string; } // @public export interface ServiceGetAccountInfoOptions extends CommonOptions { - abortSignal?: AbortSignalLike; + abortSignal?: AbortSignalLike; } // @public export type ServiceGetAccountInfoResponse = ServiceGetAccountInfoHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: ServiceGetAccountInfoHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: ServiceGetAccountInfoHeaders; + }; }; // @public export interface ServiceGetPropertiesHeaders { - clientRequestId?: string; - // (undocumented) - errorCode?: string; - requestId?: string; - version?: string; + clientRequestId?: string; + // (undocumented) + errorCode?: string; + requestId?: string; + version?: string; } // @public export interface ServiceGetPropertiesOptions extends CommonOptions { - abortSignal?: AbortSignalLike; + abortSignal?: AbortSignalLike; } // @public -export type ServiceGetPropertiesResponse = BlobServiceProperties & - ServiceGetPropertiesHeaders & { +export type ServiceGetPropertiesResponse = BlobServiceProperties & ServiceGetPropertiesHeaders & { _response: coreHttp.HttpResponse & { - parsedHeaders: ServiceGetPropertiesHeaders; - bodyAsText: string; - parsedBody: BlobServiceProperties; + parsedHeaders: ServiceGetPropertiesHeaders; + bodyAsText: string; + parsedBody: BlobServiceProperties; }; - }; +}; // @public export interface ServiceGetStatisticsHeaders { - clientRequestId?: string; - date?: Date; - // (undocumented) - errorCode?: string; - requestId?: string; - version?: string; + clientRequestId?: string; + date?: Date; + // (undocumented) + errorCode?: string; + requestId?: string; + version?: string; } // @public export interface ServiceGetStatisticsOptions extends CommonOptions { - abortSignal?: AbortSignalLike; + abortSignal?: AbortSignalLike; } // @public -export type ServiceGetStatisticsResponse = BlobServiceStatistics & - ServiceGetStatisticsHeaders & { +export type ServiceGetStatisticsResponse = BlobServiceStatistics & ServiceGetStatisticsHeaders & { _response: coreHttp.HttpResponse & { - parsedHeaders: ServiceGetStatisticsHeaders; - bodyAsText: string; - parsedBody: BlobServiceStatistics; + parsedHeaders: ServiceGetStatisticsHeaders; + bodyAsText: string; + parsedBody: BlobServiceStatistics; }; - }; +}; // @public export interface ServiceGetUserDelegationKeyHeaders { - clientRequestId?: string; - date?: Date; - // (undocumented) - errorCode?: string; - requestId?: string; - version?: string; + clientRequestId?: string; + date?: Date; + // (undocumented) + errorCode?: string; + requestId?: string; + version?: string; } // @public export interface ServiceGetUserDelegationKeyOptions extends CommonOptions { - abortSignal?: AbortSignalLike; + abortSignal?: AbortSignalLike; } // @public -export type ServiceGetUserDelegationKeyResponse = UserDelegationKey & - ServiceGetUserDelegationKeyHeaders & { +export type ServiceGetUserDelegationKeyResponse = UserDelegationKey & ServiceGetUserDelegationKeyHeaders & { _response: HttpResponse & { - parsedHeaders: ServiceGetUserDelegationKeyHeaders; - bodyAsText: string; - parsedBody: UserDelegationKeyModel; + parsedHeaders: ServiceGetUserDelegationKeyHeaders; + bodyAsText: string; + parsedBody: UserDelegationKeyModel; }; - }; +}; // @public export interface ServiceListContainersOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - includeMetadata?: boolean; - prefix?: string; + abortSignal?: AbortSignalLike; + includeMetadata?: boolean; + prefix?: string; } // @public export interface ServiceListContainersSegmentHeaders { - clientRequestId?: string; - // (undocumented) - errorCode?: string; - requestId?: string; - version?: string; + clientRequestId?: string; + // (undocumented) + errorCode?: string; + requestId?: string; + version?: string; } // @public -export type ServiceListContainersSegmentResponse = ListContainersSegmentResponse & - ServiceListContainersSegmentHeaders & { +export type ServiceListContainersSegmentResponse = ListContainersSegmentResponse & ServiceListContainersSegmentHeaders & { _response: coreHttp.HttpResponse & { - parsedHeaders: ServiceListContainersSegmentHeaders; - bodyAsText: string; - parsedBody: ListContainersSegmentResponse; + parsedHeaders: ServiceListContainersSegmentHeaders; + bodyAsText: string; + parsedBody: ListContainersSegmentResponse; }; - }; +}; // @public export interface ServiceSetPropertiesHeaders { - clientRequestId?: string; - // (undocumented) - errorCode?: string; - requestId?: string; - version?: string; + clientRequestId?: string; + // (undocumented) + errorCode?: string; + requestId?: string; + version?: string; } // @public export interface ServiceSetPropertiesOptions extends CommonOptions { - abortSignal?: AbortSignalLike; + abortSignal?: AbortSignalLike; } // @public export type ServiceSetPropertiesResponse = ServiceSetPropertiesHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: ServiceSetPropertiesHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: ServiceSetPropertiesHeaders; + }; }; // @public export interface ServiceSubmitBatchHeaders { - clientRequestId?: string; - contentType?: string; - // (undocumented) - errorCode?: string; - requestId?: string; - version?: string; + clientRequestId?: string; + contentType?: string; + // (undocumented) + errorCode?: string; + requestId?: string; + version?: string; } // @public export interface ServiceSubmitBatchOptionalParamsModel extends coreHttp.RequestOptionsBase { - requestId?: string; - timeoutInSeconds?: number; + requestId?: string; + timeoutInSeconds?: number; } // @public export type ServiceSubmitBatchResponseModel = ServiceSubmitBatchHeaders & { - blobBody?: Promise; - readableStreamBody?: NodeJS.ReadableStream; - _response: coreHttp.HttpResponse & { - parsedHeaders: ServiceSubmitBatchHeaders; - }; + blobBody?: Promise; + readableStreamBody?: NodeJS.ReadableStream; + _response: coreHttp.HttpResponse & { + parsedHeaders: ServiceSubmitBatchHeaders; + }; }; // @public export interface SignedIdentifier { - accessPolicy: { - startsOn?: Date; - expiresOn?: Date; - permissions?: string; - }; - id: string; + accessPolicy: { + startsOn?: Date; + expiresOn?: Date; + permissions?: string; + }; + id: string; } // @public export interface SignedIdentifierModel { - // (undocumented) - accessPolicy: AccessPolicy; - id: string; + // (undocumented) + accessPolicy: AccessPolicy; + id: string; } // @public -export type SkuName = - | "Standard_LRS" - | "Standard_GRS" - | "Standard_RAGRS" - | "Standard_ZRS" - | "Premium_LRS"; +export type SkuName = 'Standard_LRS' | 'Standard_GRS' | 'Standard_RAGRS' | 'Standard_ZRS' | 'Premium_LRS'; // @public export interface StaticWebsite { - enabled: boolean; - errorDocument404Path?: string; - indexDocument?: string; + enabled: boolean; + errorDocument404Path?: string; + indexDocument?: string; } // @public export class StorageBrowserPolicy extends BaseRequestPolicy { - constructor(nextPolicy: RequestPolicy, options: RequestPolicyOptions); - sendRequest(request: WebResource): Promise; + constructor(nextPolicy: RequestPolicy, options: RequestPolicyOptions); + sendRequest(request: WebResource): Promise; } // @public export class StorageBrowserPolicyFactory implements RequestPolicyFactory { - create(nextPolicy: RequestPolicy, options: RequestPolicyOptions): StorageBrowserPolicy; + create(nextPolicy: RequestPolicy, options: RequestPolicyOptions): StorageBrowserPolicy; } // @public @@ -2685,103 +2373,85 @@ export const StorageOAuthScopes: string | string[]; // @public export interface StoragePipelineOptions { - httpClient?: IHttpClient; - keepAliveOptions?: KeepAliveOptions; - proxyOptions?: ProxyOptions; - retryOptions?: StorageRetryOptions; - userAgentOptions?: UserAgentOptions; + httpClient?: IHttpClient; + keepAliveOptions?: KeepAliveOptions; + proxyOptions?: ProxyOptions; + retryOptions?: StorageRetryOptions; + userAgentOptions?: UserAgentOptions; } // @public export interface StorageRetryOptions { - readonly maxRetryDelayInMs?: number; - readonly maxTries?: number; - readonly retryDelayInMs?: number; - readonly retryPolicyType?: StorageRetryPolicyType; - readonly secondaryHost?: string; - readonly tryTimeoutInMs?: number; + readonly maxRetryDelayInMs?: number; + readonly maxTries?: number; + readonly retryDelayInMs?: number; + readonly retryPolicyType?: StorageRetryPolicyType; + readonly secondaryHost?: string; + readonly tryTimeoutInMs?: number; } // @public export class StorageRetryPolicy extends BaseRequestPolicy { - constructor( - nextPolicy: RequestPolicy, - options: RequestPolicyOptions, - retryOptions?: StorageRetryOptions - ); - protected attemptSendRequest( - request: WebResource, - secondaryHas404: boolean, - attempt: number - ): Promise; - sendRequest(request: WebResource): Promise; - protected shouldRetry( - isPrimaryRetry: boolean, - attempt: number, - response?: HttpOperationResponse, - err?: RestError - ): boolean; + constructor(nextPolicy: RequestPolicy, options: RequestPolicyOptions, retryOptions?: StorageRetryOptions); + protected attemptSendRequest(request: WebResource, secondaryHas404: boolean, attempt: number): Promise; + sendRequest(request: WebResource): Promise; + protected shouldRetry(isPrimaryRetry: boolean, attempt: number, response?: HttpOperationResponse, err?: RestError): boolean; } // @public export class StorageRetryPolicyFactory implements RequestPolicyFactory { - constructor(retryOptions?: StorageRetryOptions); - create(nextPolicy: RequestPolicy, options: RequestPolicyOptions): StorageRetryPolicy; -} + constructor(retryOptions?: StorageRetryOptions); + create(nextPolicy: RequestPolicy, options: RequestPolicyOptions): StorageRetryPolicy; + } // @public export enum StorageRetryPolicyType { - EXPONENTIAL = 0, - FIXED = 1 + EXPONENTIAL = 0, + FIXED = 1 } // @public export class StorageSharedKeyCredential extends Credential { - constructor(accountName: string, accountKey: string); - readonly accountName: string; - computeHMACSHA256(stringToSign: string): string; - create( - nextPolicy: RequestPolicy, - options: RequestPolicyOptions - ): StorageSharedKeyCredentialPolicy; + constructor(accountName: string, accountKey: string); + readonly accountName: string; + computeHMACSHA256(stringToSign: string): string; + create(nextPolicy: RequestPolicy, options: RequestPolicyOptions): StorageSharedKeyCredentialPolicy; } // @public export class StorageSharedKeyCredentialPolicy extends CredentialPolicy { - constructor( - nextPolicy: RequestPolicy, - options: RequestPolicyOptions, - factory: StorageSharedKeyCredential - ); - protected signRequest(request: WebResource): WebResource; + constructor(nextPolicy: RequestPolicy, options: RequestPolicyOptions, factory: StorageSharedKeyCredential); + protected signRequest(request: WebResource): WebResource; } // @public -export type SyncCopyStatusType = "success"; +export type SyncCopyStatusType = 'success'; // @public export interface UserDelegationKey { - signedExpiresOn: Date; - signedObjectId: string; - signedService: string; - signedStartsOn: Date; - signedTenantId: string; - signedVersion: string; - value: string; + signedExpiresOn: Date; + signedObjectId: string; + signedService: string; + signedStartsOn: Date; + signedTenantId: string; + signedVersion: string; + value: string; } // @public export interface UserDelegationKeyModel { - signedExpiresOn: string; - signedObjectId: string; - signedService: string; - signedStartsOn: string; - signedTenantId: string; - signedVersion: string; - value: string; + signedExpiresOn: string; + signedObjectId: string; + signedService: string; + signedStartsOn: string; + signedTenantId: string; + signedVersion: string; + value: string; } -export { WebResource }; +export { WebResource } + // (No @packageDocumentation comment for this package) + ``` diff --git a/sdk/storage/storage-file-datalake/review/storage-file-datalake.api.md b/sdk/storage/storage-file-datalake/review/storage-file-datalake.api.md index 993d9ce2000a..063b97d97cd8 100644 --- a/sdk/storage/storage-file-datalake/review/storage-file-datalake.api.md +++ b/sdk/storage/storage-file-datalake/review/storage-file-datalake.api.md @@ -3,112 +3,113 @@ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). ```ts -import { AbortSignalLike } from "@azure/abort-controller"; -import { BaseRequestPolicy } from "@azure/core-http"; -import { BlobLeaseClient } from "@azure/storage-blob"; -import * as coreHttp from "@azure/core-http"; -import { deserializationPolicy } from "@azure/core-http"; -import { HttpHeaders } from "@azure/core-http"; -import { HttpOperationResponse } from "@azure/core-http"; -import { HttpRequestBody } from "@azure/core-http"; -import { HttpResponse } from "@azure/core-http"; -import { HttpClient as IHttpClient } from "@azure/core-http"; -import { KeepAliveOptions } from "@azure/core-http"; -import { Lease } from "@azure/storage-blob"; -import { LeaseAccessConditions } from "@azure/storage-blob"; -import { LeaseOperationOptions } from "@azure/storage-blob"; -import { LeaseOperationResponse } from "@azure/storage-blob"; -import { ModifiedAccessConditions } from "@azure/storage-blob"; -import { OperationTracingOptions } from "@azure/core-tracing"; -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { Pipeline as Pipeline_2 } from "@azure/storage-blob"; -import { ProxyOptions } from "@azure/core-http"; -import { Readable } from "stream"; -import { RequestPolicy } from "@azure/core-http"; -import { RequestPolicyFactory } from "@azure/core-http"; -import { RequestPolicyOptions } from "@azure/core-http"; -import { RestError } from "@azure/core-http"; -import { ServiceClientOptions } from "@azure/core-http"; -import { ServiceListContainersSegmentResponse } from "@azure/storage-blob"; -import { TokenCredential } from "@azure/core-http"; -import { TransferProgressEvent } from "@azure/core-http"; -import { UserAgentOptions } from "@azure/core-http"; -import { UserDelegationKeyModel } from "@azure/storage-blob"; -import { WebResource } from "@azure/core-http"; + +import { AbortSignalLike } from '@azure/abort-controller'; +import { BaseRequestPolicy } from '@azure/core-http'; +import { BlobLeaseClient } from '@azure/storage-blob'; +import * as coreHttp from '@azure/core-http'; +import { deserializationPolicy } from '@azure/core-http'; +import { HttpHeaders } from '@azure/core-http'; +import { HttpOperationResponse } from '@azure/core-http'; +import { HttpRequestBody } from '@azure/core-http'; +import { HttpResponse } from '@azure/core-http'; +import { HttpClient as IHttpClient } from '@azure/core-http'; +import { KeepAliveOptions } from '@azure/core-http'; +import { Lease } from '@azure/storage-blob'; +import { LeaseAccessConditions } from '@azure/storage-blob'; +import { LeaseOperationOptions } from '@azure/storage-blob'; +import { LeaseOperationResponse } from '@azure/storage-blob'; +import { ModifiedAccessConditions } from '@azure/storage-blob'; +import { OperationTracingOptions } from '@azure/core-tracing'; +import { PagedAsyncIterableIterator } from '@azure/core-paging'; +import { Pipeline as Pipeline_2 } from '@azure/storage-blob'; +import { ProxyOptions } from '@azure/core-http'; +import { Readable } from 'stream'; +import { RequestPolicy } from '@azure/core-http'; +import { RequestPolicyFactory } from '@azure/core-http'; +import { RequestPolicyOptions } from '@azure/core-http'; +import { RestError } from '@azure/core-http'; +import { ServiceClientOptions } from '@azure/core-http'; +import { ServiceListContainersSegmentResponse } from '@azure/storage-blob'; +import { TokenCredential } from '@azure/core-http'; +import { TransferProgressEvent } from '@azure/core-http'; +import { UserAgentOptions } from '@azure/core-http'; +import { UserDelegationKeyModel } from '@azure/storage-blob'; +import { WebResource } from '@azure/core-http'; // @public (undocumented) export type AccessControlType = "user" | "group" | "mask" | "other"; // @public (undocumented) export interface AccessPolicy { - // (undocumented) - expiresOn?: Date; - // (undocumented) - permissions: string; - // (undocumented) - startsOn?: Date; + // (undocumented) + expiresOn?: Date; + // (undocumented) + permissions: string; + // (undocumented) + startsOn?: Date; } // @public export class AccountSASPermissions { - add: boolean; - create: boolean; - delete: boolean; - list: boolean; - static parse(permissions: string): AccountSASPermissions; - process: boolean; - read: boolean; - toString(): string; - update: boolean; - write: boolean; + add: boolean; + create: boolean; + delete: boolean; + list: boolean; + static parse(permissions: string): AccountSASPermissions; + process: boolean; + read: boolean; + toString(): string; + update: boolean; + write: boolean; } // @public export class AccountSASResourceTypes { - container: boolean; - object: boolean; - static parse(resourceTypes: string): AccountSASResourceTypes; - service: boolean; - toString(): string; + container: boolean; + object: boolean; + static parse(resourceTypes: string): AccountSASResourceTypes; + service: boolean; + toString(): string; } // @public export class AccountSASServices { - blob: boolean; - file: boolean; - static parse(services: string): AccountSASServices; - queue: boolean; - table: boolean; - toString(): string; + blob: boolean; + file: boolean; + static parse(services: string): AccountSASServices; + queue: boolean; + table: boolean; + toString(): string; } // @public export interface AccountSASSignatureValues { - expiresOn: Date; - ipRange?: SasIPRange; - permissions: AccountSASPermissions; - protocol?: SASProtocol; - resourceTypes: string; - services: string; - startsOn?: Date; - version?: string; + expiresOn: Date; + ipRange?: SasIPRange; + permissions: AccountSASPermissions; + protocol?: SASProtocol; + resourceTypes: string; + services: string; + startsOn?: Date; + version?: string; } // @public export class AnonymousCredential extends Credential { - create(nextPolicy: RequestPolicy, options: RequestPolicyOptions): AnonymousCredentialPolicy; + create(nextPolicy: RequestPolicy, options: RequestPolicyOptions): AnonymousCredentialPolicy; } // @public export class AnonymousCredentialPolicy extends CredentialPolicy { - constructor(nextPolicy: RequestPolicy, options: RequestPolicyOptions); + constructor(nextPolicy: RequestPolicy, options: RequestPolicyOptions); } -export { BaseRequestPolicy }; +export { BaseRequestPolicy } // @public export interface CommonOptions { - tracingOptions?: OperationTracingOptions; + tracingOptions?: OperationTracingOptions; } // @public (undocumented) @@ -116,683 +117,602 @@ export type CopyStatusType = "pending" | "success" | "aborted" | "failed"; // @public export abstract class Credential implements RequestPolicyFactory { - create(_nextPolicy: RequestPolicy, _options: RequestPolicyOptions): RequestPolicy; + create(_nextPolicy: RequestPolicy, _options: RequestPolicyOptions): RequestPolicy; } // @public export abstract class CredentialPolicy extends BaseRequestPolicy { - sendRequest(request: WebResource): Promise; - protected signRequest(request: WebResource): WebResource; + sendRequest(request: WebResource): Promise; + protected signRequest(request: WebResource): WebResource; } // @public -export type CredentialPolicyCreator = ( - nextPolicy: RequestPolicy, - options: RequestPolicyOptions -) => CredentialPolicy; +export type CredentialPolicyCreator = (nextPolicy: RequestPolicy, options: RequestPolicyOptions) => CredentialPolicy; // @public export class DataLakeDirectoryClient extends DataLakePathClient { - create(resourceType: PathResourceType, options?: PathCreateOptions): Promise; - create(options?: DirectoryCreateOptions): Promise; - getFileClient(fileName: string): DataLakeFileClient; - getSubdirectoryClient(subdirectoryName: string): DataLakeDirectoryClient; + create(resourceType: PathResourceType, options?: PathCreateOptions): Promise; + create(options?: DirectoryCreateOptions): Promise; + getFileClient(fileName: string): DataLakeFileClient; + getSubdirectoryClient(subdirectoryName: string): DataLakeDirectoryClient; } // @public export class DataLakeFileClient extends DataLakePathClient { - constructor( - url: string, - credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, - options?: StoragePipelineOptions - ); - constructor(url: string, pipeline: Pipeline); - append( - body: HttpRequestBody, - offset: number, - length: number, - options?: FileAppendOptions - ): Promise; - create(resourceType: PathResourceType, options?: PathCreateOptions): Promise; - create(options?: FileCreateOptions): Promise; - flush(position: number, options?: FileFlushOptions): Promise; - read(offset?: number, count?: number, options?: FileReadOptions): Promise; - readToBuffer( - buffer: Buffer, - offset?: number, - count?: number, - options?: FileReadToBufferOptions - ): Promise; - readToBuffer(offset?: number, count?: number, options?: FileReadToBufferOptions): Promise; - readToFile( - filePath: string, - offset?: number, - count?: number, - options?: FileReadOptions - ): Promise; - upload( - data: Buffer | Blob | ArrayBuffer | ArrayBufferView, - options?: FileParallelUploadOptions - ): Promise; - uploadFile(filePath: string, options?: FileParallelUploadOptions): Promise; - uploadStream(stream: Readable, options?: FileParallelUploadOptions): Promise; + constructor(url: string, credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, options?: StoragePipelineOptions); + constructor(url: string, pipeline: Pipeline); + append(body: HttpRequestBody, offset: number, length: number, options?: FileAppendOptions): Promise; + create(resourceType: PathResourceType, options?: PathCreateOptions): Promise; + create(options?: FileCreateOptions): Promise; + flush(position: number, options?: FileFlushOptions): Promise; + read(offset?: number, count?: number, options?: FileReadOptions): Promise; + readToBuffer(buffer: Buffer, offset?: number, count?: number, options?: FileReadToBufferOptions): Promise; + readToBuffer(offset?: number, count?: number, options?: FileReadToBufferOptions): Promise; + readToFile(filePath: string, offset?: number, count?: number, options?: FileReadOptions): Promise; + upload(data: Buffer | Blob | ArrayBuffer | ArrayBufferView, options?: FileParallelUploadOptions): Promise; + uploadFile(filePath: string, options?: FileParallelUploadOptions): Promise; + uploadStream(stream: Readable, options?: FileParallelUploadOptions): Promise; } // Warning: (ae-forgotten-export) The symbol "StorageClient" needs to be exported by the entry point index.d.ts // // @public export class DataLakeFileSystemClient extends StorageClient { - constructor( - url: string, - credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, - options?: StoragePipelineOptions - ); - constructor(url: string, pipeline: Pipeline); - create(options?: FileSystemCreateOptions): Promise; - delete(options?: FileSystemDeleteOptions): Promise; - exists(options?: FileSystemExistsOptions): Promise; - getAccessPolicy( - options?: FileSystemGetAccessPolicyOptions - ): Promise; - getDataLakeLeaseClient(proposeLeaseId?: string): DataLakeLeaseClient; - getDirectoryClient(directoryName: string): DataLakeDirectoryClient; - getFileClient(fileName: string): DataLakeFileClient; - getProperties(options?: FileSystemGetPropertiesOptions): Promise; - listPaths( - options?: ListPathsOptions - ): PagedAsyncIterableIterator; - get name(): string; - setAccessPolicy( - access?: PublicAccessType, - fileSystemAcl?: SignedIdentifier[], - options?: FileSystemSetAccessPolicyOptions - ): Promise; - setMetadata( - metadata?: Metadata, - options?: FileSystemSetMetadataOptions - ): Promise; + constructor(url: string, credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, options?: StoragePipelineOptions); + constructor(url: string, pipeline: Pipeline); + create(options?: FileSystemCreateOptions): Promise; + delete(options?: FileSystemDeleteOptions): Promise; + exists(options?: FileSystemExistsOptions): Promise; + getAccessPolicy(options?: FileSystemGetAccessPolicyOptions): Promise; + getDataLakeLeaseClient(proposeLeaseId?: string): DataLakeLeaseClient; + getDirectoryClient(directoryName: string): DataLakeDirectoryClient; + getFileClient(fileName: string): DataLakeFileClient; + getProperties(options?: FileSystemGetPropertiesOptions): Promise; + listPaths(options?: ListPathsOptions): PagedAsyncIterableIterator; + get name(): string; + setAccessPolicy(access?: PublicAccessType, fileSystemAcl?: SignedIdentifier[], options?: FileSystemSetAccessPolicyOptions): Promise; + setMetadata(metadata?: Metadata, options?: FileSystemSetMetadataOptions): Promise; } // @public (undocumented) export class DataLakeLeaseClient { - constructor(client: BlobLeaseClient); - // (undocumented) - acquireLease(duration: number, options?: LeaseOperationOptions): Promise; - // (undocumented) - breakLease(breakPeriod: number, options?: LeaseOperationOptions): Promise; - // (undocumented) - changeLease( - proposedLeaseId: string, - options?: LeaseOperationOptions - ): Promise; - // (undocumented) - get leaseId(): string; - // (undocumented) - releaseLease(options?: LeaseOperationOptions): Promise; - // (undocumented) - renewLease(options?: LeaseOperationOptions): Promise; - // (undocumented) - get url(): string; + constructor(client: BlobLeaseClient); + // (undocumented) + acquireLease(duration: number, options?: LeaseOperationOptions): Promise; + // (undocumented) + breakLease(breakPeriod: number, options?: LeaseOperationOptions): Promise; + // (undocumented) + changeLease(proposedLeaseId: string, options?: LeaseOperationOptions): Promise; + // (undocumented) + get leaseId(): string; + // (undocumented) + releaseLease(options?: LeaseOperationOptions): Promise; + // (undocumented) + renewLease(options?: LeaseOperationOptions): Promise; + // (undocumented) + get url(): string; } // @public export class DataLakePathClient extends StorageClient { - constructor( - url: string, - credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, - options?: StoragePipelineOptions - ); - constructor(url: string, pipeline: Pipeline); - create(resourceType: PathResourceType, options?: PathCreateOptions): Promise; - delete(recursive?: boolean, options?: PathDeleteOptions): Promise; - exists(options?: PathExistsOptions): Promise; - get fileSystemName(): string; - getAccessControl(options?: PathGetAccessControlOptions): Promise; - getDataLakeLeaseClient(proposeLeaseId?: string): DataLakeLeaseClient; - getProperties(options?: PathGetPropertiesOptions): Promise; - move(destinationPath: string, options?: PathMoveOptions): Promise; - move( - destinationFileSystem: string, - destinationPath: string, - options?: PathMoveOptions - ): Promise; - get name(): string; - setAccessControl( - acl: PathAccessControlItem[], - options?: PathSetAccessControlOptions - ): Promise; - setHttpHeaders( - httpHeaders: PathHttpHeaders, - options?: PathSetHttpHeadersOptions - ): Promise; - setMetadata( - metadata?: Metadata, - options?: PathSetMetadataOptions - ): Promise; - setPermissions( - permissions: PathPermissions, - options?: PathSetPermissionsOptions - ): Promise; - toDirectoryClient(): DataLakeDirectoryClient; - toFileClient(): DataLakeFileClient; -} - -// @public (undocumented) -export interface DataLakeRequestConditions - extends ModifiedAccessConditions, - LeaseAccessConditions {} + constructor(url: string, credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, options?: StoragePipelineOptions); + constructor(url: string, pipeline: Pipeline); + create(resourceType: PathResourceType, options?: PathCreateOptions): Promise; + delete(recursive?: boolean, options?: PathDeleteOptions): Promise; + exists(options?: PathExistsOptions): Promise; + get fileSystemName(): string; + getAccessControl(options?: PathGetAccessControlOptions): Promise; + getDataLakeLeaseClient(proposeLeaseId?: string): DataLakeLeaseClient; + getProperties(options?: PathGetPropertiesOptions): Promise; + move(destinationPath: string, options?: PathMoveOptions): Promise; + move(destinationFileSystem: string, destinationPath: string, options?: PathMoveOptions): Promise; + get name(): string; + setAccessControl(acl: PathAccessControlItem[], options?: PathSetAccessControlOptions): Promise; + setHttpHeaders(httpHeaders: PathHttpHeaders, options?: PathSetHttpHeadersOptions): Promise; + setMetadata(metadata?: Metadata, options?: PathSetMetadataOptions): Promise; + setPermissions(permissions: PathPermissions, options?: PathSetPermissionsOptions): Promise; + toDirectoryClient(): DataLakeDirectoryClient; + toFileClient(): DataLakeFileClient; +} + +// @public (undocumented) +export interface DataLakeRequestConditions extends ModifiedAccessConditions, LeaseAccessConditions { +} // @public export class DataLakeSASPermissions { - add: boolean; - create: boolean; - delete: boolean; - static parse(permissions: string): DataLakeSASPermissions; - read: boolean; - toString(): string; - write: boolean; + add: boolean; + create: boolean; + delete: boolean; + static parse(permissions: string): DataLakeSASPermissions; + read: boolean; + toString(): string; + write: boolean; } // @public export interface DataLakeSASSignatureValues { - cacheControl?: string; - contentDisposition?: string; - contentEncoding?: string; - contentLanguage?: string; - contentType?: string; - expiresOn?: Date; - fileSystemName: string; - identifier?: string; - ipRange?: SasIPRange; - pathName?: string; - permissions?: DataLakeSASPermissions; - protocol?: SASProtocol; - snapshotTime?: string; - startsOn?: Date; - version?: string; + cacheControl?: string; + contentDisposition?: string; + contentEncoding?: string; + contentLanguage?: string; + contentType?: string; + expiresOn?: Date; + fileSystemName: string; + identifier?: string; + ipRange?: SasIPRange; + pathName?: string; + permissions?: DataLakeSASPermissions; + protocol?: SASProtocol; + snapshotTime?: string; + startsOn?: Date; + version?: string; } // @public export class DataLakeServiceClient extends StorageClient { - constructor( - url: string, - credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, - options?: StoragePipelineOptions - ); - constructor(url: string, pipeline: Pipeline); - getFileSystemClient(fileSystemName: string): DataLakeFileSystemClient; - getUserDelegationKey( - startsOn: Date, - expiresOn: Date, - options?: ServiceGetUserDelegationKeyOptions - ): Promise; - listFileSystems( - options?: ServiceListFileSystemsOptions - ): PagedAsyncIterableIterator; -} - -export { deserializationPolicy }; + constructor(url: string, credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, options?: StoragePipelineOptions); + constructor(url: string, pipeline: Pipeline); + getFileSystemClient(fileSystemName: string): DataLakeFileSystemClient; + getUserDelegationKey(startsOn: Date, expiresOn: Date, options?: ServiceGetUserDelegationKeyOptions): Promise; + listFileSystems(options?: ServiceListFileSystemsOptions): PagedAsyncIterableIterator; +} + +export { deserializationPolicy } // @public -export interface DirectoryCreateOptions extends PathCreateOptions {} +export interface DirectoryCreateOptions extends PathCreateOptions { +} // @public (undocumented) -export interface DirectoryCreateResponse extends PathCreateResponse {} +export interface DirectoryCreateResponse extends PathCreateResponse { +} // @public (undocumented) export interface FileAppendOptions extends CommonOptions { - // (undocumented) - abortSignal?: AbortSignalLike; - // (undocumented) - conditions?: LeaseAccessConditions; - // (undocumented) - onProgress?: (progress: TransferProgressEvent) => void; - // (undocumented) - transactionalContentMD5?: Uint8Array; + // (undocumented) + abortSignal?: AbortSignalLike; + // (undocumented) + conditions?: LeaseAccessConditions; + // (undocumented) + onProgress?: (progress: TransferProgressEvent) => void; + // (undocumented) + transactionalContentMD5?: Uint8Array; } // @public (undocumented) -export interface FileCreateOptions extends PathCreateOptions {} +export interface FileCreateOptions extends PathCreateOptions { +} // @public (undocumented) -export interface FileCreateResponse extends PathCreateResponse {} +export interface FileCreateResponse extends PathCreateResponse { +} // @public (undocumented) export interface FileFlushOptions extends CommonOptions { - // (undocumented) - abortSignal?: AbortSignalLike; - // (undocumented) - close?: boolean; - // (undocumented) - conditions?: DataLakeRequestConditions; - // (undocumented) - pathHttpHeaders?: PathHttpHeaders; - // (undocumented) - retainUncommittedData?: boolean; + // (undocumented) + abortSignal?: AbortSignalLike; + // (undocumented) + close?: boolean; + // (undocumented) + conditions?: DataLakeRequestConditions; + // (undocumented) + pathHttpHeaders?: PathHttpHeaders; + // (undocumented) + retainUncommittedData?: boolean; } // @public export interface FileParallelUploadOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - chunkSize?: number; - close?: boolean; - conditions?: DataLakeRequestConditions; - maxConcurrency?: number; - metadata?: Metadata; - onProgress?: (progress: TransferProgressEvent) => void; - pathHttpHeaders?: PathHttpHeaders; - permissions?: string; - singleUploadThreshold?: number; - umask?: string; + abortSignal?: AbortSignalLike; + chunkSize?: number; + close?: boolean; + conditions?: DataLakeRequestConditions; + maxConcurrency?: number; + metadata?: Metadata; + onProgress?: (progress: TransferProgressEvent) => void; + pathHttpHeaders?: PathHttpHeaders; + permissions?: string; + singleUploadThreshold?: number; + umask?: string; } // @public (undocumented) export interface FileReadHeaders { - // (undocumented) - acceptRanges?: string; - // (undocumented) - cacheControl?: string; - // (undocumented) - clientRequestId?: string; - // (undocumented) - contentCrc64?: Uint8Array; - // (undocumented) - contentDisposition?: string; - // (undocumented) - contentEncoding?: string; - // (undocumented) - contentLanguage?: string; - // (undocumented) - contentLength?: number; - // (undocumented) - contentMD5?: Uint8Array; - // (undocumented) - contentRange?: string; - // (undocumented) - contentType?: string; - // (undocumented) - copyCompletedOn?: Date; - // (undocumented) - copyId?: string; - // (undocumented) - copyProgress?: string; - // (undocumented) - copySource?: string; - // (undocumented) - copyStatus?: CopyStatusType; - // (undocumented) - copyStatusDescription?: string; - // (undocumented) - date?: Date; - // (undocumented) - encryptionKeySha256?: string; - // (undocumented) - etag?: string; - // (undocumented) - fileContentMD5?: Uint8Array; - // (undocumented) - isServerEncrypted?: boolean; - // (undocumented) - lastModified?: Date; - // (undocumented) - leaseDuration?: LeaseDurationType; - // (undocumented) - leaseState?: LeaseStateType; - // (undocumented) - leaseStatus?: LeaseStatusType; - // (undocumented) - metadata?: Metadata; - // (undocumented) - requestId?: string; - // (undocumented) - version?: string; + // (undocumented) + acceptRanges?: string; + // (undocumented) + cacheControl?: string; + // (undocumented) + clientRequestId?: string; + // (undocumented) + contentCrc64?: Uint8Array; + // (undocumented) + contentDisposition?: string; + // (undocumented) + contentEncoding?: string; + // (undocumented) + contentLanguage?: string; + // (undocumented) + contentLength?: number; + // (undocumented) + contentMD5?: Uint8Array; + // (undocumented) + contentRange?: string; + // (undocumented) + contentType?: string; + // (undocumented) + copyCompletedOn?: Date; + // (undocumented) + copyId?: string; + // (undocumented) + copyProgress?: string; + // (undocumented) + copySource?: string; + // (undocumented) + copyStatus?: CopyStatusType; + // (undocumented) + copyStatusDescription?: string; + // (undocumented) + date?: Date; + // (undocumented) + encryptionKeySha256?: string; + // (undocumented) + etag?: string; + // (undocumented) + fileContentMD5?: Uint8Array; + // (undocumented) + isServerEncrypted?: boolean; + // (undocumented) + lastModified?: Date; + // (undocumented) + leaseDuration?: LeaseDurationType; + // (undocumented) + leaseState?: LeaseStateType; + // (undocumented) + leaseStatus?: LeaseStatusType; + // (undocumented) + metadata?: Metadata; + // (undocumented) + requestId?: string; + // (undocumented) + version?: string; } // @public export interface FileReadOptions extends CommonOptions { - // (undocumented) - abortSignal?: AbortSignalLike; - // (undocumented) - conditions?: DataLakeRequestConditions; - // (undocumented) - maxRetryRequests?: number; - // (undocumented) - onProgress?: (progress: TransferProgressEvent) => void; - // (undocumented) - rangeGetContentCrc64?: boolean; - // (undocumented) - rangeGetContentMD5?: boolean; + // (undocumented) + abortSignal?: AbortSignalLike; + // (undocumented) + conditions?: DataLakeRequestConditions; + // (undocumented) + maxRetryRequests?: number; + // (undocumented) + onProgress?: (progress: TransferProgressEvent) => void; + // (undocumented) + rangeGetContentCrc64?: boolean; + // (undocumented) + rangeGetContentMD5?: boolean; } // @public (undocumented) export type FileReadResponse = FileReadHeaders & { - contentAsBlob?: Promise; - readableStreamBody?: NodeJS.ReadableStream; - _response: HttpResponse & { - parsedHeaders: FileReadHeaders; - }; + contentAsBlob?: Promise; + readableStreamBody?: NodeJS.ReadableStream; + _response: HttpResponse & { + parsedHeaders: FileReadHeaders; + }; }; // @public export interface FileReadToBufferOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - chunkSize?: number; - concurrency?: number; - conditions?: DataLakeRequestConditions; - maxRetryRequestsPerChunk?: number; - onProgress?: (progress: TransferProgressEvent) => void; + abortSignal?: AbortSignalLike; + chunkSize?: number; + concurrency?: number; + conditions?: DataLakeRequestConditions; + maxRetryRequestsPerChunk?: number; + onProgress?: (progress: TransferProgressEvent) => void; } // @public (undocumented) export interface FileSystemCreateHeaders { - // (undocumented) - clientRequestId?: string; - // (undocumented) - date?: Date; - // (undocumented) - etag?: string; - // (undocumented) - lastModified?: Date; - // (undocumented) - requestId?: string; - // (undocumented) - version?: string; + // (undocumented) + clientRequestId?: string; + // (undocumented) + date?: Date; + // (undocumented) + etag?: string; + // (undocumented) + lastModified?: Date; + // (undocumented) + requestId?: string; + // (undocumented) + version?: string; } // @public export interface FileSystemCreateOptions extends CommonOptions { - // (undocumented) - abortSignal?: AbortSignalLike; - // (undocumented) - access?: PublicAccessType; - // (undocumented) - metadata?: Metadata; + // (undocumented) + abortSignal?: AbortSignalLike; + // (undocumented) + access?: PublicAccessType; + // (undocumented) + metadata?: Metadata; } // @public (undocumented) export type FileSystemCreateResponse = FileSystemCreateHeaders & { - _response: HttpResponse & { - parsedHeaders: FileSystemCreateHeaders; - }; + _response: HttpResponse & { + parsedHeaders: FileSystemCreateHeaders; + }; }; // @public (undocumented) export interface FileSystemDeleteHeaders { - // (undocumented) - clientRequestId?: string; - // (undocumented) - date?: Date; - // (undocumented) - requestId?: string; - // (undocumented) - version?: string; + // (undocumented) + clientRequestId?: string; + // (undocumented) + date?: Date; + // (undocumented) + requestId?: string; + // (undocumented) + version?: string; } // @public (undocumented) export interface FileSystemDeleteOptions extends CommonOptions { - // (undocumented) - abortSignal?: AbortSignalLike; - // (undocumented) - conditions?: DataLakeRequestConditions; + // (undocumented) + abortSignal?: AbortSignalLike; + // (undocumented) + conditions?: DataLakeRequestConditions; } // @public (undocumented) export type FileSystemDeleteResponse = FileSystemDeleteHeaders & { - _response: HttpResponse & { - parsedHeaders: FileSystemDeleteHeaders; - }; + _response: HttpResponse & { + parsedHeaders: FileSystemDeleteHeaders; + }; }; // @public export interface FileSystemExistsOptions extends CommonOptions { - abortSignal?: AbortSignalLike; + abortSignal?: AbortSignalLike; } // @public (undocumented) export interface FileSystemGetAccessPolicyHeaders { - // (undocumented) - clientRequestId?: string; - // (undocumented) - date?: Date; - // (undocumented) - etag?: string; - // (undocumented) - lastModified?: Date; - // (undocumented) - publicAccess?: PublicAccessType; - // (undocumented) - requestId?: string; - // (undocumented) - version?: string; + // (undocumented) + clientRequestId?: string; + // (undocumented) + date?: Date; + // (undocumented) + etag?: string; + // (undocumented) + lastModified?: Date; + // (undocumented) + publicAccess?: PublicAccessType; + // (undocumented) + requestId?: string; + // (undocumented) + version?: string; } // @public (undocumented) export interface FileSystemGetAccessPolicyOptions extends CommonOptions { - // (undocumented) - abortSignal?: AbortSignalLike; - // (undocumented) - conditions?: LeaseAccessConditions; + // (undocumented) + abortSignal?: AbortSignalLike; + // (undocumented) + conditions?: LeaseAccessConditions; } // @public (undocumented) export type FileSystemGetAccessPolicyResponse = { - signedIdentifiers: SignedIdentifier[]; + signedIdentifiers: SignedIdentifier[]; } & FileSystemGetAccessPolicyHeaders & { _response: HttpResponse & { - parsedHeaders: FileSystemGetAccessPolicyHeaders; - bodyAsText: string; - parsedBody: SignedIdentifier[]; + parsedHeaders: FileSystemGetAccessPolicyHeaders; + bodyAsText: string; + parsedBody: SignedIdentifier[]; }; - }; +}; // @public (undocumented) export interface FileSystemGetPropertiesHeaders { - // (undocumented) - clientRequestId?: string; - // (undocumented) - date?: Date; - // (undocumented) - etag?: string; - // (undocumented) - hasImmutabilityPolicy?: boolean; - // (undocumented) - hasLegalHold?: boolean; - // (undocumented) - lastModified?: Date; - // (undocumented) - leaseDuration?: LeaseDurationType; - // (undocumented) - leaseState?: LeaseStateType; - // (undocumented) - leaseStatus?: LeaseStatusType; - // (undocumented) - metadata?: Metadata; - // (undocumented) - publicAccess?: PublicAccessType; - // (undocumented) - requestId?: string; - // (undocumented) - version?: string; + // (undocumented) + clientRequestId?: string; + // (undocumented) + date?: Date; + // (undocumented) + etag?: string; + // (undocumented) + hasImmutabilityPolicy?: boolean; + // (undocumented) + hasLegalHold?: boolean; + // (undocumented) + lastModified?: Date; + // (undocumented) + leaseDuration?: LeaseDurationType; + // (undocumented) + leaseState?: LeaseStateType; + // (undocumented) + leaseStatus?: LeaseStatusType; + // (undocumented) + metadata?: Metadata; + // (undocumented) + publicAccess?: PublicAccessType; + // (undocumented) + requestId?: string; + // (undocumented) + version?: string; } // @public (undocumented) export interface FileSystemGetPropertiesOptions extends CommonOptions { - // (undocumented) - abortSignal?: AbortSignalLike; - // (undocumented) - conditions?: LeaseAccessConditions; + // (undocumented) + abortSignal?: AbortSignalLike; + // (undocumented) + conditions?: LeaseAccessConditions; } // @public (undocumented) export type FileSystemGetPropertiesResponse = FileSystemGetPropertiesHeaders & { - _response: HttpResponse & { - parsedHeaders: FileSystemGetPropertiesHeaders; - }; + _response: HttpResponse & { + parsedHeaders: FileSystemGetPropertiesHeaders; + }; }; // @public (undocumented) export interface FileSystemItem { - // (undocumented) - metadata?: Metadata; - // (undocumented) - name: string; - // (undocumented) - properties: FileSystemProperties; + // (undocumented) + metadata?: Metadata; + // (undocumented) + name: string; + // (undocumented) + properties: FileSystemProperties; } // @public export interface FileSystemListPathsHeaders { - continuation?: string; - date?: Date; - // (undocumented) - errorCode?: string; - etag?: string; - lastModified?: Date; - requestId?: string; - version?: string; + continuation?: string; + date?: Date; + // (undocumented) + errorCode?: string; + etag?: string; + lastModified?: Date; + requestId?: string; + version?: string; } // @public (undocumented) -export type FileSystemListPathsResponse = PathList & - FileSystemListPathsHeaders & { +export type FileSystemListPathsResponse = PathList & FileSystemListPathsHeaders & { _response: HttpResponse & { - parsedHeaders: FileSystemListPathsHeaders; - bodyAsText: string; - parsedBody: PathListModel; + parsedHeaders: FileSystemListPathsHeaders; + bodyAsText: string; + parsedBody: PathListModel; }; - }; +}; // @public (undocumented) export interface FileSystemProperties { - // (undocumented) - etag: string; - // (undocumented) - hasImmutabilityPolicy?: boolean; - // (undocumented) - hasLegalHold?: boolean; - // (undocumented) - lastModified: Date; - // (undocumented) - leaseDuration?: LeaseDurationType; - // (undocumented) - leaseState?: LeaseStateType; - // (undocumented) - leaseStatus?: LeaseStatusType; - // (undocumented) - publicAccess?: PublicAccessType; + // (undocumented) + etag: string; + // (undocumented) + hasImmutabilityPolicy?: boolean; + // (undocumented) + hasLegalHold?: boolean; + // (undocumented) + lastModified: Date; + // (undocumented) + leaseDuration?: LeaseDurationType; + // (undocumented) + leaseState?: LeaseStateType; + // (undocumented) + leaseStatus?: LeaseStatusType; + // (undocumented) + publicAccess?: PublicAccessType; } // @public export class FileSystemSASPermissions { - add: boolean; - create: boolean; - delete: boolean; - list: boolean; - static parse(permissions: string): FileSystemSASPermissions; - read: boolean; - toString(): string; - write: boolean; + add: boolean; + create: boolean; + delete: boolean; + list: boolean; + static parse(permissions: string): FileSystemSASPermissions; + read: boolean; + toString(): string; + write: boolean; } // @public (undocumented) export interface FileSystemSetAccessPolicyHeaders { - // (undocumented) - clientRequestId?: string; - // (undocumented) - date?: Date; - // (undocumented) - etag?: string; - // (undocumented) - lastModified?: Date; - // (undocumented) - requestId?: string; - // (undocumented) - version?: string; + // (undocumented) + clientRequestId?: string; + // (undocumented) + date?: Date; + // (undocumented) + etag?: string; + // (undocumented) + lastModified?: Date; + // (undocumented) + requestId?: string; + // (undocumented) + version?: string; } // @public (undocumented) export interface FileSystemSetAccessPolicyOptions extends CommonOptions { - // (undocumented) - abortSignal?: AbortSignalLike; - // (undocumented) - conditions?: DataLakeRequestConditions; + // (undocumented) + abortSignal?: AbortSignalLike; + // (undocumented) + conditions?: DataLakeRequestConditions; } // @public (undocumented) export type FileSystemSetAccessPolicyResponse = FileSystemSetAccessPolicyHeaders & { - _response: HttpResponse & { - parsedHeaders: FileSystemSetAccessPolicyHeaders; - }; + _response: HttpResponse & { + parsedHeaders: FileSystemSetAccessPolicyHeaders; + }; }; // @public (undocumented) export interface FileSystemSetMetadataHeaders { - // (undocumented) - clientRequestId?: string; - // (undocumented) - date?: Date; - // (undocumented) - etag?: string; - // (undocumented) - lastModified?: Date; - // (undocumented) - requestId?: string; - // (undocumented) - version?: string; + // (undocumented) + clientRequestId?: string; + // (undocumented) + date?: Date; + // (undocumented) + etag?: string; + // (undocumented) + lastModified?: Date; + // (undocumented) + requestId?: string; + // (undocumented) + version?: string; } // @public (undocumented) export interface FileSystemSetMetadataOptions extends CommonOptions { - // (undocumented) - abortSignal?: AbortSignalLike; - // (undocumented) - conditions?: DataLakeRequestConditions; + // (undocumented) + abortSignal?: AbortSignalLike; + // (undocumented) + conditions?: DataLakeRequestConditions; } // @public (undocumented) export type FileSystemSetMetadataResponse = FileSystemSetMetadataHeaders & { - _response: HttpResponse & { - parsedHeaders: FileSystemSetMetadataHeaders; - }; + _response: HttpResponse & { + parsedHeaders: FileSystemSetMetadataHeaders; + }; }; // @public -export function generateAccountSASQueryParameters( - accountSASSignatureValues: AccountSASSignatureValues, - sharedKeyCredential: StorageSharedKeyCredential -): SASQueryParameters; +export function generateAccountSASQueryParameters(accountSASSignatureValues: AccountSASSignatureValues, sharedKeyCredential: StorageSharedKeyCredential): SASQueryParameters; // @public -export function generateDataLakeSASQueryParameters( - dataLakeSASSignatureValues: DataLakeSASSignatureValues, - sharedKeyCredential: StorageSharedKeyCredential -): SASQueryParameters; +export function generateDataLakeSASQueryParameters(dataLakeSASSignatureValues: DataLakeSASSignatureValues, sharedKeyCredential: StorageSharedKeyCredential): SASQueryParameters; // @public -export function generateDataLakeSASQueryParameters( - dataLakeSASSignatureValues: DataLakeSASSignatureValues, - userDelegationKey: UserDelegationKey, - accountName: string -): SASQueryParameters; +export function generateDataLakeSASQueryParameters(dataLakeSASSignatureValues: DataLakeSASSignatureValues, userDelegationKey: UserDelegationKey, accountName: string): SASQueryParameters; -export { HttpHeaders }; +export { HttpHeaders } -export { HttpOperationResponse }; +export { HttpOperationResponse } -export { HttpRequestBody }; +export { HttpRequestBody } -export { IHttpClient }; +export { IHttpClient } -export { Lease }; +export { Lease } -export { LeaseAccessConditions }; +export { LeaseAccessConditions } // @public (undocumented) export type LeaseDurationType = "infinite" | "fixed"; -export { LeaseOperationOptions }; +export { LeaseOperationOptions } -export { LeaseOperationResponse }; +export { LeaseOperationResponse } // @public (undocumented) export type LeaseStateType = "available" | "leased" | "expired" | "breaking" | "broken"; @@ -802,611 +722,606 @@ export type LeaseStatusType = "locked" | "unlocked"; // @public (undocumented) export interface ListFileSystemsSegmentResponse { - // (undocumented) - continuationToken?: string; - // (undocumented) - fileSystemItems: FileSystemItem[]; - // (undocumented) - marker?: string; - // (undocumented) - maxPageSize?: number; - // (undocumented) - prefix?: string; - // (undocumented) - serviceEndpoint: string; + // (undocumented) + continuationToken?: string; + // (undocumented) + fileSystemItems: FileSystemItem[]; + // (undocumented) + marker?: string; + // (undocumented) + maxPageSize?: number; + // (undocumented) + prefix?: string; + // (undocumented) + serviceEndpoint: string; } // @public (undocumented) export interface ListPathsOptions extends CommonOptions { - // (undocumented) - abortSignal?: AbortSignalLike; - // (undocumented) - path?: string; - // (undocumented) - recursive?: boolean; - // (undocumented) - userPrincipalName?: boolean; + // (undocumented) + abortSignal?: AbortSignalLike; + // (undocumented) + path?: string; + // (undocumented) + recursive?: boolean; + // (undocumented) + userPrincipalName?: boolean; } // @public (undocumented) export interface ListPathsSegmentOptions extends ListPathsOptions { - // (undocumented) - maxResults?: number; + // (undocumented) + maxResults?: number; } // @public -export type ListPathsSegmentResponse = PathListModel & - FileSystemListPathsHeaders & { +export type ListPathsSegmentResponse = PathListModel & FileSystemListPathsHeaders & { _response: coreHttp.HttpResponse & { - parsedHeaders: FileSystemListPathsHeaders; - bodyAsText: string; - parsedBody: PathListModel; + parsedHeaders: FileSystemListPathsHeaders; + bodyAsText: string; + parsedBody: PathListModel; }; - }; +}; // @public export const logger: import("@azure/logger").AzureLogger; // @public export interface Metadata { - // (undocumented) - [propertyName: string]: string; + // (undocumented) + [propertyName: string]: string; } // @public -export function newPipeline( - credential: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, - pipelineOptions?: StoragePipelineOptions -): Pipeline; +export function newPipeline(credential: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, pipelineOptions?: StoragePipelineOptions): Pipeline; // @public (undocumented) export interface Path { - // (undocumented) - contentLength?: number; - // (undocumented) - etag?: string; - // (undocumented) - group?: string; - // (undocumented) - isDirectory?: boolean; - // (undocumented) - lastModified?: Date; - // (undocumented) - name?: string; - // (undocumented) - owner?: string; - // (undocumented) - permissions?: PathPermissions; + // (undocumented) + contentLength?: number; + // (undocumented) + etag?: string; + // (undocumented) + group?: string; + // (undocumented) + isDirectory?: boolean; + // (undocumented) + lastModified?: Date; + // (undocumented) + name?: string; + // (undocumented) + owner?: string; + // (undocumented) + permissions?: PathPermissions; } // @public (undocumented) export interface PathAccessControl { - // (undocumented) - acl: PathAccessControlItem[]; - // (undocumented) - group?: string; - // (undocumented) - owner?: string; - // (undocumented) - permissions?: PathPermissions; + // (undocumented) + acl: PathAccessControlItem[]; + // (undocumented) + group?: string; + // (undocumented) + owner?: string; + // (undocumented) + permissions?: PathPermissions; } // @public (undocumented) export interface PathAccessControlItem { - // (undocumented) - accessControlType: AccessControlType; - // (undocumented) - defaultScope: boolean; - // (undocumented) - entityId: string; - // (undocumented) - permissions: RolePermissions; + // (undocumented) + accessControlType: AccessControlType; + // (undocumented) + defaultScope: boolean; + // (undocumented) + entityId: string; + // (undocumented) + permissions: RolePermissions; } // @public export interface PathCreateHeaders { - contentLength?: number; - continuation?: string; - date?: Date; - // (undocumented) - errorCode?: string; - etag?: string; - lastModified?: Date; - requestId?: string; - version?: string; + contentLength?: number; + continuation?: string; + date?: Date; + // (undocumented) + errorCode?: string; + etag?: string; + lastModified?: Date; + requestId?: string; + version?: string; } // @public (undocumented) export interface PathCreateHttpHeaders { - // (undocumented) - cacheControl?: string; - // (undocumented) - contentDisposition?: string; - // (undocumented) - contentEncoding?: string; - // (undocumented) - contentLanguage?: string; - // (undocumented) - contentType?: string; + // (undocumented) + cacheControl?: string; + // (undocumented) + contentDisposition?: string; + // (undocumented) + contentEncoding?: string; + // (undocumented) + contentLanguage?: string; + // (undocumented) + contentType?: string; } // @public (undocumented) export interface PathCreateOptions extends CommonOptions { - // (undocumented) - abortSignal?: AbortSignalLike; - // (undocumented) - conditions?: DataLakeRequestConditions; - // (undocumented) - metadata?: Metadata; - // (undocumented) - pathHttpHeaders?: PathCreateHttpHeaders; - // (undocumented) - permissions?: string; - // (undocumented) - umask?: string; + // (undocumented) + abortSignal?: AbortSignalLike; + // (undocumented) + conditions?: DataLakeRequestConditions; + // (undocumented) + metadata?: Metadata; + // (undocumented) + pathHttpHeaders?: PathCreateHttpHeaders; + // (undocumented) + permissions?: string; + // (undocumented) + umask?: string; } // @public export type PathCreateResponse = PathCreateHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: PathCreateHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: PathCreateHeaders; + }; }; // @public export interface PathDeleteHeaders { - continuation?: string; - date?: Date; - // (undocumented) - errorCode?: string; - requestId?: string; - version?: string; + continuation?: string; + date?: Date; + // (undocumented) + errorCode?: string; + requestId?: string; + version?: string; } // @public (undocumented) export interface PathDeleteOptions extends CommonOptions { - // (undocumented) - abortSignal?: AbortSignalLike; - // (undocumented) - conditions?: DataLakeRequestConditions; + // (undocumented) + abortSignal?: AbortSignalLike; + // (undocumented) + conditions?: DataLakeRequestConditions; } // @public export type PathDeleteResponse = PathDeleteHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: PathDeleteHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: PathDeleteHeaders; + }; }; // @public export interface PathExistsOptions extends CommonOptions { - abortSignal?: AbortSignalLike; + abortSignal?: AbortSignalLike; } // @public (undocumented) export interface PathGetAccessControlHeaders { - // (undocumented) - date?: Date; - // (undocumented) - etag?: string; - // (undocumented) - group?: string; - // (undocumented) - lastModified?: Date; - // (undocumented) - owner?: string; - // (undocumented) - requestId?: string; - // (undocumented) - version?: string; + // (undocumented) + date?: Date; + // (undocumented) + etag?: string; + // (undocumented) + group?: string; + // (undocumented) + lastModified?: Date; + // (undocumented) + owner?: string; + // (undocumented) + requestId?: string; + // (undocumented) + version?: string; } // @public (undocumented) export interface PathGetAccessControlOptions extends CommonOptions { - // (undocumented) - abortSignal?: AbortSignalLike; - // (undocumented) - conditions?: DataLakeRequestConditions; - // (undocumented) - userPrincipalName?: boolean; + // (undocumented) + abortSignal?: AbortSignalLike; + // (undocumented) + conditions?: DataLakeRequestConditions; + // (undocumented) + userPrincipalName?: boolean; } // @public (undocumented) -export type PathGetAccessControlResponse = PathAccessControl & - PathGetAccessControlHeaders & { +export type PathGetAccessControlResponse = PathAccessControl & PathGetAccessControlHeaders & { _response: HttpResponse & { - parsedHeaders: PathGetPropertiesHeadersModel; + parsedHeaders: PathGetPropertiesHeadersModel; }; - }; +}; // @public export enum PathGetPropertiesAction { - // (undocumented) - GetAccessControl = "getAccessControl", - // (undocumented) - GetStatus = "getStatus" + // (undocumented) + GetAccessControl = "getAccessControl", + // (undocumented) + GetStatus = "getStatus" } // @public (undocumented) export interface PathGetPropertiesHeaders { - // (undocumented) - acceptRanges?: string; - // (undocumented) - accessTier?: string; - // (undocumented) - accessTierChangedOn?: Date; - // (undocumented) - accessTierInferred?: boolean; - // (undocumented) - archiveStatus?: string; - // (undocumented) - cacheControl?: string; - // (undocumented) - clientRequestId?: string; - // (undocumented) - contentDisposition?: string; - // (undocumented) - contentEncoding?: string; - // (undocumented) - contentLanguage?: string; - // (undocumented) - contentLength?: number; - // (undocumented) - contentMD5?: Uint8Array; - // (undocumented) - contentType?: string; - // (undocumented) - copyCompletedOn?: Date; - // (undocumented) - copyId?: string; - // (undocumented) - copyProgress?: string; - // (undocumented) - copySource?: string; - // (undocumented) - copyStatus?: CopyStatusType; - // (undocumented) - copyStatusDescription?: string; - // (undocumented) - createdOn?: Date; - // (undocumented) - date?: Date; - // (undocumented) - destinationSnapshot?: string; - // (undocumented) - encryptionKeySha256?: string; - // (undocumented) - etag?: string; - // (undocumented) - isIncrementalCopy?: boolean; - // (undocumented) - isServerEncrypted?: boolean; - // (undocumented) - lastModified?: Date; - // (undocumented) - leaseDuration?: LeaseDurationType; - // (undocumented) - leaseState?: LeaseStateType; - // (undocumented) - leaseStatus?: LeaseStatusType; - // (undocumented) - metadata?: Metadata; - // (undocumented) - requestId?: string; - // (undocumented) - version?: string; + // (undocumented) + acceptRanges?: string; + // (undocumented) + accessTier?: string; + // (undocumented) + accessTierChangedOn?: Date; + // (undocumented) + accessTierInferred?: boolean; + // (undocumented) + archiveStatus?: string; + // (undocumented) + cacheControl?: string; + // (undocumented) + clientRequestId?: string; + // (undocumented) + contentDisposition?: string; + // (undocumented) + contentEncoding?: string; + // (undocumented) + contentLanguage?: string; + // (undocumented) + contentLength?: number; + // (undocumented) + contentMD5?: Uint8Array; + // (undocumented) + contentType?: string; + // (undocumented) + copyCompletedOn?: Date; + // (undocumented) + copyId?: string; + // (undocumented) + copyProgress?: string; + // (undocumented) + copySource?: string; + // (undocumented) + copyStatus?: CopyStatusType; + // (undocumented) + copyStatusDescription?: string; + // (undocumented) + createdOn?: Date; + // (undocumented) + date?: Date; + // (undocumented) + destinationSnapshot?: string; + // (undocumented) + encryptionKeySha256?: string; + // (undocumented) + etag?: string; + // (undocumented) + isIncrementalCopy?: boolean; + // (undocumented) + isServerEncrypted?: boolean; + // (undocumented) + lastModified?: Date; + // (undocumented) + leaseDuration?: LeaseDurationType; + // (undocumented) + leaseState?: LeaseStateType; + // (undocumented) + leaseStatus?: LeaseStatusType; + // (undocumented) + metadata?: Metadata; + // (undocumented) + requestId?: string; + // (undocumented) + version?: string; } // @public export interface PathGetPropertiesHeadersModel { - acceptRanges?: string; - acl?: string; - cacheControl?: string; - contentDisposition?: string; - contentEncoding?: string; - contentLanguage?: string; - contentLength?: number; - contentMD5?: string; - contentRange?: string; - contentType?: string; - date?: Date; - // (undocumented) - errorCode?: string; - etag?: string; - group?: string; - lastModified?: Date; - leaseDuration?: string; - leaseState?: string; - leaseStatus?: string; - owner?: string; - permissions?: string; - properties?: string; - requestId?: string; - resourceType?: string; - version?: string; + acceptRanges?: string; + acl?: string; + cacheControl?: string; + contentDisposition?: string; + contentEncoding?: string; + contentLanguage?: string; + contentLength?: number; + contentMD5?: string; + contentRange?: string; + contentType?: string; + date?: Date; + // (undocumented) + errorCode?: string; + etag?: string; + group?: string; + lastModified?: Date; + leaseDuration?: string; + leaseState?: string; + leaseStatus?: string; + owner?: string; + permissions?: string; + properties?: string; + requestId?: string; + resourceType?: string; + version?: string; } // @public (undocumented) export interface PathGetPropertiesOptions extends CommonOptions { - // (undocumented) - abortSignal?: AbortSignalLike; - // (undocumented) - conditions?: DataLakeRequestConditions; + // (undocumented) + abortSignal?: AbortSignalLike; + // (undocumented) + conditions?: DataLakeRequestConditions; } // @public (undocumented) export type PathGetPropertiesResponse = PathGetPropertiesHeaders & { - _response: HttpResponse & { - parsedHeaders: PathGetPropertiesHeaders; - }; + _response: HttpResponse & { + parsedHeaders: PathGetPropertiesHeaders; + }; }; // @public (undocumented) export interface PathHttpHeaders { - // (undocumented) - cacheControl?: string; - // (undocumented) - contentDisposition?: string; - // (undocumented) - contentEncoding?: string; - // (undocumented) - contentLanguage?: string; - // (undocumented) - contentMD5?: Uint8Array; - // (undocumented) - contentType?: string; + // (undocumented) + cacheControl?: string; + // (undocumented) + contentDisposition?: string; + // (undocumented) + contentEncoding?: string; + // (undocumented) + contentLanguage?: string; + // (undocumented) + contentMD5?: Uint8Array; + // (undocumented) + contentType?: string; } // @public (undocumented) export interface PathList { - // (undocumented) - pathItems?: Path[]; + // (undocumented) + pathItems?: Path[]; } // @public export interface PathListModel { - // (undocumented) - paths?: PathModel[]; + // (undocumented) + paths?: PathModel[]; } // @public export interface PathModel { - // (undocumented) - contentLength?: number; - // (undocumented) - etag?: string; - // (undocumented) - group?: string; - isDirectory?: boolean; - // (undocumented) - lastModified?: Date; - // (undocumented) - name?: string; - // (undocumented) - owner?: string; - // (undocumented) - permissions?: string; + // (undocumented) + contentLength?: number; + // (undocumented) + etag?: string; + // (undocumented) + group?: string; + isDirectory?: boolean; + // (undocumented) + lastModified?: Date; + // (undocumented) + name?: string; + // (undocumented) + owner?: string; + // (undocumented) + permissions?: string; } // @public (undocumented) export interface PathMoveOptions extends CommonOptions { - // (undocumented) - abortSignal?: AbortSignalLike; - // (undocumented) - conditions?: DataLakeRequestConditions; - // (undocumented) - destinationConditions?: DataLakeRequestConditions; + // (undocumented) + abortSignal?: AbortSignalLike; + // (undocumented) + conditions?: DataLakeRequestConditions; + // (undocumented) + destinationConditions?: DataLakeRequestConditions; } // @public (undocumented) export type PathMoveResponse = PathRemoveHeaders & { - _response: HttpResponse & { - parsedHeaders: PathRemoveHeaders; - }; + _response: HttpResponse & { + parsedHeaders: PathRemoveHeaders; + }; }; // @public (undocumented) export interface PathPermissions { - // (undocumented) - extendedAcls: boolean; - // (undocumented) - group: RolePermissions; - // (undocumented) - other: RolePermissions; - // (undocumented) - owner: RolePermissions; - // (undocumented) - stickyBit: boolean; + // (undocumented) + extendedAcls: boolean; + // (undocumented) + group: RolePermissions; + // (undocumented) + other: RolePermissions; + // (undocumented) + owner: RolePermissions; + // (undocumented) + stickyBit: boolean; } // @public (undocumented) export interface PathRemoveHeaders { - // (undocumented) - contentLength?: number; - // (undocumented) - date?: Date; - // (undocumented) - etag?: string; - // (undocumented) - lastModified?: Date; - // (undocumented) - requestId?: string; - // (undocumented) - version?: string; + // (undocumented) + contentLength?: number; + // (undocumented) + date?: Date; + // (undocumented) + etag?: string; + // (undocumented) + lastModified?: Date; + // (undocumented) + requestId?: string; + // (undocumented) + version?: string; } // @public export enum PathRenameMode { - // (undocumented) - Legacy = "legacy", - // (undocumented) - Posix = "posix" + // (undocumented) + Legacy = "legacy", + // (undocumented) + Posix = "posix" } // @public export enum PathResourceType { - // (undocumented) - Directory = "directory", - // (undocumented) - File = "file" + // (undocumented) + Directory = "directory", + // (undocumented) + File = "file" } // @public export interface PathSetAccessControlHeaders { - clientRequestId?: string; - date?: Date; - etag?: string; - lastModified?: Date; - requestId?: string; - version?: string; + clientRequestId?: string; + date?: Date; + etag?: string; + lastModified?: Date; + requestId?: string; + version?: string; } // @public (undocumented) export interface PathSetAccessControlOptions extends CommonOptions { - // (undocumented) - abortSignal?: AbortSignalLike; - // (undocumented) - conditions?: DataLakeRequestConditions; - // (undocumented) - group?: string; - // (undocumented) - owner?: string; + // (undocumented) + abortSignal?: AbortSignalLike; + // (undocumented) + conditions?: DataLakeRequestConditions; + // (undocumented) + group?: string; + // (undocumented) + owner?: string; } // @public type PathSetAccessControlResponse = PathSetAccessControlHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: PathSetAccessControlHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: PathSetAccessControlHeaders; + }; }; -export { PathSetAccessControlResponse }; +export { PathSetAccessControlResponse } -export { PathSetAccessControlResponse as PathSetPermissionsResponse }; +export { PathSetAccessControlResponse as PathSetPermissionsResponse } // @public (undocumented) export interface PathSetHttpHeadersHeaders { - // (undocumented) - clientRequestId?: string; - // (undocumented) - date?: Date; - // (undocumented) - etag?: string; - // (undocumented) - lastModified?: Date; - // (undocumented) - requestId?: string; - // (undocumented) - version?: string; + // (undocumented) + clientRequestId?: string; + // (undocumented) + date?: Date; + // (undocumented) + etag?: string; + // (undocumented) + lastModified?: Date; + // (undocumented) + requestId?: string; + // (undocumented) + version?: string; } // @public (undocumented) export interface PathSetHttpHeadersOptions extends CommonOptions { - // (undocumented) - abortSignal?: AbortSignalLike; - // (undocumented) - conditions?: DataLakeRequestConditions; + // (undocumented) + abortSignal?: AbortSignalLike; + // (undocumented) + conditions?: DataLakeRequestConditions; } // @public (undocumented) export type PathSetHttpHeadersResponse = PathSetHttpHeadersHeaders & { - _response: HttpResponse & { - parsedHeaders: PathSetHttpHeadersHeaders; - }; + _response: HttpResponse & { + parsedHeaders: PathSetHttpHeadersHeaders; + }; }; // @public (undocumented) export interface PathSetMetadataHeaders { - // (undocumented) - clientRequestId?: string; - // (undocumented) - date?: Date; - // (undocumented) - encryptionKeySha256?: string; - // (undocumented) - etag?: string; - // (undocumented) - isServerEncrypted?: boolean; - // (undocumented) - lastModified?: Date; - // (undocumented) - requestId?: string; - // (undocumented) - version?: string; + // (undocumented) + clientRequestId?: string; + // (undocumented) + date?: Date; + // (undocumented) + encryptionKeySha256?: string; + // (undocumented) + etag?: string; + // (undocumented) + isServerEncrypted?: boolean; + // (undocumented) + lastModified?: Date; + // (undocumented) + requestId?: string; + // (undocumented) + version?: string; } // @public (undocumented) export interface PathSetMetadataOptions extends CommonOptions { - // (undocumented) - abortSignal?: AbortSignalLike; - // (undocumented) - conditions?: DataLakeRequestConditions; + // (undocumented) + abortSignal?: AbortSignalLike; + // (undocumented) + conditions?: DataLakeRequestConditions; } // @public (undocumented) export type PathSetMetadataResponse = PathSetMetadataHeaders & { - _response: HttpResponse & { - parsedHeaders: PathSetMetadataHeaders; - }; + _response: HttpResponse & { + parsedHeaders: PathSetMetadataHeaders; + }; }; // @public (undocumented) export interface PathSetPermissionsOptions extends CommonOptions { - // (undocumented) - abortSignal?: AbortSignalLike; - // (undocumented) - conditions?: DataLakeRequestConditions; - // (undocumented) - group?: string; - // (undocumented) - owner?: string; + // (undocumented) + abortSignal?: AbortSignalLike; + // (undocumented) + conditions?: DataLakeRequestConditions; + // (undocumented) + group?: string; + // (undocumented) + owner?: string; } // @public export interface PathUpdateHeaders { - acceptRanges?: string; - cacheControl?: string; - contentDisposition?: string; - contentEncoding?: string; - contentLanguage?: string; - contentLength?: number; - contentMD5?: string; - contentRange?: string; - contentType?: string; - date?: Date; - // (undocumented) - errorCode?: string; - etag?: string; - lastModified?: Date; - properties?: string; - requestId?: string; - version?: string; + acceptRanges?: string; + cacheControl?: string; + contentDisposition?: string; + contentEncoding?: string; + contentLanguage?: string; + contentLength?: number; + contentMD5?: string; + contentRange?: string; + contentType?: string; + date?: Date; + // (undocumented) + errorCode?: string; + etag?: string; + lastModified?: Date; + properties?: string; + requestId?: string; + version?: string; } // @public type PathUpdateResponse = PathUpdateHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: PathUpdateHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: PathUpdateHeaders; + }; }; -export { PathUpdateResponse as FileAppendResponse }; +export { PathUpdateResponse as FileAppendResponse } -export { PathUpdateResponse as FileFlushResponse }; +export { PathUpdateResponse as FileFlushResponse } -export { PathUpdateResponse as FileUploadResponse }; +export { PathUpdateResponse as FileUploadResponse } // @public export class Pipeline extends Pipeline_2 { - constructor(factories: RequestPolicyFactory[], options?: PipelineOptions); - readonly factories: RequestPolicyFactory[]; - readonly options: PipelineOptions; - toServiceClientOptions(): ServiceClientOptions; + constructor(factories: RequestPolicyFactory[], options?: PipelineOptions); + readonly factories: RequestPolicyFactory[]; + readonly options: PipelineOptions; + toServiceClientOptions(): ServiceClientOptions; } // @public export interface PipelineOptions { - httpClient?: IHttpClient; + httpClient?: IHttpClient; } // @public (undocumented) @@ -1414,161 +1329,141 @@ export type PublicAccessType = "filesystem" | "file"; // @public (undocumented) export interface RawAccessPolicy { - // (undocumented) - expiresOn?: string; - // (undocumented) - permissions: string; - // (undocumented) - startsOn?: string; + // (undocumented) + expiresOn?: string; + // (undocumented) + permissions: string; + // (undocumented) + startsOn?: string; } -export { RequestPolicy }; +export { RequestPolicy } -export { RequestPolicyFactory }; +export { RequestPolicyFactory } -export { RequestPolicyOptions }; +export { RequestPolicyOptions } -export { RestError }; +export { RestError } // @public (undocumented) export interface RolePermissions { - // (undocumented) - execute: boolean; - // (undocumented) - read: boolean; - // (undocumented) - write: boolean; + // (undocumented) + execute: boolean; + // (undocumented) + read: boolean; + // (undocumented) + write: boolean; } // @public export interface SasIPRange { - end?: string; - start: string; + end?: string; + start: string; } // @public export enum SASProtocol { - Https = "https", - HttpsAndHttp = "https,http" + Https = "https", + HttpsAndHttp = "https,http" } // @public export class SASQueryParameters { - constructor( - version: string, - signature: string, - permissions?: string, - services?: string, - resourceTypes?: string, - protocol?: SASProtocol, - startsOn?: Date, - expiresOn?: Date, - ipRange?: SasIPRange, - identifier?: string, - resource?: string, - cacheControl?: string, - contentDisposition?: string, - contentEncoding?: string, - contentLanguage?: string, - contentType?: string, - userDelegationKey?: UserDelegationKey - ); - readonly cacheControl?: string; - readonly contentDisposition?: string; - readonly contentEncoding?: string; - readonly contentLanguage?: string; - readonly contentType?: string; - readonly expiresOn?: Date; - readonly identifier?: string; - get ipRange(): SasIPRange | undefined; - readonly permissions?: string; - readonly protocol?: SASProtocol; - readonly resource?: string; - readonly resourceTypes?: string; - readonly services?: string; - readonly signature: string; - readonly startsOn?: Date; - toString(): string; - readonly version: string; + constructor(version: string, signature: string, permissions?: string, services?: string, resourceTypes?: string, protocol?: SASProtocol, startsOn?: Date, expiresOn?: Date, ipRange?: SasIPRange, identifier?: string, resource?: string, cacheControl?: string, contentDisposition?: string, contentEncoding?: string, contentLanguage?: string, contentType?: string, userDelegationKey?: UserDelegationKey); + readonly cacheControl?: string; + readonly contentDisposition?: string; + readonly contentEncoding?: string; + readonly contentLanguage?: string; + readonly contentType?: string; + readonly expiresOn?: Date; + readonly identifier?: string; + get ipRange(): SasIPRange | undefined; + readonly permissions?: string; + readonly protocol?: SASProtocol; + readonly resource?: string; + readonly resourceTypes?: string; + readonly services?: string; + readonly signature: string; + readonly startsOn?: Date; + toString(): string; + readonly version: string; } // @public (undocumented) export interface ServiceGetUserDelegationKeyHeaders { - // (undocumented) - clientRequestId?: string; - // (undocumented) - date?: Date; - // (undocumented) - requestId?: string; - // (undocumented) - version?: string; + // (undocumented) + clientRequestId?: string; + // (undocumented) + date?: Date; + // (undocumented) + requestId?: string; + // (undocumented) + version?: string; } // @public export interface ServiceGetUserDelegationKeyOptions extends CommonOptions { - // (undocumented) - abortSignal?: AbortSignalLike; + // (undocumented) + abortSignal?: AbortSignalLike; } // @public (undocumented) -export type ServiceGetUserDelegationKeyResponse = UserDelegationKey & - ServiceGetUserDelegationKeyHeaders & { +export type ServiceGetUserDelegationKeyResponse = UserDelegationKey & ServiceGetUserDelegationKeyHeaders & { _response: HttpResponse & { - parsedHeaders: ServiceGetUserDelegationKeyHeaders; - bodyAsText: string; - parsedBody: UserDelegationKeyModel; + parsedHeaders: ServiceGetUserDelegationKeyHeaders; + bodyAsText: string; + parsedBody: UserDelegationKeyModel; }; - }; +}; -export { ServiceListContainersSegmentResponse }; +export { ServiceListContainersSegmentResponse } // @public (undocumented) export interface ServiceListFileSystemsOptions extends CommonOptions { - // (undocumented) - abortSignal?: AbortSignalLike; - // (undocumented) - includeMetadata?: boolean; - // (undocumented) - prefix?: string; + // (undocumented) + abortSignal?: AbortSignalLike; + // (undocumented) + includeMetadata?: boolean; + // (undocumented) + prefix?: string; } // @public (undocumented) export interface ServiceListFileSystemsSegmentHeaders { - // (undocumented) - clientRequestId?: string; - // (undocumented) - requestId?: string; - // (undocumented) - version?: string; + // (undocumented) + clientRequestId?: string; + // (undocumented) + requestId?: string; + // (undocumented) + version?: string; } // @public (undocumented) -export type ServiceListFileSystemsSegmentResponse = ListFileSystemsSegmentResponse & - ServiceListFileSystemsSegmentHeaders & { +export type ServiceListFileSystemsSegmentResponse = ListFileSystemsSegmentResponse & ServiceListFileSystemsSegmentHeaders & { _response: HttpResponse & { - parsedHeaders: ServiceListFileSystemsSegmentHeaders; - bodyAsText: string; - parsedBody: ListFileSystemsSegmentResponse; + parsedHeaders: ServiceListFileSystemsSegmentHeaders; + bodyAsText: string; + parsedBody: ListFileSystemsSegmentResponse; }; - }; +}; // @public (undocumented) export interface SignedIdentifier { - // (undocumented) - accessPolicy: T; - // (undocumented) - id: string; + // (undocumented) + accessPolicy: T; + // (undocumented) + id: string; } // @public export class StorageBrowserPolicy extends BaseRequestPolicy { - constructor(nextPolicy: RequestPolicy, options: RequestPolicyOptions); - sendRequest(request: WebResource): Promise; + constructor(nextPolicy: RequestPolicy, options: RequestPolicyOptions); + sendRequest(request: WebResource): Promise; } // @public export class StorageBrowserPolicyFactory implements RequestPolicyFactory { - create(nextPolicy: RequestPolicy, options: RequestPolicyOptions): StorageBrowserPolicy; + create(nextPolicy: RequestPolicy, options: RequestPolicyOptions): StorageBrowserPolicy; } // @public (undocumented) @@ -1576,75 +1471,55 @@ export const StorageOAuthScopes: string | string[]; // @public export interface StoragePipelineOptions { - httpClient?: IHttpClient; - keepAliveOptions?: KeepAliveOptions; - proxyOptions?: ProxyOptions; - retryOptions?: StorageRetryOptions; - userAgentOptions?: UserAgentOptions; + httpClient?: IHttpClient; + keepAliveOptions?: KeepAliveOptions; + proxyOptions?: ProxyOptions; + retryOptions?: StorageRetryOptions; + userAgentOptions?: UserAgentOptions; } // @public export interface StorageRetryOptions { - readonly maxRetryDelayInMs?: number; - readonly maxTries?: number; - readonly retryDelayInMs?: number; - readonly retryPolicyType?: StorageRetryPolicyType; - readonly secondaryHost?: string; - readonly tryTimeoutInMs?: number; + readonly maxRetryDelayInMs?: number; + readonly maxTries?: number; + readonly retryDelayInMs?: number; + readonly retryPolicyType?: StorageRetryPolicyType; + readonly secondaryHost?: string; + readonly tryTimeoutInMs?: number; } // @public export class StorageRetryPolicy extends BaseRequestPolicy { - constructor( - nextPolicy: RequestPolicy, - options: RequestPolicyOptions, - retryOptions?: StorageRetryOptions - ); - protected attemptSendRequest( - request: WebResource, - secondaryHas404: boolean, - attempt: number - ): Promise; - sendRequest(request: WebResource): Promise; - protected shouldRetry( - isPrimaryRetry: boolean, - attempt: number, - response?: HttpOperationResponse, - err?: RestError - ): boolean; + constructor(nextPolicy: RequestPolicy, options: RequestPolicyOptions, retryOptions?: StorageRetryOptions); + protected attemptSendRequest(request: WebResource, secondaryHas404: boolean, attempt: number): Promise; + sendRequest(request: WebResource): Promise; + protected shouldRetry(isPrimaryRetry: boolean, attempt: number, response?: HttpOperationResponse, err?: RestError): boolean; } // @public export class StorageRetryPolicyFactory implements RequestPolicyFactory { - constructor(retryOptions?: StorageRetryOptions); - create(nextPolicy: RequestPolicy, options: RequestPolicyOptions): StorageRetryPolicy; -} + constructor(retryOptions?: StorageRetryOptions); + create(nextPolicy: RequestPolicy, options: RequestPolicyOptions): StorageRetryPolicy; + } // @public export enum StorageRetryPolicyType { - EXPONENTIAL = 0, - FIXED = 1 + EXPONENTIAL = 0, + FIXED = 1 } // @public export class StorageSharedKeyCredential extends Credential { - constructor(accountName: string, accountKey: string); - readonly accountName: string; - computeHMACSHA256(stringToSign: string): string; - create( - nextPolicy: RequestPolicy, - options: RequestPolicyOptions - ): StorageSharedKeyCredentialPolicy; + constructor(accountName: string, accountKey: string); + readonly accountName: string; + computeHMACSHA256(stringToSign: string): string; + create(nextPolicy: RequestPolicy, options: RequestPolicyOptions): StorageSharedKeyCredentialPolicy; } // @public export class StorageSharedKeyCredentialPolicy extends CredentialPolicy { - constructor( - nextPolicy: RequestPolicy, - options: RequestPolicyOptions, - factory: StorageSharedKeyCredential - ); - protected signRequest(request: WebResource): WebResource; + constructor(nextPolicy: RequestPolicy, options: RequestPolicyOptions, factory: StorageSharedKeyCredential); + protected signRequest(request: WebResource): WebResource; } // @public (undocumented) @@ -1655,25 +1530,27 @@ export const ToDfsEndpointHostMappings: string[][]; // @public (undocumented) export interface UserDelegationKey { - // (undocumented) - signedExpiresOn: Date; - // (undocumented) - signedObjectId: string; - // (undocumented) - signedService: string; - // (undocumented) - signedStartsOn: Date; - // (undocumented) - signedTenantId: string; - // (undocumented) - signedVersion: string; - // (undocumented) - value: string; -} - -export { UserDelegationKeyModel }; - -export { WebResource }; + // (undocumented) + signedExpiresOn: Date; + // (undocumented) + signedObjectId: string; + // (undocumented) + signedService: string; + // (undocumented) + signedStartsOn: Date; + // (undocumented) + signedTenantId: string; + // (undocumented) + signedVersion: string; + // (undocumented) + value: string; +} + +export { UserDelegationKeyModel } + +export { WebResource } + // (No @packageDocumentation comment for this package) + ``` diff --git a/sdk/storage/storage-queue/review/storage-queue.api.md b/sdk/storage/storage-queue/review/storage-queue.api.md index bde105682634..2802b01534ab 100644 --- a/sdk/storage/storage-queue/review/storage-queue.api.md +++ b/sdk/storage/storage-queue/review/storage-queue.api.md @@ -3,191 +3,183 @@ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). ```ts -import { AbortSignalLike } from "@azure/abort-controller"; -import { BaseRequestPolicy } from "@azure/core-http"; -import * as coreHttp from "@azure/core-http"; -import { deserializationPolicy } from "@azure/core-http"; -import { HttpHeaders } from "@azure/core-http"; -import { HttpOperationResponse } from "@azure/core-http"; -import { HttpRequestBody } from "@azure/core-http"; -import { HttpResponse } from "@azure/core-http"; -import { HttpClient as IHttpClient } from "@azure/core-http"; -import { KeepAliveOptions } from "@azure/core-http"; -import { OperationTracingOptions } from "@azure/core-tracing"; -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { ProxyOptions } from "@azure/core-http"; -import { RequestPolicy } from "@azure/core-http"; -import { RequestPolicyFactory } from "@azure/core-http"; -import { RequestPolicyOptions } from "@azure/core-http"; -import { RestError } from "@azure/core-http"; -import { ServiceClientOptions } from "@azure/core-http"; -import { TokenCredential } from "@azure/core-http"; -import { UserAgentOptions } from "@azure/core-http"; -import { WebResource } from "@azure/core-http"; + +import { AbortSignalLike } from '@azure/abort-controller'; +import { BaseRequestPolicy } from '@azure/core-http'; +import * as coreHttp from '@azure/core-http'; +import { deserializationPolicy } from '@azure/core-http'; +import { HttpHeaders } from '@azure/core-http'; +import { HttpOperationResponse } from '@azure/core-http'; +import { HttpRequestBody } from '@azure/core-http'; +import { HttpResponse } from '@azure/core-http'; +import { HttpClient as IHttpClient } from '@azure/core-http'; +import { KeepAliveOptions } from '@azure/core-http'; +import { OperationTracingOptions } from '@azure/core-tracing'; +import { PagedAsyncIterableIterator } from '@azure/core-paging'; +import { ProxyOptions } from '@azure/core-http'; +import { RequestPolicy } from '@azure/core-http'; +import { RequestPolicyFactory } from '@azure/core-http'; +import { RequestPolicyOptions } from '@azure/core-http'; +import { RestError } from '@azure/core-http'; +import { ServiceClientOptions } from '@azure/core-http'; +import { TokenCredential } from '@azure/core-http'; +import { UserAgentOptions } from '@azure/core-http'; +import { WebResource } from '@azure/core-http'; // @public export interface AccessPolicy { - expiresOn?: string; - permissions?: string; - startsOn?: string; + expiresOn?: string; + permissions?: string; + startsOn?: string; } // @public export class AccountSASPermissions { - add: boolean; - create: boolean; - delete: boolean; - list: boolean; - static parse(permissions: string): AccountSASPermissions; - process: boolean; - read: boolean; - toString(): string; - update: boolean; - write: boolean; + add: boolean; + create: boolean; + delete: boolean; + list: boolean; + static parse(permissions: string): AccountSASPermissions; + process: boolean; + read: boolean; + toString(): string; + update: boolean; + write: boolean; } // @public export class AccountSASResourceTypes { - container: boolean; - object: boolean; - static parse(resourceTypes: string): AccountSASResourceTypes; - service: boolean; - toString(): string; + container: boolean; + object: boolean; + static parse(resourceTypes: string): AccountSASResourceTypes; + service: boolean; + toString(): string; } // @public export class AccountSASServices { - blob: boolean; - file: boolean; - static parse(services: string): AccountSASServices; - queue: boolean; - table: boolean; - toString(): string; + blob: boolean; + file: boolean; + static parse(services: string): AccountSASServices; + queue: boolean; + table: boolean; + toString(): string; } // @public export interface AccountSASSignatureValues { - expiresOn: Date; - ipRange?: SasIPRange; - permissions: AccountSASPermissions; - protocol?: SASProtocol; - resourceTypes: string; - services: string; - startsOn?: Date; - version?: string; + expiresOn: Date; + ipRange?: SasIPRange; + permissions: AccountSASPermissions; + protocol?: SASProtocol; + resourceTypes: string; + services: string; + startsOn?: Date; + version?: string; } // @public export class AnonymousCredential extends Credential { - create(nextPolicy: RequestPolicy, options: RequestPolicyOptions): AnonymousCredentialPolicy; + create(nextPolicy: RequestPolicy, options: RequestPolicyOptions): AnonymousCredentialPolicy; } // @public export class AnonymousCredentialPolicy extends CredentialPolicy { - constructor(nextPolicy: RequestPolicy, options: RequestPolicyOptions); + constructor(nextPolicy: RequestPolicy, options: RequestPolicyOptions); } -export { BaseRequestPolicy }; +export { BaseRequestPolicy } // @public export interface CommonOptions { - tracingOptions?: OperationTracingOptions; + tracingOptions?: OperationTracingOptions; } // @public export interface CorsRule { - allowedHeaders: string; - allowedMethods: string; - allowedOrigins: string; - exposedHeaders: string; - maxAgeInSeconds: number; + allowedHeaders: string; + allowedMethods: string; + allowedOrigins: string; + exposedHeaders: string; + maxAgeInSeconds: number; } // @public export abstract class Credential implements RequestPolicyFactory { - create(_nextPolicy: RequestPolicy, _options: RequestPolicyOptions): RequestPolicy; + create(_nextPolicy: RequestPolicy, _options: RequestPolicyOptions): RequestPolicy; } // @public export abstract class CredentialPolicy extends BaseRequestPolicy { - sendRequest(request: WebResource): Promise; - protected signRequest(request: WebResource): WebResource; + sendRequest(request: WebResource): Promise; + protected signRequest(request: WebResource): WebResource; } // @public -export type CredentialPolicyCreator = ( - nextPolicy: RequestPolicy, - options: RequestPolicyOptions -) => CredentialPolicy; +export type CredentialPolicyCreator = (nextPolicy: RequestPolicy, options: RequestPolicyOptions) => CredentialPolicy; // @public export interface DequeuedMessageItem { - dequeueCount: number; - expiresOn: Date; - insertedOn: Date; - messageId: string; - messageText: string; - nextVisibleOn: Date; - popReceipt: string; + dequeueCount: number; + expiresOn: Date; + insertedOn: Date; + messageId: string; + messageText: string; + nextVisibleOn: Date; + popReceipt: string; } -export { deserializationPolicy }; +export { deserializationPolicy } // @public export interface EnqueuedMessage { - expiresOn: Date; - insertedOn: Date; - messageId: string; - nextVisibleOn: Date; - popReceipt: string; + expiresOn: Date; + insertedOn: Date; + messageId: string; + nextVisibleOn: Date; + popReceipt: string; } // @public -export function generateAccountSASQueryParameters( - accountSASSignatureValues: AccountSASSignatureValues, - sharedKeyCredential: StorageSharedKeyCredential -): SASQueryParameters; +export function generateAccountSASQueryParameters(accountSASSignatureValues: AccountSASSignatureValues, sharedKeyCredential: StorageSharedKeyCredential): SASQueryParameters; // @public -export function generateQueueSASQueryParameters( - queueSASSignatureValues: QueueSASSignatureValues, - sharedKeyCredential: StorageSharedKeyCredential -): SASQueryParameters; +export function generateQueueSASQueryParameters(queueSASSignatureValues: QueueSASSignatureValues, sharedKeyCredential: StorageSharedKeyCredential): SASQueryParameters; // @public export interface GeoReplication { - lastSyncOn: Date; - status: GeoReplicationStatusType; + lastSyncOn: Date; + status: GeoReplicationStatusType; } // @public -export type GeoReplicationStatusType = "live" | "bootstrap" | "unavailable"; +export type GeoReplicationStatusType = 'live' | 'bootstrap' | 'unavailable'; -export { HttpHeaders }; +export { HttpHeaders } -export { HttpOperationResponse }; +export { HttpOperationResponse } -export { HttpRequestBody }; +export { HttpRequestBody } -export { IHttpClient }; +export { IHttpClient } // @public -export type ListQueuesIncludeType = "metadata"; +export type ListQueuesIncludeType = 'metadata'; // @public export interface ListQueuesSegmentResponse { - // (undocumented) - continuationToken: string; - // (undocumented) - marker?: string; - // (undocumented) - maxPageSize: number; - // (undocumented) - prefix: string; - // (undocumented) - queueItems?: QueueItem[]; - // (undocumented) - serviceEndpoint: string; + // (undocumented) + continuationToken: string; + // (undocumented) + marker?: string; + // (undocumented) + maxPageSize: number; + // (undocumented) + prefix: string; + // (undocumented) + queueItems?: QueueItem[]; + // (undocumented) + serviceEndpoint: string; } // @public @@ -195,165 +187,162 @@ export const logger: import("@azure/logger").AzureLogger; // @public export interface Logging { - deleteProperty: boolean; - read: boolean; - // (undocumented) - retentionPolicy: RetentionPolicy; - version: string; - write: boolean; + deleteProperty: boolean; + read: boolean; + // (undocumented) + retentionPolicy: RetentionPolicy; + version: string; + write: boolean; } // @public export interface MessageIdDeleteHeaders { - clientRequestId?: string; - date?: Date; - // (undocumented) - errorCode?: string; - requestId?: string; - version?: string; + clientRequestId?: string; + date?: Date; + // (undocumented) + errorCode?: string; + requestId?: string; + version?: string; } // @public export type MessageIdDeleteResponse = MessageIdDeleteHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: MessageIdDeleteHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: MessageIdDeleteHeaders; + }; }; // @public export interface MessageIdUpdateHeaders { - clientRequestId?: string; - date?: Date; - // (undocumented) - errorCode?: string; - nextVisibleOn?: Date; - popReceipt?: string; - requestId?: string; - version?: string; + clientRequestId?: string; + date?: Date; + // (undocumented) + errorCode?: string; + nextVisibleOn?: Date; + popReceipt?: string; + requestId?: string; + version?: string; } // @public export type MessageIdUpdateResponse = MessageIdUpdateHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: MessageIdUpdateHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: MessageIdUpdateHeaders; + }; }; // @public export interface MessagesClearHeaders { - clientRequestId?: string; - date?: Date; - // (undocumented) - errorCode?: string; - requestId?: string; - version?: string; + clientRequestId?: string; + date?: Date; + // (undocumented) + errorCode?: string; + requestId?: string; + version?: string; } // @public export type MessagesClearResponse = MessagesClearHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: MessagesClearHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: MessagesClearHeaders; + }; }; // @public export interface MessagesDequeueHeaders { - clientRequestId?: string; - date?: Date; - // (undocumented) - errorCode?: string; - requestId?: string; - version?: string; + clientRequestId?: string; + date?: Date; + // (undocumented) + errorCode?: string; + requestId?: string; + version?: string; } // @public export interface MessagesDequeueOptionalParams extends coreHttp.RequestOptionsBase { - numberOfMessages?: number; - requestId?: string; - timeoutInSeconds?: number; - visibilityTimeout?: number; + numberOfMessages?: number; + requestId?: string; + timeoutInSeconds?: number; + visibilityTimeout?: number; } // @public export interface MessagesEnqueueHeaders { - clientRequestId?: string; - date?: Date; - // (undocumented) - errorCode?: string; - requestId?: string; - version?: string; + clientRequestId?: string; + date?: Date; + // (undocumented) + errorCode?: string; + requestId?: string; + version?: string; } // @public export interface MessagesEnqueueOptionalParams extends coreHttp.RequestOptionsBase { - messageTimeToLive?: number; - requestId?: string; - timeoutInSeconds?: number; - visibilityTimeout?: number; + messageTimeToLive?: number; + requestId?: string; + timeoutInSeconds?: number; + visibilityTimeout?: number; } // @public export interface MessagesPeekHeaders { - clientRequestId?: string; - date?: Date; - // (undocumented) - errorCode?: string; - requestId?: string; - version?: string; + clientRequestId?: string; + date?: Date; + // (undocumented) + errorCode?: string; + requestId?: string; + version?: string; } // @public export interface MessagesPeekOptionalParams extends coreHttp.RequestOptionsBase { - numberOfMessages?: number; - requestId?: string; - timeoutInSeconds?: number; + numberOfMessages?: number; + requestId?: string; + timeoutInSeconds?: number; } // @public export interface Metadata { - [propertyName: string]: string; + [propertyName: string]: string; } // @public export interface Metrics { - enabled: boolean; - includeAPIs?: boolean; - // (undocumented) - retentionPolicy?: RetentionPolicy; - version?: string; + enabled: boolean; + includeAPIs?: boolean; + // (undocumented) + retentionPolicy?: RetentionPolicy; + version?: string; } // @public -export function newPipeline( - credential: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, - pipelineOptions?: StoragePipelineOptions -): Pipeline; +export function newPipeline(credential: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, pipelineOptions?: StoragePipelineOptions): Pipeline; // @public export interface PeekedMessageItem { - dequeueCount: number; - expiresOn: Date; - insertedOn: Date; - messageId: string; - messageText: string; + dequeueCount: number; + expiresOn: Date; + insertedOn: Date; + messageId: string; + messageText: string; } // @public export class Pipeline { - constructor(factories: RequestPolicyFactory[], options?: PipelineOptions); - readonly factories: RequestPolicyFactory[]; - readonly options: PipelineOptions; - toServiceClientOptions(): ServiceClientOptions; + constructor(factories: RequestPolicyFactory[], options?: PipelineOptions); + readonly factories: RequestPolicyFactory[]; + readonly options: PipelineOptions; + toServiceClientOptions(): ServiceClientOptions; } // @public export interface PipelineOptions { - httpClient?: IHttpClient; + httpClient?: IHttpClient; } // @public export interface QueueClearMessagesOptions extends CommonOptions { - abortSignal?: AbortSignalLike; + abortSignal?: AbortSignalLike; } // @public @@ -363,83 +352,60 @@ export type QueueClearMessagesResponse = MessagesClearResponse; // // @public export class QueueClient extends StorageClient { - constructor(connectionString: string, queueName: string, options?: StoragePipelineOptions); - constructor( - url: string, - credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, - options?: StoragePipelineOptions - ); - constructor(url: string, pipeline: Pipeline); - clearMessages(options?: QueueClearMessagesOptions): Promise; - create(options?: QueueCreateOptions): Promise; - delete(options?: QueueDeleteOptions): Promise; - deleteMessage( - messageId: string, - popReceipt: string, - options?: QueueDeleteMessageOptions - ): Promise; - getAccessPolicy(options?: QueueGetAccessPolicyOptions): Promise; - getProperties(options?: QueueGetPropertiesOptions): Promise; - get name(): string; - peekMessages(options?: QueuePeekMessagesOptions): Promise; - receiveMessages(options?: QueueReceiveMessageOptions): Promise; - sendMessage( - messageText: string, - options?: QueueSendMessageOptions - ): Promise; - setAccessPolicy( - queueAcl?: SignedIdentifier[], - options?: QueueSetAccessPolicyOptions - ): Promise; - setMetadata( - metadata?: Metadata, - options?: QueueSetMetadataOptions - ): Promise; - updateMessage( - messageId: string, - popReceipt: string, - message: string, - visibilityTimeout?: number, - options?: QueueUpdateMessageOptions - ): Promise; + constructor(connectionString: string, queueName: string, options?: StoragePipelineOptions); + constructor(url: string, credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, options?: StoragePipelineOptions); + constructor(url: string, pipeline: Pipeline); + clearMessages(options?: QueueClearMessagesOptions): Promise; + create(options?: QueueCreateOptions): Promise; + delete(options?: QueueDeleteOptions): Promise; + deleteMessage(messageId: string, popReceipt: string, options?: QueueDeleteMessageOptions): Promise; + getAccessPolicy(options?: QueueGetAccessPolicyOptions): Promise; + getProperties(options?: QueueGetPropertiesOptions): Promise; + get name(): string; + peekMessages(options?: QueuePeekMessagesOptions): Promise; + receiveMessages(options?: QueueReceiveMessageOptions): Promise; + sendMessage(messageText: string, options?: QueueSendMessageOptions): Promise; + setAccessPolicy(queueAcl?: SignedIdentifier[], options?: QueueSetAccessPolicyOptions): Promise; + setMetadata(metadata?: Metadata, options?: QueueSetMetadataOptions): Promise; + updateMessage(messageId: string, popReceipt: string, message: string, visibilityTimeout?: number, options?: QueueUpdateMessageOptions): Promise; } // @public export interface QueueCreateHeaders { - clientRequestId?: string; - date?: Date; - // (undocumented) - errorCode?: string; - requestId?: string; - version?: string; + clientRequestId?: string; + date?: Date; + // (undocumented) + errorCode?: string; + requestId?: string; + version?: string; } // @public export interface QueueCreateOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - metadata?: Metadata; + abortSignal?: AbortSignalLike; + metadata?: Metadata; } // @public export type QueueCreateResponse = QueueCreateHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: QueueCreateHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: QueueCreateHeaders; + }; }; // @public export interface QueueDeleteHeaders { - clientRequestId?: string; - date?: Date; - // (undocumented) - errorCode?: string; - requestId?: string; - version?: string; + clientRequestId?: string; + date?: Date; + // (undocumented) + errorCode?: string; + requestId?: string; + version?: string; } // @public export interface QueueDeleteMessageOptions extends CommonOptions { - abortSignal?: AbortSignalLike; + abortSignal?: AbortSignalLike; } // @public @@ -447,232 +413,223 @@ export type QueueDeleteMessageResponse = MessageIdDeleteResponse; // @public export interface QueueDeleteOptions extends CommonOptions { - abortSignal?: AbortSignalLike; + abortSignal?: AbortSignalLike; } // @public export type QueueDeleteResponse = QueueDeleteHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: QueueDeleteHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: QueueDeleteHeaders; + }; }; // @public export interface QueueGetAccessPolicyHeaders { - clientRequestId?: string; - date?: Date; - // (undocumented) - errorCode?: string; - requestId?: string; - version?: string; + clientRequestId?: string; + date?: Date; + // (undocumented) + errorCode?: string; + requestId?: string; + version?: string; } // @public export interface QueueGetAccessPolicyOptions extends CommonOptions { - abortSignal?: AbortSignalLike; + abortSignal?: AbortSignalLike; } // @public export type QueueGetAccessPolicyResponse = { - signedIdentifiers: SignedIdentifier[]; + signedIdentifiers: SignedIdentifier[]; } & QueueGetAccessPolicyHeaders & { _response: HttpResponse & { - parsedHeaders: QueueGetAccessPolicyHeaders; - bodyAsText: string; - parsedBody: SignedIdentifierModel[]; + parsedHeaders: QueueGetAccessPolicyHeaders; + bodyAsText: string; + parsedBody: SignedIdentifierModel[]; }; - }; +}; // @public export interface QueueGetPropertiesHeaders { - approximateMessagesCount?: number; - clientRequestId?: string; - date?: Date; - // (undocumented) - errorCode?: string; - // (undocumented) - metadata?: { - [propertyName: string]: string; - }; - requestId?: string; - version?: string; + approximateMessagesCount?: number; + clientRequestId?: string; + date?: Date; + // (undocumented) + errorCode?: string; + // (undocumented) + metadata?: { + [propertyName: string]: string; + }; + requestId?: string; + version?: string; } // @public export interface QueueGetPropertiesOptions extends CommonOptions { - abortSignal?: AbortSignalLike; + abortSignal?: AbortSignalLike; } // @public export type QueueGetPropertiesResponse = QueueGetPropertiesHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: QueueGetPropertiesHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: QueueGetPropertiesHeaders; + }; }; // @public export interface QueueItem { - // (undocumented) - metadata?: { - [propertyName: string]: string; - }; - name: string; + // (undocumented) + metadata?: { + [propertyName: string]: string; + }; + name: string; } // @public -export interface QueuePeekMessagesOptions extends MessagesPeekOptionalParams, CommonOptions {} +export interface QueuePeekMessagesOptions extends MessagesPeekOptionalParams, CommonOptions { +} // @public export type QueuePeekMessagesResponse = { - peekedMessageItems: PeekedMessageItem[]; + peekedMessageItems: PeekedMessageItem[]; } & MessagesPeekHeaders & { _response: HttpResponse & { - parsedHeaders: MessagesPeekHeaders; - bodyAsText: string; - parsedBody: PeekedMessageItem[]; + parsedHeaders: MessagesPeekHeaders; + bodyAsText: string; + parsedBody: PeekedMessageItem[]; }; - }; +}; // @public -export interface QueueReceiveMessageOptions extends MessagesDequeueOptionalParams, CommonOptions {} +export interface QueueReceiveMessageOptions extends MessagesDequeueOptionalParams, CommonOptions { +} // @public export type QueueReceiveMessageResponse = { - receivedMessageItems: ReceivedMessageItem[]; + receivedMessageItems: ReceivedMessageItem[]; } & MessagesDequeueHeaders & { _response: HttpResponse & { - parsedHeaders: MessagesDequeueHeaders; - bodyAsText: string; - parsedBody: ReceivedMessageItem[]; + parsedHeaders: MessagesDequeueHeaders; + bodyAsText: string; + parsedBody: ReceivedMessageItem[]; }; - }; +}; // @public export class QueueSASPermissions { - add: boolean; - static parse(permissions: string): QueueSASPermissions; - process: boolean; - read: boolean; - toString(): string; - update: boolean; + add: boolean; + static parse(permissions: string): QueueSASPermissions; + process: boolean; + read: boolean; + toString(): string; + update: boolean; } // @public export interface QueueSASSignatureValues { - expiresOn?: Date; - identifier?: string; - ipRange?: SasIPRange; - permissions?: QueueSASPermissions; - protocol?: SASProtocol; - queueName: string; - startsOn?: Date; - version?: string; + expiresOn?: Date; + identifier?: string; + ipRange?: SasIPRange; + permissions?: QueueSASPermissions; + protocol?: SASProtocol; + queueName: string; + startsOn?: Date; + version?: string; } // @public -export interface QueueSendMessageOptions extends MessagesEnqueueOptionalParams, CommonOptions {} +export interface QueueSendMessageOptions extends MessagesEnqueueOptionalParams, CommonOptions { +} // @public export type QueueSendMessageResponse = { - messageId: string; - popReceipt: string; - insertedOn: Date; - expiresOn: Date; - nextVisibleOn: Date; + messageId: string; + popReceipt: string; + insertedOn: Date; + expiresOn: Date; + nextVisibleOn: Date; } & MessagesEnqueueHeaders & { _response: HttpResponse & { - parsedHeaders: MessagesEnqueueHeaders; - bodyAsText: string; - parsedBody: EnqueuedMessage[]; + parsedHeaders: MessagesEnqueueHeaders; + bodyAsText: string; + parsedBody: EnqueuedMessage[]; }; - }; +}; // @public export class QueueServiceClient extends StorageClient { - constructor( - url: string, - credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, - options?: StoragePipelineOptions - ); - constructor(url: string, pipeline: Pipeline); - createQueue(queueName: string, options?: QueueCreateOptions): Promise; - deleteQueue(queueName: string, options?: QueueDeleteOptions): Promise; - static fromConnectionString( - connectionString: string, - options?: StoragePipelineOptions - ): QueueServiceClient; - getProperties(options?: ServiceGetPropertiesOptions): Promise; - getQueueClient(queueName: string): QueueClient; - getStatistics(options?: ServiceGetStatisticsOptions): Promise; - listQueues( - options?: ServiceListQueuesOptions - ): PagedAsyncIterableIterator; - setProperties( - properties: QueueServiceProperties, - options?: ServiceGetPropertiesOptions - ): Promise; + constructor(url: string, credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, options?: StoragePipelineOptions); + constructor(url: string, pipeline: Pipeline); + createQueue(queueName: string, options?: QueueCreateOptions): Promise; + deleteQueue(queueName: string, options?: QueueDeleteOptions): Promise; + static fromConnectionString(connectionString: string, options?: StoragePipelineOptions): QueueServiceClient; + getProperties(options?: ServiceGetPropertiesOptions): Promise; + getQueueClient(queueName: string): QueueClient; + getStatistics(options?: ServiceGetStatisticsOptions): Promise; + listQueues(options?: ServiceListQueuesOptions): PagedAsyncIterableIterator; + setProperties(properties: QueueServiceProperties, options?: ServiceGetPropertiesOptions): Promise; } // @public export interface QueueServiceProperties { - cors?: CorsRule[]; - hourMetrics?: Metrics; - minuteMetrics?: Metrics; - queueAnalyticsLogging?: Logging; + cors?: CorsRule[]; + hourMetrics?: Metrics; + minuteMetrics?: Metrics; + queueAnalyticsLogging?: Logging; } // @public export interface QueueServiceStatistics { - geoReplication?: GeoReplication; + geoReplication?: GeoReplication; } // @public export interface QueueSetAccessPolicyHeaders { - clientRequestId?: string; - date?: Date; - // (undocumented) - errorCode?: string; - requestId?: string; - version?: string; + clientRequestId?: string; + date?: Date; + // (undocumented) + errorCode?: string; + requestId?: string; + version?: string; } // @public export interface QueueSetAccessPolicyOptions extends CommonOptions { - abortSignal?: AbortSignalLike; + abortSignal?: AbortSignalLike; } // @public export type QueueSetAccessPolicyResponse = QueueSetAccessPolicyHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: QueueSetAccessPolicyHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: QueueSetAccessPolicyHeaders; + }; }; // @public export interface QueueSetMetadataHeaders { - clientRequestId?: string; - date?: Date; - // (undocumented) - errorCode?: string; - requestId?: string; - version?: string; + clientRequestId?: string; + date?: Date; + // (undocumented) + errorCode?: string; + requestId?: string; + version?: string; } // @public export interface QueueSetMetadataOptions extends CommonOptions { - abortSignal?: AbortSignalLike; + abortSignal?: AbortSignalLike; } // @public export type QueueSetMetadataResponse = QueueSetMetadataHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: QueueSetMetadataHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: QueueSetMetadataHeaders; + }; }; // @public export interface QueueUpdateMessageOptions extends CommonOptions { - abortSignal?: AbortSignalLike; + abortSignal?: AbortSignalLike; } // @public @@ -681,183 +638,168 @@ export type QueueUpdateMessageResponse = MessageIdUpdateResponse; // @public export type ReceivedMessageItem = DequeuedMessageItem; -export { RequestPolicy }; +export { RequestPolicy } -export { RequestPolicyFactory }; +export { RequestPolicyFactory } -export { RequestPolicyOptions }; +export { RequestPolicyOptions } -export { RestError }; +export { RestError } // @public export interface RetentionPolicy { - days?: number; - enabled: boolean; + days?: number; + enabled: boolean; } // @public export interface SasIPRange { - end?: string; - start: string; + end?: string; + start: string; } // @public export enum SASProtocol { - Https = "https", - HttpsAndHttp = "https,http" + Https = "https", + HttpsAndHttp = "https,http" } // @public export class SASQueryParameters { - constructor( - version: string, - signature: string, - permissions?: string, - services?: string, - resourceTypes?: string, - protocol?: SASProtocol, - startsOn?: Date, - expiresOn?: Date, - ipRange?: SasIPRange, - identifier?: string, - resource?: string - ); - readonly expiresOn?: Date; - readonly identifier?: string; - get ipRange(): SasIPRange | undefined; - readonly permissions?: string; - readonly protocol?: SASProtocol; - readonly resource?: string; - readonly resourceTypes?: string; - readonly services?: string; - readonly signature: string; - readonly startsOn?: Date; - toString(): string; - readonly version: string; + constructor(version: string, signature: string, permissions?: string, services?: string, resourceTypes?: string, protocol?: SASProtocol, startsOn?: Date, expiresOn?: Date, ipRange?: SasIPRange, identifier?: string, resource?: string); + readonly expiresOn?: Date; + readonly identifier?: string; + get ipRange(): SasIPRange | undefined; + readonly permissions?: string; + readonly protocol?: SASProtocol; + readonly resource?: string; + readonly resourceTypes?: string; + readonly services?: string; + readonly signature: string; + readonly startsOn?: Date; + toString(): string; + readonly version: string; } // @public export interface ServiceGetPropertiesHeaders { - clientRequestId?: string; - // (undocumented) - errorCode?: string; - requestId?: string; - version?: string; + clientRequestId?: string; + // (undocumented) + errorCode?: string; + requestId?: string; + version?: string; } // @public export interface ServiceGetPropertiesOptions extends CommonOptions { - abortSignal?: AbortSignalLike; + abortSignal?: AbortSignalLike; } // @public -export type ServiceGetPropertiesResponse = QueueServiceProperties & - ServiceGetPropertiesHeaders & { +export type ServiceGetPropertiesResponse = QueueServiceProperties & ServiceGetPropertiesHeaders & { _response: coreHttp.HttpResponse & { - parsedHeaders: ServiceGetPropertiesHeaders; - bodyAsText: string; - parsedBody: QueueServiceProperties; + parsedHeaders: ServiceGetPropertiesHeaders; + bodyAsText: string; + parsedBody: QueueServiceProperties; }; - }; +}; // @public export interface ServiceGetStatisticsHeaders { - clientRequestId?: string; - date?: Date; - // (undocumented) - errorCode?: string; - requestId?: string; - version?: string; + clientRequestId?: string; + date?: Date; + // (undocumented) + errorCode?: string; + requestId?: string; + version?: string; } // @public export interface ServiceGetStatisticsOptions extends CommonOptions { - abortSignal?: AbortSignalLike; + abortSignal?: AbortSignalLike; } // @public -export type ServiceGetStatisticsResponse = QueueServiceStatistics & - ServiceGetStatisticsHeaders & { +export type ServiceGetStatisticsResponse = QueueServiceStatistics & ServiceGetStatisticsHeaders & { _response: coreHttp.HttpResponse & { - parsedHeaders: ServiceGetStatisticsHeaders; - bodyAsText: string; - parsedBody: QueueServiceStatistics; + parsedHeaders: ServiceGetStatisticsHeaders; + bodyAsText: string; + parsedBody: QueueServiceStatistics; }; - }; +}; // @public export interface ServiceListQueuesOptions extends CommonOptions { - abortSignal?: AbortSignalLike; - includeMetadata?: boolean; - prefix?: string; + abortSignal?: AbortSignalLike; + includeMetadata?: boolean; + prefix?: string; } // @public export interface ServiceListQueuesSegmentHeaders { - clientRequestId?: string; - date?: Date; - // (undocumented) - errorCode?: string; - requestId?: string; - version?: string; + clientRequestId?: string; + date?: Date; + // (undocumented) + errorCode?: string; + requestId?: string; + version?: string; } // @public -export type ServiceListQueuesSegmentResponse = ListQueuesSegmentResponse & - ServiceListQueuesSegmentHeaders & { +export type ServiceListQueuesSegmentResponse = ListQueuesSegmentResponse & ServiceListQueuesSegmentHeaders & { _response: coreHttp.HttpResponse & { - parsedHeaders: ServiceListQueuesSegmentHeaders; - bodyAsText: string; - parsedBody: ListQueuesSegmentResponse; + parsedHeaders: ServiceListQueuesSegmentHeaders; + bodyAsText: string; + parsedBody: ListQueuesSegmentResponse; }; - }; +}; // @public export interface ServiceSetPropertiesHeaders { - clientRequestId?: string; - // (undocumented) - errorCode?: string; - requestId?: string; - version?: string; + clientRequestId?: string; + // (undocumented) + errorCode?: string; + requestId?: string; + version?: string; } // @public export interface ServiceSetPropertiesOptions extends CommonOptions { - abortSignal?: AbortSignalLike; + abortSignal?: AbortSignalLike; } // @public export type ServiceSetPropertiesResponse = ServiceSetPropertiesHeaders & { - _response: coreHttp.HttpResponse & { - parsedHeaders: ServiceSetPropertiesHeaders; - }; + _response: coreHttp.HttpResponse & { + parsedHeaders: ServiceSetPropertiesHeaders; + }; }; // @public export interface SignedIdentifier { - accessPolicy: { - startsOn?: Date; - expiresOn?: Date; - permissions?: string; - }; - id: string; + accessPolicy: { + startsOn?: Date; + expiresOn?: Date; + permissions?: string; + }; + id: string; } // @public export interface SignedIdentifierModel { - accessPolicy: AccessPolicy; - id: string; + accessPolicy: AccessPolicy; + id: string; } // @public export class StorageBrowserPolicy extends BaseRequestPolicy { - constructor(nextPolicy: RequestPolicy, options: RequestPolicyOptions); - sendRequest(request: WebResource): Promise; + constructor(nextPolicy: RequestPolicy, options: RequestPolicyOptions); + sendRequest(request: WebResource): Promise; } // @public export class StorageBrowserPolicyFactory implements RequestPolicyFactory { - create(nextPolicy: RequestPolicy, options: RequestPolicyOptions): StorageBrowserPolicy; + create(nextPolicy: RequestPolicy, options: RequestPolicyOptions): StorageBrowserPolicy; } // @public @@ -865,78 +807,60 @@ export const StorageOAuthScopes: string | string[]; // @public export interface StoragePipelineOptions { - httpClient?: IHttpClient; - keepAliveOptions?: KeepAliveOptions; - proxyOptions?: ProxyOptions; - retryOptions?: StorageRetryOptions; - userAgentOptions?: UserAgentOptions; + httpClient?: IHttpClient; + keepAliveOptions?: KeepAliveOptions; + proxyOptions?: ProxyOptions; + retryOptions?: StorageRetryOptions; + userAgentOptions?: UserAgentOptions; } // @public export interface StorageRetryOptions { - readonly maxRetryDelayInMs?: number; - readonly maxTries?: number; - readonly retryDelayInMs?: number; - readonly retryPolicyType?: StorageRetryPolicyType; - readonly secondaryHost?: string; - readonly tryTimeoutInMs?: number; + readonly maxRetryDelayInMs?: number; + readonly maxTries?: number; + readonly retryDelayInMs?: number; + readonly retryPolicyType?: StorageRetryPolicyType; + readonly secondaryHost?: string; + readonly tryTimeoutInMs?: number; } // @public export class StorageRetryPolicy extends BaseRequestPolicy { - constructor( - nextPolicy: RequestPolicy, - options: RequestPolicyOptions, - retryOptions?: StorageRetryOptions - ); - protected attemptSendRequest( - request: WebResource, - secondaryHas404: boolean, - attempt: number - ): Promise; - sendRequest(request: WebResource): Promise; - protected shouldRetry( - isPrimaryRetry: boolean, - attempt: number, - response?: HttpOperationResponse, - err?: RestError - ): boolean; + constructor(nextPolicy: RequestPolicy, options: RequestPolicyOptions, retryOptions?: StorageRetryOptions); + protected attemptSendRequest(request: WebResource, secondaryHas404: boolean, attempt: number): Promise; + sendRequest(request: WebResource): Promise; + protected shouldRetry(isPrimaryRetry: boolean, attempt: number, response?: HttpOperationResponse, err?: RestError): boolean; } // @public export class StorageRetryPolicyFactory implements RequestPolicyFactory { - constructor(retryOptions?: StorageRetryOptions); - create(nextPolicy: RequestPolicy, options: RequestPolicyOptions): StorageRetryPolicy; -} + constructor(retryOptions?: StorageRetryOptions); + create(nextPolicy: RequestPolicy, options: RequestPolicyOptions): StorageRetryPolicy; + } // @public export enum StorageRetryPolicyType { - EXPONENTIAL = 0, - FIXED = 1 + EXPONENTIAL = 0, + FIXED = 1 } // @public export class StorageSharedKeyCredential extends Credential { - constructor(accountName: string, accountKey: string); - readonly accountName: string; - computeHMACSHA256(stringToSign: string): string; - create( - nextPolicy: RequestPolicy, - options: RequestPolicyOptions - ): StorageSharedKeyCredentialPolicy; + constructor(accountName: string, accountKey: string); + readonly accountName: string; + computeHMACSHA256(stringToSign: string): string; + create(nextPolicy: RequestPolicy, options: RequestPolicyOptions): StorageSharedKeyCredentialPolicy; } // @public export class StorageSharedKeyCredentialPolicy extends CredentialPolicy { - constructor( - nextPolicy: RequestPolicy, - options: RequestPolicyOptions, - factory: StorageSharedKeyCredential - ); - protected signRequest(request: WebResource): WebResource; + constructor(nextPolicy: RequestPolicy, options: RequestPolicyOptions, factory: StorageSharedKeyCredential); + protected signRequest(request: WebResource): WebResource; } -export { WebResource }; +export { WebResource } + // (No @packageDocumentation comment for this package) + ``` From d96896b89090a01cdf30dffc00a15f0bd6187956 Mon Sep 17 00:00:00 2001 From: Jeff Fisher Date: Thu, 16 Apr 2020 17:04:04 -0700 Subject: [PATCH 22/29] Update min version of core-http --- sdk/appconfiguration/app-configuration/package.json | 2 +- sdk/core/core-arm/package.json | 2 +- sdk/core/core-lro/package.json | 2 +- sdk/formrecognizer/ai-form-recognizer/package.json | 2 +- sdk/identity/identity/package.json | 2 +- sdk/keyvault/keyvault-certificates/package.json | 2 +- sdk/keyvault/keyvault-keys/package.json | 2 +- sdk/keyvault/keyvault-secrets/package.json | 2 +- sdk/search/search-documents/package.json | 2 +- sdk/servicebus/service-bus/package.json | 2 +- sdk/storage/storage-blob/package.json | 2 +- sdk/storage/storage-file-datalake/package.json | 2 +- sdk/storage/storage-file-share/package.json | 2 +- sdk/storage/storage-queue/package.json | 2 +- sdk/template/template/package.json | 2 +- sdk/test-utils/recorder/package.json | 2 +- sdk/textanalytics/ai-text-analytics/package.json | 2 +- 17 files changed, 17 insertions(+), 17 deletions(-) diff --git a/sdk/appconfiguration/app-configuration/package.json b/sdk/appconfiguration/app-configuration/package.json index 7125d09be644..72b9c74e3393 100644 --- a/sdk/appconfiguration/app-configuration/package.json +++ b/sdk/appconfiguration/app-configuration/package.json @@ -72,7 +72,7 @@ }, "dependencies": { "@azure/core-asynciterator-polyfill": "^1.0.0", - "@azure/core-http": "^1.0.0", + "@azure/core-http": "^1.1.1", "@azure/core-paging": "^1.1.0", "@azure/core-tracing": "1.0.0-preview.8", "@opentelemetry/api": "^0.5.1", diff --git a/sdk/core/core-arm/package.json b/sdk/core/core-arm/package.json index 21241cf8820a..3954a0aee8a8 100644 --- a/sdk/core/core-arm/package.json +++ b/sdk/core/core-arm/package.json @@ -99,7 +99,7 @@ ] }, "dependencies": { - "@azure/core-http": "^1.0.0", + "@azure/core-http": "^1.1.1", "tslib": "^1.10.0" }, "devDependencies": { diff --git a/sdk/core/core-lro/package.json b/sdk/core/core-lro/package.json index 2c9cd9ad39b7..ec4d9ff5d6b3 100644 --- a/sdk/core/core-lro/package.json +++ b/sdk/core/core-lro/package.json @@ -95,7 +95,7 @@ "sideEffects": false, "dependencies": { "@azure/abort-controller": "^1.0.0", - "@azure/core-http": "^1.0.0", + "@azure/core-http": "^1.1.1", "@opentelemetry/api": "^0.5.1", "events": "^3.0.0", "tslib": "^1.10.0" diff --git a/sdk/formrecognizer/ai-form-recognizer/package.json b/sdk/formrecognizer/ai-form-recognizer/package.json index 60f308d68f6e..7c1251af38bd 100644 --- a/sdk/formrecognizer/ai-form-recognizer/package.json +++ b/sdk/formrecognizer/ai-form-recognizer/package.json @@ -77,7 +77,7 @@ "@azure/core-auth": "^1.1.0", "@azure/core-lro": "^1.0.0", "@azure/core-paging": "^1.1.0", - "@azure/core-http": "^1.0.0", + "@azure/core-http": "^1.1.1", "@azure/core-tracing": "1.0.0-preview.8", "@azure/logger": "^1.0.0", "@opentelemetry/api": "^0.5.1", diff --git a/sdk/identity/identity/package.json b/sdk/identity/identity/package.json index dfad72463625..e6b650ec03fe 100644 --- a/sdk/identity/identity/package.json +++ b/sdk/identity/identity/package.json @@ -76,7 +76,7 @@ "homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/sdk/identity/identity", "sideEffects": false, "dependencies": { - "@azure/core-http": "^1.0.0", + "@azure/core-http": "^1.1.1", "@azure/core-tracing": "1.0.0-preview.8", "@azure/logger": "^1.0.0", "@opentelemetry/api": "^0.5.1", diff --git a/sdk/keyvault/keyvault-certificates/package.json b/sdk/keyvault/keyvault-certificates/package.json index 77af3db8dcd5..691717b07571 100644 --- a/sdk/keyvault/keyvault-certificates/package.json +++ b/sdk/keyvault/keyvault-certificates/package.json @@ -84,7 +84,7 @@ }, "dependencies": { "@azure/abort-controller": "^1.0.0", - "@azure/core-http": "^1.0.0", + "@azure/core-http": "^1.1.1", "@azure/core-lro": "^1.0.0", "@azure/core-paging": "^1.1.0", "@azure/core-tracing": "1.0.0-preview.8", diff --git a/sdk/keyvault/keyvault-keys/package.json b/sdk/keyvault/keyvault-keys/package.json index b9a9e2e1b446..3744ad33156b 100644 --- a/sdk/keyvault/keyvault-keys/package.json +++ b/sdk/keyvault/keyvault-keys/package.json @@ -82,7 +82,7 @@ ] }, "dependencies": { - "@azure/core-http": "^1.0.0", + "@azure/core-http": "^1.1.1", "@azure/core-lro": "^1.0.0", "@azure/core-paging": "^1.1.0", "@azure/core-tracing": "1.0.0-preview.8", diff --git a/sdk/keyvault/keyvault-secrets/package.json b/sdk/keyvault/keyvault-secrets/package.json index 3bfc764680d5..d2fb4ac2ddbf 100644 --- a/sdk/keyvault/keyvault-secrets/package.json +++ b/sdk/keyvault/keyvault-secrets/package.json @@ -83,7 +83,7 @@ }, "dependencies": { "@azure/abort-controller": "^1.0.0", - "@azure/core-http": "^1.0.0", + "@azure/core-http": "^1.1.1", "@azure/core-lro": "^1.0.0", "@azure/core-paging": "^1.1.0", "@azure/core-tracing": "1.0.0-preview.8", diff --git a/sdk/search/search-documents/package.json b/sdk/search/search-documents/package.json index 95df40b55a00..0461dd66590a 100644 --- a/sdk/search/search-documents/package.json +++ b/sdk/search/search-documents/package.json @@ -77,7 +77,7 @@ "sideEffects": false, "dependencies": { "@azure/core-auth": "^1.1.0", - "@azure/core-http": "^1.0.0", + "@azure/core-http": "^1.1.1", "@azure/core-paging": "^1.1.0", "@azure/core-tracing": "1.0.0-preview.8", "@azure/logger": "^1.0.0", diff --git a/sdk/servicebus/service-bus/package.json b/sdk/servicebus/service-bus/package.json index e2f351b1e834..6b71b0c0ec39 100644 --- a/sdk/servicebus/service-bus/package.json +++ b/sdk/servicebus/service-bus/package.json @@ -80,7 +80,7 @@ "@azure/core-amqp": "^1.1.1", "@azure/core-asynciterator-polyfill": "^1.0.0", "@azure/core-tracing": "1.0.0-preview.8", - "@azure/core-http": "^1.0.0", + "@azure/core-http": "^1.1.1", "@azure/core-tracing": "1.0.0-preview.8", "@opentelemetry/api": "^0.5.1", "@types/is-buffer": "^2.0.0", diff --git a/sdk/storage/storage-blob/package.json b/sdk/storage/storage-blob/package.json index a756ac9c82a0..ecb6fca2b9bf 100644 --- a/sdk/storage/storage-blob/package.json +++ b/sdk/storage/storage-blob/package.json @@ -99,7 +99,7 @@ }, "dependencies": { "@azure/abort-controller": "^1.0.0", - "@azure/core-http": "^1.1.0", + "@azure/core-http": "^1.1.1", "@azure/core-lro": "^1.0.0", "@azure/core-paging": "^1.1.0", "@azure/core-tracing": "1.0.0-preview.8", diff --git a/sdk/storage/storage-file-datalake/package.json b/sdk/storage/storage-file-datalake/package.json index c5b5749d7181..53129d260875 100644 --- a/sdk/storage/storage-file-datalake/package.json +++ b/sdk/storage/storage-file-datalake/package.json @@ -95,7 +95,7 @@ }, "dependencies": { "@azure/abort-controller": "^1.0.0", - "@azure/core-http": "^1.1.0", + "@azure/core-http": "^1.1.1", "@azure/core-paging": "^1.1.0", "@azure/core-tracing": "1.0.0-preview.8", "@azure/logger": "^1.0.0", diff --git a/sdk/storage/storage-file-share/package.json b/sdk/storage/storage-file-share/package.json index f960de48e04d..adad7653085d 100644 --- a/sdk/storage/storage-file-share/package.json +++ b/sdk/storage/storage-file-share/package.json @@ -102,7 +102,7 @@ }, "dependencies": { "@azure/abort-controller": "^1.0.0", - "@azure/core-http": "^1.1.0", + "@azure/core-http": "^1.1.1", "@azure/core-paging": "^1.1.0", "@azure/core-tracing": "1.0.0-preview.8", "@azure/logger": "^1.0.0", diff --git a/sdk/storage/storage-queue/package.json b/sdk/storage/storage-queue/package.json index 8e23d725e938..2ef93933d4bc 100644 --- a/sdk/storage/storage-queue/package.json +++ b/sdk/storage/storage-queue/package.json @@ -99,7 +99,7 @@ }, "dependencies": { "@azure/abort-controller": "^1.0.0", - "@azure/core-http": "^1.1.0", + "@azure/core-http": "^1.1.1", "@azure/core-paging": "^1.1.0", "@azure/core-tracing": "1.0.0-preview.8", "@azure/logger": "^1.0.0", diff --git a/sdk/template/template/package.json b/sdk/template/template/package.json index a041b50a2c31..01b43b2765b0 100644 --- a/sdk/template/template/package.json +++ b/sdk/template/template/package.json @@ -61,7 +61,7 @@ "sideEffects": false, "prettier": "@azure/eslint-plugin-azure-sdk/prettier.json", "dependencies": { - "@azure/core-http": "^1.0.0", + "@azure/core-http": "^1.1.1", "@opentelemetry/api": "^0.5.1", "events": "^3.0.0", "tslib": "^1.10.0" diff --git a/sdk/test-utils/recorder/package.json b/sdk/test-utils/recorder/package.json index 976787f8a348..8a70619b900c 100644 --- a/sdk/test-utils/recorder/package.json +++ b/sdk/test-utils/recorder/package.json @@ -57,7 +57,7 @@ "sideEffects": false, "private": true, "dependencies": { - "@azure/core-http": "^1.0.0", + "@azure/core-http": "^1.1.1", "@opentelemetry/api": "^0.5.1", "fs-extra": "^8.1.0", "nise": "^1.4.10", diff --git a/sdk/textanalytics/ai-text-analytics/package.json b/sdk/textanalytics/ai-text-analytics/package.json index 9affd1cd7921..e6a77f4803dd 100644 --- a/sdk/textanalytics/ai-text-analytics/package.json +++ b/sdk/textanalytics/ai-text-analytics/package.json @@ -74,7 +74,7 @@ "autoPublish": false, "dependencies": { "@azure/core-auth": "^1.1.0", - "@azure/core-http": "^1.0.0", + "@azure/core-http": "^1.1.1", "@azure/core-tracing": "1.0.0-preview.8", "@azure/logger": "^1.0.0", "@opentelemetry/api": "^0.5.1", From 00be35769776666178db400b6c06c2f6db413b7b Mon Sep 17 00:00:00 2001 From: Jeff Fisher Date: Thu, 16 Apr 2020 17:06:31 -0700 Subject: [PATCH 23/29] Update to OpenTelemetry 0.6.1 --- common/config/rush/pnpm-lock.yaml | 91 ++++++++++--------- .../app-configuration/package.json | 2 +- sdk/core/core-auth/package.json | 2 +- sdk/core/core-http/package.json | 2 +- sdk/core/core-lro/package.json | 2 +- sdk/core/core-tracing/package.json | 2 +- sdk/eventhub/event-hubs/package.json | 2 +- .../ai-form-recognizer/package.json | 2 +- sdk/identity/identity/package.json | 2 +- .../keyvault-certificates/package.json | 2 +- sdk/keyvault/keyvault-keys/package.json | 2 +- sdk/keyvault/keyvault-secrets/package.json | 2 +- sdk/search/search-documents/package.json | 2 +- sdk/servicebus/service-bus/package.json | 2 +- sdk/storage/storage-blob/package.json | 2 +- .../storage-file-datalake/package.json | 2 +- sdk/storage/storage-file-share/package.json | 2 +- sdk/storage/storage-queue/package.json | 2 +- sdk/template/template/package.json | 2 +- sdk/test-utils/recorder/package.json | 2 +- .../ai-text-analytics/package.json | 2 +- 21 files changed, 66 insertions(+), 65 deletions(-) diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 517cce0169e4..115dc130719f 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -296,20 +296,20 @@ packages: node: '>=6.0' resolution: integrity: sha512-xB+w7ZDAu3YBzqH44rCmG9/RlrOmFuDPt/bpf17eJr8eZSrLt7nc7LnWdxM9Mmoj/YKMHpxRg28txu3TcpiL+g== - /@opentelemetry/api/0.5.2: + /@opentelemetry/api/0.6.1: dependencies: - '@opentelemetry/context-base': 0.5.2 + '@opentelemetry/context-base': 0.6.1 dev: false engines: node: '>=8.0.0' resolution: - integrity: sha512-SLahDSBn08zxz+zd0kq3XXn29HyUegWX/EUD79RuF7qBoXfMlwnCOx8eIzLsIRUDY4S9Qq7BYGOHdKz2p8oeeQ== - /@opentelemetry/context-base/0.5.2: + integrity: sha512-wpufGZa7tTxw7eAsjXJtiyIQ42IWQdX9iUQp7ACJcKo1hCtuhLU+K2Nv1U6oRwT1oAlZTE6m4CgWKZBhOiau3Q== + /@opentelemetry/context-base/0.6.1: dev: false engines: node: '>=8.0.0' resolution: - integrity: sha512-eaXuO5kwlW1X4RG7BJGC+rr6I1KFynJLJS6A0QptkgrMvZ4J1YCoIkhzmAXy2wiIHcbo/vQDV58aLtrYOrYX5g== + integrity: sha512-5bHhlTBBq82ti3qPT15TRxkYTFPPQWbnkkQkmHPtqiS1XcTB69cEKd3Jm7Cfi/vkPoyxapmePE9tyA7EzLt8SQ== /@opentelemetry/types/0.2.0: deprecated: 'Package renamed to @opentelemetry/api, see https://github.com/open-telemetry/opentelemetry-js' dev: false @@ -7303,6 +7303,7 @@ packages: dependencies: '@azure/core-tracing': 1.0.0-preview.7 '@microsoft/api-extractor': 7.7.11 + '@opentelemetry/api': 0.6.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -7352,14 +7353,14 @@ packages: dev: false name: '@rush-temp/ai-form-recognizer' resolution: - integrity: sha512-yg99yZFn9+W4DBw5vI8p+/SDMYENHpnsYuqSXk8svMIyB9Qc0tUCHiQ2u9rHoPaQx2wnWYnZY52P6FKJTRcGoA== + integrity: sha512-uWfXcU7pknbqZGRmhFtOdm5M40IZLIiFmElY0t2tJ1BOSGii8BtIvSHMF2PuLRf+tIKO9WJ3UhMVB7dFUSk7Zw== tarball: 'file:projects/ai-form-recognizer.tgz' version: 0.0.0 'file:projects/ai-text-analytics.tgz': dependencies: '@azure/core-tracing': 1.0.0-preview.7 '@microsoft/api-extractor': 7.7.11 - '@opentelemetry/api': 0.5.2 + '@opentelemetry/api': 0.6.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -7412,14 +7413,14 @@ packages: dev: false name: '@rush-temp/ai-text-analytics' resolution: - integrity: sha512-gcT3QXqJzBedd0E5to3J4/YJ8CNRGekx9RmukfO4OE6+9NR8Ot0RQmIVDD3pAxZteYIOm3oSafkZu+HvecY9Bg== + integrity: sha512-awpx1Qozxc/EizMTWvetD/CRNuRiiysdeSnXs+yL9wYmSjvIK6jXqt8lfeVBXZrowKj7ilwl+siGCXBGWV3CdQ== tarball: 'file:projects/ai-text-analytics.tgz' version: 0.0.0 'file:projects/app-configuration.tgz': dependencies: '@azure/core-tracing': 1.0.0-preview.7 '@microsoft/api-extractor': 7.7.11 - '@opentelemetry/api': 0.5.2 + '@opentelemetry/api': 0.6.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-multi-entry': 3.0.0_rollup@1.32.1 @@ -7454,7 +7455,7 @@ packages: dev: false name: '@rush-temp/app-configuration' resolution: - integrity: sha512-davE5uTqGcOcrIvC64K1ief8Fv7VoQxg3h+NVkGxHRp9uSiRTadMVEA4dq6C5gVrhbbnby8E8ZNK1nh0XV0UEg== + integrity: sha512-d0nrY0fEPQXpdv5Z2wFgFNeeIe67rmWVkHM1YRLvJXFHRz4rqCBSevczKIudUk6+J+HnB/yhI08kA99Fp9lBzg== tarball: 'file:projects/app-configuration.tgz' version: 0.0.0 'file:projects/core-amqp.tgz': @@ -7553,7 +7554,7 @@ packages: dev: false name: '@rush-temp/core-arm' resolution: - integrity: sha512-V0jMLzLtzMnNmyI0Cd636RcwrhPoYnrZBbhCG1xiTxxqW8WkKIP8/URbV6ZDOMic59eeNZvSRf5t7bMb0yPwkA== + integrity: sha512-N3E8RYGfsXpEzYJB4S6Zx+0gaFGweFYUNRxb0C3AZ9+nO8qKrP3eESTPf6xH+cYhlYkORnqfgm7xrxx02GzNZQ== tarball: 'file:projects/core-arm.tgz' version: 0.0.0 'file:projects/core-asynciterator-polyfill.tgz': @@ -7579,7 +7580,7 @@ packages: '@azure/core-tracing': 1.0.0-preview.7 '@azure/eslint-plugin-azure-sdk': 2.0.1_9e31f0f459c1656d0a7ef30429cc70f8 '@microsoft/api-extractor': 7.7.11 - '@opentelemetry/api': 0.5.2 + '@opentelemetry/api': 0.6.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -7613,7 +7614,7 @@ packages: dev: false name: '@rush-temp/core-auth' resolution: - integrity: sha512-aAEdofROW5/g43dN2EFVjZ54CzGDNUvXLaEZpYl2Zbc2LN/Fa1d2BpeWbl/ElvmI7EC+FdBilJ+s/j0hB91reA== + integrity: sha512-CxMzXs+jFSjH65PB4sPZckFddDyIgImPcQO6FfxE8dGWmQkGZRn546ImUcjc6qkieSw2Xdja4njvJJlwEuNtbA== tarball: 'file:projects/core-auth.tgz' version: 0.0.0 'file:projects/core-http.tgz': @@ -7621,7 +7622,7 @@ packages: '@azure/core-tracing': 1.0.0-preview.7 '@azure/eslint-plugin-azure-sdk': 2.0.1_9e31f0f459c1656d0a7ef30429cc70f8 '@azure/logger-js': 1.3.2 - '@opentelemetry/api': 0.5.2 + '@opentelemetry/api': 0.6.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -7690,14 +7691,14 @@ packages: dev: false name: '@rush-temp/core-http' resolution: - integrity: sha512-Jw6cAa4l0zdDQ+EzH3YQKRM1cDOkxyX1hcEpRjlvXRpkM659V6mKqMM9rUEU98oA9AYFH6MJBQdSzzMLAOJMqA== + integrity: sha512-SLacZnIpe0vFRoCILyxc04NUs4kiGoCit7yxfawdW96bXzeMjGioN5bfqD8C4DEfoGqPgss4nmV2Eh0VQVwnqA== tarball: 'file:projects/core-http.tgz' version: 0.0.0 'file:projects/core-lro.tgz': dependencies: '@azure/core-arm': 1.0.0-preview.7 '@microsoft/api-extractor': 7.7.11 - '@opentelemetry/api': 0.5.2 + '@opentelemetry/api': 0.6.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-multi-entry': 3.0.0_rollup@1.32.1 @@ -7746,7 +7747,7 @@ packages: dev: false name: '@rush-temp/core-lro' resolution: - integrity: sha512-30+fwGVCf2UQU5lT+WLyxTSScKaY0OKesin6CveZoYfCsKh8ujxONwy57N6qQI0Vuye4zSNhBefR+XhrtuaFeg== + integrity: sha512-FzBieijULPwcJwrwovBWrBOPD4xSGkLjhDcBDdGiv7Kl183s4oxQIRa6tkQEAwoBjBrwDrxHtWw4zucCbYLyvA== tarball: 'file:projects/core-lro.tgz' version: 0.0.0 'file:projects/core-paging.tgz': @@ -7772,7 +7773,7 @@ packages: '@azure/eslint-plugin-azure-sdk': 2.0.1_9e31f0f459c1656d0a7ef30429cc70f8 '@microsoft/api-extractor': 7.7.11 '@opencensus/web-types': 0.0.7 - '@opentelemetry/api': 0.5.2 + '@opentelemetry/api': 0.6.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -7805,7 +7806,7 @@ packages: dev: false name: '@rush-temp/core-tracing' resolution: - integrity: sha512-bj3zyK89BTf0PxCzKhHy+QbmCs0LpFbhb9oR09o2fe2EEVhs8NzEI8wGrrL00083pA/iigzEySvAwY/fVWq9tA== + integrity: sha512-zzxT9jIVWoB1sTI+P7S1JW6FMna8txObbpk2X49j8lECSXuoVMLqOEk2R7sGVjbzbL2r7ao5omfCepp/VmMYzA== tarball: 'file:projects/core-tracing.tgz' version: 0.0.0 'file:projects/cosmos.tgz': @@ -7907,7 +7908,7 @@ packages: '@azure/core-tracing': 1.0.0-preview.7 '@azure/eslint-plugin-azure-sdk': 2.0.1_9e31f0f459c1656d0a7ef30429cc70f8 '@microsoft/api-extractor': 7.7.11 - '@opentelemetry/api': 0.5.2 + '@opentelemetry/api': 0.6.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-inject': 4.0.1_rollup@1.32.1 @@ -7978,7 +7979,7 @@ packages: dev: false name: '@rush-temp/event-hubs' resolution: - integrity: sha512-p25NAS1gMfErGS/oDFxLY7FlQNUi3zApFS3DuVrn07E4TMSd3OTm9Smf/YX8C8W7bhFrnjmFrLyHGb34MQ+rTA== + integrity: sha512-XcArDfJ1RnpY7zBibihjsHZrPVygPE1NZT1Qf28thsdi0nUo4/C1B09GvYKMlbDMZdwbTls0ub65R9jmbNz83Q== tarball: 'file:projects/event-hubs.tgz' version: 0.0.0 'file:projects/event-processor-host.tgz': @@ -8106,7 +8107,7 @@ packages: dependencies: '@azure/core-tracing': 1.0.0-preview.7 '@microsoft/api-extractor': 7.7.11 - '@opentelemetry/api': 0.5.2 + '@opentelemetry/api': 0.6.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -8156,7 +8157,7 @@ packages: dev: false name: '@rush-temp/identity' resolution: - integrity: sha512-/IwtOb2MNB/cD9Qisb8fSH75gXMQfux3WAAV3TcOj9tegmFvSUYEd32oUReMPVHKfrw2tne+NBEEworzzR6FrQ== + integrity: sha512-DDkmVi+cbgVHQovLokF7aOiI2M+m2gXmXvWm56qQuK/EaPlpTP4rL2GVCKm0Zk6hTxKxyTqSBSVgahG0PN99/w== tarball: 'file:projects/identity.tgz' version: 0.0.0 'file:projects/keyvault-certificates.tgz': @@ -8164,7 +8165,7 @@ packages: '@azure/core-tracing': 1.0.0-preview.7 '@azure/eslint-plugin-azure-sdk': 2.0.1_9e31f0f459c1656d0a7ef30429cc70f8 '@microsoft/api-extractor': 7.7.11 - '@opentelemetry/api': 0.5.2 + '@opentelemetry/api': 0.6.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -8222,7 +8223,7 @@ packages: dev: false name: '@rush-temp/keyvault-certificates' resolution: - integrity: sha512-r5VWqfBNtGNFetNwKahBik6mgxii16LvtEes532a7ctaSM3LuJf3m2RucqNo5Ofup6yvU9mptKgjawj5QXAKHw== + integrity: sha512-wGHtdm6msinghC/vEc5h0zdrzdtARb7kMpV2Ai12HfNL/xhefuOvyfpWMG/665f+3+KRMxJKLq9aMwmugJqUeQ== tarball: 'file:projects/keyvault-certificates.tgz' version: 0.0.0 'file:projects/keyvault-keys.tgz': @@ -8230,7 +8231,7 @@ packages: '@azure/core-tracing': 1.0.0-preview.7 '@azure/eslint-plugin-azure-sdk': 2.0.1_9e31f0f459c1656d0a7ef30429cc70f8 '@microsoft/api-extractor': 7.7.11 - '@opentelemetry/api': 0.5.2 + '@opentelemetry/api': 0.6.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -8288,7 +8289,7 @@ packages: dev: false name: '@rush-temp/keyvault-keys' resolution: - integrity: sha512-EENkD3f3h6r46b9qK6zVrFzi0CESO6bVHebxPMuWrA8/9e4Y40H9ZUg4CuIpDmYNACWIgOiaR+mJk4MTtJHyUA== + integrity: sha512-H+dSUq2BNFWG1/ACXuFqGP3Ixxiqzb7n3A9ve7AhKQiCuvZN2Ql8rLTTUnTf4aJZaV1VrsOseXltuAMhZAExwQ== tarball: 'file:projects/keyvault-keys.tgz' version: 0.0.0 'file:projects/keyvault-secrets.tgz': @@ -8296,7 +8297,7 @@ packages: '@azure/core-tracing': 1.0.0-preview.7 '@azure/eslint-plugin-azure-sdk': 2.0.1_9e31f0f459c1656d0a7ef30429cc70f8 '@microsoft/api-extractor': 7.7.11 - '@opentelemetry/api': 0.5.2 + '@opentelemetry/api': 0.6.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -8354,7 +8355,7 @@ packages: dev: false name: '@rush-temp/keyvault-secrets' resolution: - integrity: sha512-+p1poPxQG6cAkz7pEJGc2pBZBulk+j5ioyqy4i6OWBenak7g7KpWb8H/ogM6p7877kwzh7QFCInl3hPl1gUvww== + integrity: sha512-CMf2OQzjA6YqC0/pHm3s3/uXBP777Owf+S7iDwcTA3o2URSwDMdnoDsTod2z42hjiHXxqMG+85P4+H2nq7XPJw== tarball: 'file:projects/keyvault-secrets.tgz' version: 0.0.0 'file:projects/logger.tgz': @@ -8414,7 +8415,7 @@ packages: dependencies: '@azure/core-tracing': 1.0.0-preview.7 '@microsoft/api-extractor': 7.7.11 - '@opentelemetry/api': 0.5.2 + '@opentelemetry/api': 0.6.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -8467,14 +8468,14 @@ packages: dev: false name: '@rush-temp/search-documents' resolution: - integrity: sha512-tYGoiQP8PNCcYZb5fLvNZZ0Zukyr6tFwNZ4YCYJo6vmNC6hAAY9r3Tfllxe1nR4X2IMBkSPfbRuJuUwBeQfLTg== + integrity: sha512-QroMgxVMMLikOVgjg7rzs8ezqOG+cYu9acV264pLB0T3/q+8TXkNmR2m12k2+6/R5Wn3Eqxfo2pnUK/EvGqrbA== tarball: 'file:projects/search-documents.tgz' version: 0.0.0 'file:projects/service-bus.tgz': dependencies: '@azure/eslint-plugin-azure-sdk': 2.0.1_9e31f0f459c1656d0a7ef30429cc70f8 '@microsoft/api-extractor': 7.7.11 - '@opentelemetry/api': 0.5.2 + '@opentelemetry/api': 0.6.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-inject': 4.0.1_rollup@1.32.1 @@ -8545,14 +8546,14 @@ packages: dev: false name: '@rush-temp/service-bus' resolution: - integrity: sha512-1LXMJQgtsAG6mtIWOg4ZvZo8BCknKc7vguMC6yWzXZ/8tyzStVEQRNHKj83LLu4shDIq+KqaIVtvIUaPpl+bUQ== + integrity: sha512-mimMlbjL+/z063GXtoV03S1XRfpXHUdbr/kesB0V122walnlhUWqfs9hwVSqLBKmlIHpNTXMkzfGWyNQaKPRcQ== tarball: 'file:projects/service-bus.tgz' version: 0.0.0 'file:projects/storage-blob.tgz': dependencies: '@azure/core-tracing': 1.0.0-preview.7 '@microsoft/api-extractor': 7.7.11 - '@opentelemetry/api': 0.5.2 + '@opentelemetry/api': 0.6.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-multi-entry': 3.0.0_rollup@1.32.1 @@ -8607,14 +8608,14 @@ packages: dev: false name: '@rush-temp/storage-blob' resolution: - integrity: sha512-8ehODW393P9m7ywXwt6+udNfFljN/xdtPk3vS7xeaz0f1pwv7LJ9DBG+I8g2tt7PCWXm3GOBKpVrzhC98knCUQ== + integrity: sha512-phMvPXjbsXsip+koU642FfnFcKAYwgDMpfD8w1I4TWJiOsTww/EWkgjOb8bsApaVvnR38uWocAFCjWL4Roo+6Q== tarball: 'file:projects/storage-blob.tgz' version: 0.0.0 'file:projects/storage-file-datalake.tgz': dependencies: '@azure/core-tracing': 1.0.0-preview.7 '@microsoft/api-extractor': 7.7.11 - '@opentelemetry/api': 0.5.2 + '@opentelemetry/api': 0.6.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-multi-entry': 3.0.0_rollup@1.32.1 @@ -8677,14 +8678,14 @@ packages: dev: false name: '@rush-temp/storage-file-datalake' resolution: - integrity: sha512-E3c1nSmO0l/XHYC3hfXIFy7xsLeuHdixSojc1WegtI6KtFJy9tUR8Veyqz/F/HuQmlU/lDbszq+GL6DRgTGEAQ== + integrity: sha512-mL/wbnrnwMnD9Yw+5HAQkF3M4QdSrlycMHv7h94b4j5ZeQI9F8lKtiSosIa6rwXIwziiNtYb/ew3/rhVAUYZ8w== tarball: 'file:projects/storage-file-datalake.tgz' version: 0.0.0 'file:projects/storage-file-share.tgz': dependencies: '@azure/core-tracing': 1.0.0-preview.7 '@microsoft/api-extractor': 7.7.11 - '@opentelemetry/api': 0.5.2 + '@opentelemetry/api': 0.6.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-multi-entry': 3.0.0_rollup@1.32.1 @@ -8739,14 +8740,14 @@ packages: dev: false name: '@rush-temp/storage-file-share' resolution: - integrity: sha512-qiAocV+S7OQfW9fnhIiWq/s09pA3oqB2mjLy2UoN0SFQs6JhmPG4eF7LMHJ5qxhPAOMHdhiynLf5+7BSTvEFzA== + integrity: sha512-eQxCyPrRlOhUGsyKZOvKIig8/67r9vMHT4yG7nFxaTQ5XZdJx6EZHTlVJIoqMdIgMtiJLaR2tpseJUkixXmocw== tarball: 'file:projects/storage-file-share.tgz' version: 0.0.0 'file:projects/storage-queue.tgz': dependencies: '@azure/core-tracing': 1.0.0-preview.7 '@microsoft/api-extractor': 7.7.11 - '@opentelemetry/api': 0.5.2 + '@opentelemetry/api': 0.6.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-multi-entry': 3.0.0_rollup@1.32.1 @@ -8800,13 +8801,13 @@ packages: dev: false name: '@rush-temp/storage-queue' resolution: - integrity: sha512-XIa0kxmkk1gMD7hau/6FNgM8SGexCG+p9iXTblkqzEhJDQVpo59v6zHGP14v6jKs4kXdx64GkNnSo/Un1rmaQQ== + integrity: sha512-ddU1bPpnC4zVKJtLij/LXJHFQ4h6Lz8o/FLSLesL1zVJn1Glcb9vvQhUmvcCmHPDGVi4UFksw32zxyXZf4BD+A== tarball: 'file:projects/storage-queue.tgz' version: 0.0.0 'file:projects/template.tgz': dependencies: '@microsoft/api-extractor': 7.7.11 - '@opentelemetry/api': 0.5.2 + '@opentelemetry/api': 0.6.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -8851,12 +8852,12 @@ packages: dev: false name: '@rush-temp/template' resolution: - integrity: sha512-pLClB4SYCxRTM4esxOzcpl8D+SpjB/HnynvQdYA3OFMPA5rm2vUAJDisztq7Yj9t+PMOnYiEBjGLwBHYepXXdQ== + integrity: sha512-V2FjezpR9jYsIuKKANe1NnLaOegIdnpcFZBUtanRXd06pXRU+o/SaWxXjUq52OiInPE3maWVtWSyDBr7rkA1HA== tarball: 'file:projects/template.tgz' version: 0.0.0 'file:projects/test-utils-recorder.tgz': dependencies: - '@opentelemetry/api': 0.5.2 + '@opentelemetry/api': 0.6.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-multi-entry': 3.0.0_rollup@1.32.1 @@ -8912,7 +8913,7 @@ packages: dev: false name: '@rush-temp/test-utils-recorder' resolution: - integrity: sha512-HkWgPfT0eo/uOnzdAQY264emvjDAski6Kp0f9YayxTE73eh3uR3d4+tpK8W+3QRWbn+opp0hBEaRc5SSDaiuvA== + integrity: sha512-9sPUutu18XFjg3dxFCXUqEzjbNelany0C/7Z00k9QGXWyOQ6whujs2bf5s616v63Zs4zAQT+WwMq2m8nVW51Ag== tarball: 'file:projects/test-utils-recorder.tgz' version: 0.0.0 'file:projects/testhub.tgz': diff --git a/sdk/appconfiguration/app-configuration/package.json b/sdk/appconfiguration/app-configuration/package.json index 72b9c74e3393..bc351a7ad4b3 100644 --- a/sdk/appconfiguration/app-configuration/package.json +++ b/sdk/appconfiguration/app-configuration/package.json @@ -75,7 +75,7 @@ "@azure/core-http": "^1.1.1", "@azure/core-paging": "^1.1.0", "@azure/core-tracing": "1.0.0-preview.8", - "@opentelemetry/api": "^0.5.1", + "@opentelemetry/api": "^0.6.1", "tslib": "^1.10.0" }, "devDependencies": { diff --git a/sdk/core/core-auth/package.json b/sdk/core/core-auth/package.json index 189da29967be..4dfa3e09cd81 100644 --- a/sdk/core/core-auth/package.json +++ b/sdk/core/core-auth/package.json @@ -66,7 +66,7 @@ "dependencies": { "@azure/abort-controller": "^1.0.0", "@azure/core-tracing": "1.0.0-preview.8", - "@opentelemetry/api": "^0.5.1", + "@opentelemetry/api": "^0.6.1", "tslib": "^1.10.0" }, "devDependencies": { diff --git a/sdk/core/core-http/package.json b/sdk/core/core-http/package.json index 414baa6b90ae..41e968a4546b 100644 --- a/sdk/core/core-http/package.json +++ b/sdk/core/core-http/package.json @@ -130,7 +130,7 @@ "@azure/core-auth": "^1.1.0", "@azure/core-tracing": "1.0.0-preview.8", "@azure/logger": "^1.0.0", - "@opentelemetry/api": "^0.5.1", + "@opentelemetry/api": "^0.6.1", "@types/node-fetch": "^2.5.0", "@types/tunnel": "^0.0.1", "cross-env": "^6.0.3", diff --git a/sdk/core/core-lro/package.json b/sdk/core/core-lro/package.json index ec4d9ff5d6b3..18883d641370 100644 --- a/sdk/core/core-lro/package.json +++ b/sdk/core/core-lro/package.json @@ -96,7 +96,7 @@ "dependencies": { "@azure/abort-controller": "^1.0.0", "@azure/core-http": "^1.1.1", - "@opentelemetry/api": "^0.5.1", + "@opentelemetry/api": "^0.6.1", "events": "^3.0.0", "tslib": "^1.10.0" }, diff --git a/sdk/core/core-tracing/package.json b/sdk/core/core-tracing/package.json index 83b24587b0a5..0a36fbcbb1fd 100644 --- a/sdk/core/core-tracing/package.json +++ b/sdk/core/core-tracing/package.json @@ -59,7 +59,7 @@ "sideEffects": false, "dependencies": { "@opencensus/web-types": "0.0.7", - "@opentelemetry/api": "^0.5.1", + "@opentelemetry/api": "^0.6.1", "tslib": "^1.10.0" }, "devDependencies": { diff --git a/sdk/eventhub/event-hubs/package.json b/sdk/eventhub/event-hubs/package.json index 954e799f9f0c..c9b35ac15c12 100644 --- a/sdk/eventhub/event-hubs/package.json +++ b/sdk/eventhub/event-hubs/package.json @@ -75,7 +75,7 @@ "@azure/core-asynciterator-polyfill": "^1.0.0", "@azure/core-tracing": "1.0.0-preview.8", "@azure/logger": "^1.0.0", - "@opentelemetry/api": "^0.5.1", + "@opentelemetry/api": "^0.6.1", "async-lock": "^1.1.3", "buffer": "^5.2.1", "debug": "^4.1.1", diff --git a/sdk/formrecognizer/ai-form-recognizer/package.json b/sdk/formrecognizer/ai-form-recognizer/package.json index 7c1251af38bd..510579798a79 100644 --- a/sdk/formrecognizer/ai-form-recognizer/package.json +++ b/sdk/formrecognizer/ai-form-recognizer/package.json @@ -80,7 +80,7 @@ "@azure/core-http": "^1.1.1", "@azure/core-tracing": "1.0.0-preview.8", "@azure/logger": "^1.0.0", - "@opentelemetry/api": "^0.5.1", + "@opentelemetry/api": "^0.6.1", "tslib": "^1.10.0" }, "devDependencies": { diff --git a/sdk/identity/identity/package.json b/sdk/identity/identity/package.json index e6b650ec03fe..4c45d1c36383 100644 --- a/sdk/identity/identity/package.json +++ b/sdk/identity/identity/package.json @@ -79,7 +79,7 @@ "@azure/core-http": "^1.1.1", "@azure/core-tracing": "1.0.0-preview.8", "@azure/logger": "^1.0.0", - "@opentelemetry/api": "^0.5.1", + "@opentelemetry/api": "^0.6.1", "events": "^3.0.0", "jws": "^3.2.2", "keytar": "^5.4.0", diff --git a/sdk/keyvault/keyvault-certificates/package.json b/sdk/keyvault/keyvault-certificates/package.json index 691717b07571..339db017739d 100644 --- a/sdk/keyvault/keyvault-certificates/package.json +++ b/sdk/keyvault/keyvault-certificates/package.json @@ -89,7 +89,7 @@ "@azure/core-paging": "^1.1.0", "@azure/core-tracing": "1.0.0-preview.8", "@azure/logger": "^1.0.0", - "@opentelemetry/api": "^0.5.1", + "@opentelemetry/api": "^0.6.1", "tslib": "^1.10.0" }, "devDependencies": { diff --git a/sdk/keyvault/keyvault-keys/package.json b/sdk/keyvault/keyvault-keys/package.json index 3744ad33156b..03bd2c8aad9c 100644 --- a/sdk/keyvault/keyvault-keys/package.json +++ b/sdk/keyvault/keyvault-keys/package.json @@ -87,7 +87,7 @@ "@azure/core-paging": "^1.1.0", "@azure/core-tracing": "1.0.0-preview.8", "@azure/logger": "^1.0.0", - "@opentelemetry/api": "^0.5.1", + "@opentelemetry/api": "^0.6.1", "tslib": "^1.10.0" }, "devDependencies": { diff --git a/sdk/keyvault/keyvault-secrets/package.json b/sdk/keyvault/keyvault-secrets/package.json index d2fb4ac2ddbf..a00f03213743 100644 --- a/sdk/keyvault/keyvault-secrets/package.json +++ b/sdk/keyvault/keyvault-secrets/package.json @@ -88,7 +88,7 @@ "@azure/core-paging": "^1.1.0", "@azure/core-tracing": "1.0.0-preview.8", "@azure/logger": "^1.0.0", - "@opentelemetry/api": "^0.5.1", + "@opentelemetry/api": "^0.6.1", "tslib": "^1.10.0" }, "devDependencies": { diff --git a/sdk/search/search-documents/package.json b/sdk/search/search-documents/package.json index 0461dd66590a..a4655694169b 100644 --- a/sdk/search/search-documents/package.json +++ b/sdk/search/search-documents/package.json @@ -81,7 +81,7 @@ "@azure/core-paging": "^1.1.0", "@azure/core-tracing": "1.0.0-preview.8", "@azure/logger": "^1.0.0", - "@opentelemetry/api": "^0.5.1", + "@opentelemetry/api": "^0.6.1", "tslib": "^1.10.0" }, "devDependencies": { diff --git a/sdk/servicebus/service-bus/package.json b/sdk/servicebus/service-bus/package.json index 6b71b0c0ec39..0e88558ec7d8 100644 --- a/sdk/servicebus/service-bus/package.json +++ b/sdk/servicebus/service-bus/package.json @@ -82,7 +82,7 @@ "@azure/core-tracing": "1.0.0-preview.8", "@azure/core-http": "^1.1.1", "@azure/core-tracing": "1.0.0-preview.8", - "@opentelemetry/api": "^0.5.1", + "@opentelemetry/api": "^0.6.1", "@types/is-buffer": "^2.0.0", "@types/long": "^4.0.0", "buffer": "^5.2.1", diff --git a/sdk/storage/storage-blob/package.json b/sdk/storage/storage-blob/package.json index ecb6fca2b9bf..8e01b95c3645 100644 --- a/sdk/storage/storage-blob/package.json +++ b/sdk/storage/storage-blob/package.json @@ -104,7 +104,7 @@ "@azure/core-paging": "^1.1.0", "@azure/core-tracing": "1.0.0-preview.8", "@azure/logger": "^1.0.0", - "@opentelemetry/api": "^0.5.1", + "@opentelemetry/api": "^0.6.1", "events": "^3.0.0", "tslib": "^1.10.0" }, diff --git a/sdk/storage/storage-file-datalake/package.json b/sdk/storage/storage-file-datalake/package.json index 53129d260875..dd53ecb6d16c 100644 --- a/sdk/storage/storage-file-datalake/package.json +++ b/sdk/storage/storage-file-datalake/package.json @@ -107,7 +107,7 @@ "@azure/identity": "1.1.0-preview.2", "@azure/test-utils-recorder": "^1.0.0", "@microsoft/api-extractor": "7.7.11", - "@opentelemetry/api": "^0.5.1", + "@opentelemetry/api": "^0.6.1", "@rollup/plugin-commonjs": "^11.0.1", "@rollup/plugin-multi-entry": "^3.0.0", "@rollup/plugin-node-resolve": "^7.0.0", diff --git a/sdk/storage/storage-file-share/package.json b/sdk/storage/storage-file-share/package.json index adad7653085d..83e7dae6ff9c 100644 --- a/sdk/storage/storage-file-share/package.json +++ b/sdk/storage/storage-file-share/package.json @@ -106,7 +106,7 @@ "@azure/core-paging": "^1.1.0", "@azure/core-tracing": "1.0.0-preview.8", "@azure/logger": "^1.0.0", - "@opentelemetry/api": "^0.5.1", + "@opentelemetry/api": "^0.6.1", "events": "^3.0.0", "tslib": "^1.10.0" }, diff --git a/sdk/storage/storage-queue/package.json b/sdk/storage/storage-queue/package.json index 2ef93933d4bc..c0e28ce88a6e 100644 --- a/sdk/storage/storage-queue/package.json +++ b/sdk/storage/storage-queue/package.json @@ -103,7 +103,7 @@ "@azure/core-paging": "^1.1.0", "@azure/core-tracing": "1.0.0-preview.8", "@azure/logger": "^1.0.0", - "@opentelemetry/api": "^0.5.1", + "@opentelemetry/api": "^0.6.1", "tslib": "^1.10.0" }, "devDependencies": { diff --git a/sdk/template/template/package.json b/sdk/template/template/package.json index 01b43b2765b0..032392109e85 100644 --- a/sdk/template/template/package.json +++ b/sdk/template/template/package.json @@ -62,7 +62,7 @@ "prettier": "@azure/eslint-plugin-azure-sdk/prettier.json", "dependencies": { "@azure/core-http": "^1.1.1", - "@opentelemetry/api": "^0.5.1", + "@opentelemetry/api": "^0.6.1", "events": "^3.0.0", "tslib": "^1.10.0" }, diff --git a/sdk/test-utils/recorder/package.json b/sdk/test-utils/recorder/package.json index 8a70619b900c..71e88ecc471c 100644 --- a/sdk/test-utils/recorder/package.json +++ b/sdk/test-utils/recorder/package.json @@ -58,7 +58,7 @@ "private": true, "dependencies": { "@azure/core-http": "^1.1.1", - "@opentelemetry/api": "^0.5.1", + "@opentelemetry/api": "^0.6.1", "fs-extra": "^8.1.0", "nise": "^1.4.10", "nock": "^11.7.0", diff --git a/sdk/textanalytics/ai-text-analytics/package.json b/sdk/textanalytics/ai-text-analytics/package.json index e6a77f4803dd..80478766f18c 100644 --- a/sdk/textanalytics/ai-text-analytics/package.json +++ b/sdk/textanalytics/ai-text-analytics/package.json @@ -77,7 +77,7 @@ "@azure/core-http": "^1.1.1", "@azure/core-tracing": "1.0.0-preview.8", "@azure/logger": "^1.0.0", - "@opentelemetry/api": "^0.5.1", + "@opentelemetry/api": "^0.6.1", "tslib": "^1.10.0" }, "devDependencies": { From a01b8eb79e2db6505e2c7b4418d31f8a0235f5f3 Mon Sep 17 00:00:00 2001 From: Jeff Fisher Date: Tue, 21 Apr 2020 11:26:00 -0700 Subject: [PATCH 24/29] Update sdk/core/core-tracing/CHANGELOG.md Co-Authored-By: Ramya Rao --- sdk/core/core-tracing/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/core/core-tracing/CHANGELOG.md b/sdk/core/core-tracing/CHANGELOG.md index ab6252b13d79..43600cedaf58 100644 --- a/sdk/core/core-tracing/CHANGELOG.md +++ b/sdk/core/core-tracing/CHANGELOG.md @@ -3,7 +3,7 @@ ## 1.0.0-preview.8 (Unreleased) - Update `TestSpan` to allow setting span attributes [PR link](https://github.com/Azure/azure-sdk-for-js/pull/6565). -- [BREAKING] Migrate to OpenTelemetry 0.5 using the new `@opentelemetry/api` package. There were a few breaking changes: +- [BREAKING] Migrate to OpenTelemetry 0.6 using the new `@opentelemetry/api` package. There were a few breaking changes: - `SpanContext` now requires traceFlags to be set. - `Tracer` has removed `recordSpanData`, `getBinaryFormat`, and `getHttpTextFormat`. - `Tracer.getCurrentSpan` returns `undefined` instead of `null` when unset. From 0831e8bc47bf694649be3e6db3ab22780f0eea47 Mon Sep 17 00:00:00 2001 From: Jeff Fisher Date: Tue, 21 Apr 2020 11:26:47 -0700 Subject: [PATCH 25/29] Update sdk/core/core-tracing/src/utils/cache.ts Co-Authored-By: Ramya Rao --- sdk/core/core-tracing/src/utils/cache.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/core/core-tracing/src/utils/cache.ts b/sdk/core/core-tracing/src/utils/cache.ts index 9a5e3dc20eaf..fda221da0b4c 100644 --- a/sdk/core/core-tracing/src/utils/cache.ts +++ b/sdk/core/core-tracing/src/utils/cache.ts @@ -6,7 +6,7 @@ import { getGlobalObject } from "./global"; // V1 = OpenTelemetry 0.1 // V2 = OpenTelemetry 0.2 -// V3 = OpenTelemetry 0.5.1 +// V3 = OpenTelemetry 0.6.1 const GLOBAL_TRACER_VERSION = 3; // preview5 shipped with @azure/core-tracing.tracerCache // and didn't have smart detection for collisions From 1ed09282a6e6ae853b015fbc110669c0b3824a1b Mon Sep 17 00:00:00 2001 From: Jeff Fisher Date: Wed, 22 Apr 2020 14:20:59 -0700 Subject: [PATCH 26/29] Fix merge conflicts --- common/config/rush/common-versions.json | 2 - common/config/rush/pnpm-lock.yaml | 101 ++++++++++++++++-------- dataplane.code-workspace | 3 + sdk/test-utils/perfstress/package.json | 4 +- 4 files changed, 74 insertions(+), 36 deletions(-) diff --git a/common/config/rush/common-versions.json b/common/config/rush/common-versions.json index 39eb5bb7bd75..bc7873115603 100644 --- a/common/config/rush/common-versions.json +++ b/common/config/rush/common-versions.json @@ -42,8 +42,6 @@ */ "allowedAlternativeVersions": { "@azure/ms-rest-js": ["^2.0.0"], - "@azure/core-http": ["^1.1.0"], - "@azure/core-tracing": ["1.0.0-preview.7"], /** * For example, allow some projects to use an older TypeScript compiler * (in addition to whatever "usual" version is being used by other projects in the repo): diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 9577c4ae9cff..7bd3b015798c 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -297,6 +297,20 @@ packages: node: '>=6.0' resolution: integrity: sha512-xB+w7ZDAu3YBzqH44rCmG9/RlrOmFuDPt/bpf17eJr8eZSrLt7nc7LnWdxM9Mmoj/YKMHpxRg28txu3TcpiL+g== + /@opentelemetry/api/0.6.1: + dependencies: + '@opentelemetry/context-base': 0.6.1 + dev: false + engines: + node: '>=8.0.0' + resolution: + integrity: sha512-wpufGZa7tTxw7eAsjXJtiyIQ42IWQdX9iUQp7ACJcKo1hCtuhLU+K2Nv1U6oRwT1oAlZTE6m4CgWKZBhOiau3Q== + /@opentelemetry/context-base/0.6.1: + dev: false + engines: + node: '>=8.0.0' + resolution: + integrity: sha512-5bHhlTBBq82ti3qPT15TRxkYTFPPQWbnkkQkmHPtqiS1XcTB69cEKd3Jm7Cfi/vkPoyxapmePE9tyA7EzLt8SQ== /@opentelemetry/types/0.2.0: deprecated: 'Package renamed to @opentelemetry/api, see https://github.com/open-telemetry/opentelemetry-js' dev: false @@ -7287,13 +7301,14 @@ packages: dev: false name: '@rush-temp/abort-controller' resolution: - integrity: sha512-gBGWFXTiVwNMoGJXXqwNHOQrxCGKga7Y3L6aU0gFlJOJfb0WJQ7cJ7Yib/8iQvzEsPhwx1SrGT7xIHEuHomuVg== + integrity: sha512-RfxPiKRYi0OQWzvGc7CGYlnbKScPQXBYaZpl+tTUd+Rye247kbuXP1GUl6h3/EGJipl9R8JNAgtbAmbsU/vtgg== tarball: 'file:projects/abort-controller.tgz' version: 0.0.0 'file:projects/ai-form-recognizer.tgz': dependencies: '@azure/core-tracing': 1.0.0-preview.7 '@microsoft/api-extractor': 7.7.11 + '@opentelemetry/api': 0.6.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -7345,13 +7360,14 @@ packages: dev: false name: '@rush-temp/ai-form-recognizer' resolution: - integrity: sha512-JHa0cIllPe4paUNuPPmFMz4L2QUdiWQMfHFBKH0J9/jvY6BV8qK8XnWn4QPNsRjavFSGdWHQE0S91I7kPPzQXg== + integrity: sha512-K8ztyYIvX2Of04tOP/9ZlAEoognuZEAx93aE2TstS/cePUcSWavQHM0YW74B7m7KxHM0Qjsh0FoiQPmVyLr1yg== tarball: 'file:projects/ai-form-recognizer.tgz' version: 0.0.0 'file:projects/ai-text-analytics.tgz': dependencies: '@azure/core-tracing': 1.0.0-preview.7 '@microsoft/api-extractor': 7.7.11 + '@opentelemetry/api': 0.6.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -7404,15 +7420,17 @@ packages: dev: false name: '@rush-temp/ai-text-analytics' resolution: - integrity: sha512-UaEof86AEpNg3wI9zq3agnfxIOB66LrEtywTCoAmp1K1JLWz4uEBlRfc93q3ON6Q5x5Uxj6FgoCH048EHTqSaw== + integrity: sha512-mpRxa18VIB62TO11E48bcpwfYHu4QBQBNc71rQJDOIXgurKazz5709iROIhfOm/0j60FNzVTOwBbeyTpaN574Q== tarball: 'file:projects/ai-text-analytics.tgz' version: 0.0.0 'file:projects/app-configuration.tgz': dependencies: '@azure/core-tracing': 1.0.0-preview.7 '@microsoft/api-extractor': 7.7.11 + '@opentelemetry/api': 0.6.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 + '@rollup/plugin-json': 4.0.2_rollup@1.32.1 '@rollup/plugin-multi-entry': 3.0.0_rollup@1.32.1 '@rollup/plugin-node-resolve': 7.1.1_rollup@1.32.1 '@rollup/plugin-replace': 2.3.1_rollup@1.32.1 @@ -7428,6 +7446,7 @@ packages: eslint-plugin-no-null: 1.0.2_eslint@6.8.0 eslint-plugin-no-only-tests: 2.4.0 eslint-plugin-promise: 4.2.1 + esm: 3.2.25 mocha: 7.1.1 mocha-junit-reporter: 1.23.3_mocha@7.1.1 nock: 11.9.1 @@ -7445,7 +7464,7 @@ packages: dev: false name: '@rush-temp/app-configuration' resolution: - integrity: sha512-R7JV/P7e/Eu6FajLnhPwGhLltGCn9kxlJB93C2Gm8I6vH5fS8iBXci95yxdYmvC3Kx1Xdrft7DyJkubU20LP6A== + integrity: sha512-wYG9oog4OfKhAAU8nKXIIS2zbwa5mxJjcvYVhcVuDW/qd4ZIInp1Isn7NbusbM8cGpT6Th2mTnvSu+lkv4+3hA== tarball: 'file:projects/app-configuration.tgz' version: 0.0.0 'file:projects/core-amqp.tgz': @@ -7511,7 +7530,7 @@ packages: dev: false name: '@rush-temp/core-amqp' resolution: - integrity: sha512-E2QCk2xFqHgAwqOU0R16+CrpV5VpJFsVRUVKOfJQ5e+XqJDZhM/pR4XjBOmex82Ved+RW5lCK4YYthKzvDL4Ig== + integrity: sha512-zK3WSYxcD7JGgI4vzDrpxnCQ2ZeNRWu/TpJz1GhkkTcPyU0nuw/iOWblfVCHl2E2w/YoMm0YtZ7EcOJOBusdcQ== tarball: 'file:projects/core-amqp.tgz' version: 0.0.0 'file:projects/core-arm.tgz': @@ -7544,7 +7563,7 @@ packages: dev: false name: '@rush-temp/core-arm' resolution: - integrity: sha512-PCWnl8IizEtfiwRmLnaibfP7ZKEHmHFm1W+ngSTEsnhx37lxOEgj+Kc9JXy3jaQ1ZJj1RrbrCsoykjLSk9EqwA== + integrity: sha512-N3E8RYGfsXpEzYJB4S6Zx+0gaFGweFYUNRxb0C3AZ9+nO8qKrP3eESTPf6xH+cYhlYkORnqfgm7xrxx02GzNZQ== tarball: 'file:projects/core-arm.tgz' version: 0.0.0 'file:projects/core-asynciterator-polyfill.tgz': @@ -7562,7 +7581,7 @@ packages: dev: false name: '@rush-temp/core-asynciterator-polyfill' resolution: - integrity: sha512-wcvU9xzocDcf6JqxBwlUIbDtU8XGBkq8n5TjQ4QYlRSFOUqjEX64a6XdMQr4dcga+OSoZw/QV/12HYPuUypK9w== + integrity: sha512-jDLggg/4sSiSb9xXQUsivEzh+w65cXOMPe/kPArXFs+LmAHaK1Et7soO3hxgmVW7AZ/5lVp8jcfW3hDXbKIFXQ== tarball: 'file:projects/core-asynciterator-polyfill.tgz' version: 0.0.0 'file:projects/core-auth.tgz': @@ -7570,6 +7589,7 @@ packages: '@azure/core-tracing': 1.0.0-preview.7 '@azure/eslint-plugin-azure-sdk': 2.0.1_9e31f0f459c1656d0a7ef30429cc70f8 '@microsoft/api-extractor': 7.7.11 + '@opentelemetry/api': 0.6.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -7603,7 +7623,7 @@ packages: dev: false name: '@rush-temp/core-auth' resolution: - integrity: sha512-aO0EUjVu272cbI7cz4oPe7j8/7U7mybU6OXOB0bqoGdS/mnNjADaAzZUqgZC8l4/3QSEVSAe3RqtfN9GoiLL/g== + integrity: sha512-CxMzXs+jFSjH65PB4sPZckFddDyIgImPcQO6FfxE8dGWmQkGZRn546ImUcjc6qkieSw2Xdja4njvJJlwEuNtbA== tarball: 'file:projects/core-auth.tgz' version: 0.0.0 'file:projects/core-http.tgz': @@ -7611,6 +7631,7 @@ packages: '@azure/core-tracing': 1.0.0-preview.7 '@azure/eslint-plugin-azure-sdk': 2.0.1_9e31f0f459c1656d0a7ef30429cc70f8 '@azure/logger-js': 1.3.2 + '@opentelemetry/api': 0.6.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -7679,13 +7700,14 @@ packages: dev: false name: '@rush-temp/core-http' resolution: - integrity: sha512-z2CqjExYE4+voKyzqewGQfH5B6KwUSCW3s4J7WHZwrzuq27x9GqKh/37xssgqdh6KTJRCpPfKUzk0o2Ep5MvyA== + integrity: sha512-zc4SXjsyuUfZG0PgMMhA6iN8exZ7Ytbwofo0/fEdRmkcABMuyFT5F5W4Io1m8n7vBj+M6smzNO6hue8Mntc1xA== tarball: 'file:projects/core-http.tgz' version: 0.0.0 'file:projects/core-lro.tgz': dependencies: '@azure/core-arm': 1.0.0-preview.7 '@microsoft/api-extractor': 7.7.11 + '@opentelemetry/api': 0.6.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-multi-entry': 3.0.0_rollup@1.32.1 @@ -7734,7 +7756,7 @@ packages: dev: false name: '@rush-temp/core-lro' resolution: - integrity: sha512-i3bODjm8Lbt32ttNBV0sDmI/4FtTbrr+0RJNzn2TbJSWU1TKrhj3gLBpAIETwZv2zeN28L6grfXOMuwWCbAQIg== + integrity: sha512-bo9fWZFaJeBQmV99RfH8HpoEi/PUrBvzri15E9kcrSVf4bSbXRutJ273RLYHMzXPjCn71WCD9L9ToNEFw9Tkig== tarball: 'file:projects/core-lro.tgz' version: 0.0.0 'file:projects/core-paging.tgz': @@ -7752,7 +7774,7 @@ packages: dev: false name: '@rush-temp/core-paging' resolution: - integrity: sha512-HtQeUV6/jtHxcEJSGOLfZj58FrapAsPl4Lirod7Yib/yXMrDIBYkkkI3Wwx5mGap+6ChPvmsBeskFIii1ZKcJg== + integrity: sha512-rRAaeqAsySfmVMMf46j6TljIPw2xVRZBVuyU9wrvQKJb1VzIEBZayG1jm9iTyyqUdFOEMn759//IfYP7KkhJNQ== tarball: 'file:projects/core-paging.tgz' version: 0.0.0 'file:projects/core-tracing.tgz': @@ -7760,6 +7782,7 @@ packages: '@azure/eslint-plugin-azure-sdk': 2.0.1_9e31f0f459c1656d0a7ef30429cc70f8 '@microsoft/api-extractor': 7.7.11 '@opencensus/web-types': 0.0.7 + '@opentelemetry/api': 0.6.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -7792,7 +7815,7 @@ packages: dev: false name: '@rush-temp/core-tracing' resolution: - integrity: sha512-epNRqy3NyVaAMraITA7kHK3VLEWvuaobjDrCamqdJlHTEgRQel+hccelKimX4muG5Uq///tT485k9QTl8x0HXg== + integrity: sha512-zzxT9jIVWoB1sTI+P7S1JW6FMna8txObbpk2X49j8lECSXuoVMLqOEk2R7sGVjbzbL2r7ao5omfCepp/VmMYzA== tarball: 'file:projects/core-tracing.tgz' version: 0.0.0 'file:projects/cosmos.tgz': @@ -7853,7 +7876,7 @@ packages: dev: false name: '@rush-temp/cosmos' resolution: - integrity: sha512-OgTypsYI6l4/q+Q72gEKExjsKsYogbWEFhf68oX9DCJeA3LXPh1T+VdbpWUrAg2f39Li7qnP+oHD14arFRvPQA== + integrity: sha512-D4BTSZt6/VnjR0cJx5YnIPl//42URe2aJVGUPmUWRZFXRohPgl6mzO86AbrquB4v58eVcHpKgbm5u4k3+5uYPQ== tarball: 'file:projects/cosmos.tgz' version: 0.0.0 'file:projects/eslint-plugin-azure-sdk.tgz': @@ -7886,7 +7909,7 @@ packages: dev: false name: '@rush-temp/eslint-plugin-azure-sdk' resolution: - integrity: sha512-vDkjvie+Lt33SvBQm1/YCJGhXSIe8fRg28qxPEU2N8w6IeoSZ/Kkj5FMFW/5vBVloV/9pLKcAUla/BMmcbLSSw== + integrity: sha512-ZxedM0WTtdZDhBZ7WcjQon13C9kNvVfFk19Hz2P+cQfBj05X1LQkDiswtvP0aqCOXljBPMX/LnJPDEV+d9gNMA== tarball: 'file:projects/eslint-plugin-azure-sdk.tgz' version: 0.0.0 'file:projects/event-hubs.tgz': @@ -7894,6 +7917,7 @@ packages: '@azure/core-tracing': 1.0.0-preview.7 '@azure/eslint-plugin-azure-sdk': 2.0.1_9e31f0f459c1656d0a7ef30429cc70f8 '@microsoft/api-extractor': 7.7.11 + '@opentelemetry/api': 0.6.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-inject': 4.0.1_rollup@1.32.1 @@ -7964,7 +7988,7 @@ packages: dev: false name: '@rush-temp/event-hubs' resolution: - integrity: sha512-CvG7r5u0JlEx6AQNVK8ehh/vnWl4tT7noTObs3AksWecHoTo/R2AbtrrS8yAvmOb1ZAyBL4bWPEsOkrgKNUWFw== + integrity: sha512-XcArDfJ1RnpY7zBibihjsHZrPVygPE1NZT1Qf28thsdi0nUo4/C1B09GvYKMlbDMZdwbTls0ub65R9jmbNz83Q== tarball: 'file:projects/event-hubs.tgz' version: 0.0.0 'file:projects/event-processor-host.tgz': @@ -8021,7 +8045,7 @@ packages: dev: false name: '@rush-temp/event-processor-host' resolution: - integrity: sha512-hYT4SwUiZgwOlwCECcjdIyOsqhlScOWdGW5OK6T2HPyEKu2bhCFcz/C2u7yzLYL000ZBfDf7GGMaMbc6HGI3gA== + integrity: sha512-jMfybrIYGqOpFuH4rePgaQAzrG6XhcRWzmRMn1VRsWI3e6LB270YxlifWWXNHDyVkB5rsqv+GQGFQhOA1/ZFkQ== tarball: 'file:projects/event-processor-host.tgz' version: 0.0.0 'file:projects/eventhubs-checkpointstore-blob.tgz': @@ -8085,13 +8109,14 @@ packages: dev: false name: '@rush-temp/eventhubs-checkpointstore-blob' resolution: - integrity: sha512-DXZkOK9YYemKAiq5ZIBhJB7PLfamVMe6xfovI0iYWVGOZPPNszxv9qJMCWp0/f70gaF+4cTPRQT6aRoUcYGLIQ== + integrity: sha512-DWpQOU2GJDz+sORUlex4GLuMmlydYRkiOxBeHpdCbOC+jrEjY4n2pTFxJU5LJn2n1sNmgFs+w3eBmLzHzFCz2g== tarball: 'file:projects/eventhubs-checkpointstore-blob.tgz' version: 0.0.0 'file:projects/identity.tgz': dependencies: '@azure/core-tracing': 1.0.0-preview.7 '@microsoft/api-extractor': 7.7.11 + '@opentelemetry/api': 0.6.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -8141,7 +8166,7 @@ packages: dev: false name: '@rush-temp/identity' resolution: - integrity: sha512-p6BDMfvjDY6flRqZtgBOCpHVsw6WvMmnKXMO4dPS8/aymBmgOMCgn6guGfwJatko2sGOh81jedOJolzNrK1Jgg== + integrity: sha512-DDkmVi+cbgVHQovLokF7aOiI2M+m2gXmXvWm56qQuK/EaPlpTP4rL2GVCKm0Zk6hTxKxyTqSBSVgahG0PN99/w== tarball: 'file:projects/identity.tgz' version: 0.0.0 'file:projects/keyvault-certificates.tgz': @@ -8149,6 +8174,7 @@ packages: '@azure/core-tracing': 1.0.0-preview.7 '@azure/eslint-plugin-azure-sdk': 2.0.1_9e31f0f459c1656d0a7ef30429cc70f8 '@microsoft/api-extractor': 7.7.11 + '@opentelemetry/api': 0.6.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -8206,7 +8232,7 @@ packages: dev: false name: '@rush-temp/keyvault-certificates' resolution: - integrity: sha512-zkoGg0gLf11kAFOxbtgMKCyxdZCh3NXdoQvH5oENi7NhKik4Zu0OS6HWIclJZGpsZkOBsJN/lLs2IpNQiaH/lw== + integrity: sha512-wGHtdm6msinghC/vEc5h0zdrzdtARb7kMpV2Ai12HfNL/xhefuOvyfpWMG/665f+3+KRMxJKLq9aMwmugJqUeQ== tarball: 'file:projects/keyvault-certificates.tgz' version: 0.0.0 'file:projects/keyvault-keys.tgz': @@ -8214,6 +8240,7 @@ packages: '@azure/core-tracing': 1.0.0-preview.7 '@azure/eslint-plugin-azure-sdk': 2.0.1_9e31f0f459c1656d0a7ef30429cc70f8 '@microsoft/api-extractor': 7.7.11 + '@opentelemetry/api': 0.6.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -8271,7 +8298,7 @@ packages: dev: false name: '@rush-temp/keyvault-keys' resolution: - integrity: sha512-HY324iezOdI7/oSMZ7EzBmSDcbavPbqqED12jXGaflbFUweqP1vKy0lVYnMn4S438y1n6fP2cQ2lLIfymVA+tg== + integrity: sha512-H+dSUq2BNFWG1/ACXuFqGP3Ixxiqzb7n3A9ve7AhKQiCuvZN2Ql8rLTTUnTf4aJZaV1VrsOseXltuAMhZAExwQ== tarball: 'file:projects/keyvault-keys.tgz' version: 0.0.0 'file:projects/keyvault-secrets.tgz': @@ -8279,6 +8306,7 @@ packages: '@azure/core-tracing': 1.0.0-preview.7 '@azure/eslint-plugin-azure-sdk': 2.0.1_9e31f0f459c1656d0a7ef30429cc70f8 '@microsoft/api-extractor': 7.7.11 + '@opentelemetry/api': 0.6.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -8336,7 +8364,7 @@ packages: dev: false name: '@rush-temp/keyvault-secrets' resolution: - integrity: sha512-7NMpd0WnshkIeFhxqXo4fMOMNntT9fwnpDCQlpVGk3bo+nfrBHm2xnd0hPcCvvajHa0r/0jy1U6no0eLYHvdcQ== + integrity: sha512-CMf2OQzjA6YqC0/pHm3s3/uXBP777Owf+S7iDwcTA3o2URSwDMdnoDsTod2z42hjiHXxqMG+85P4+H2nq7XPJw== tarball: 'file:projects/keyvault-secrets.tgz' version: 0.0.0 'file:projects/logger.tgz': @@ -8389,13 +8417,14 @@ packages: dev: false name: '@rush-temp/logger' resolution: - integrity: sha512-sBb1WqdClKFgTqcpBPUfP57iL4K1CbYKJSseLiSsK/eYRU32g9goRQE87rLBiygGHyR8rJ2KbYX8bFH7CZM+dw== + integrity: sha512-RVHVwRxDRhvffBiRXckWK6rsfdWgvd6hXrZWe1r3xT2rf9hWkB0DQ41SuiFyAn+4DdwGxwZZAMwdgIyTqTkYBg== tarball: 'file:projects/logger.tgz' version: 0.0.0 'file:projects/search-documents.tgz': dependencies: '@azure/core-tracing': 1.0.0-preview.7 '@microsoft/api-extractor': 7.7.11 + '@opentelemetry/api': 0.6.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -8448,13 +8477,14 @@ packages: dev: false name: '@rush-temp/search-documents' resolution: - integrity: sha512-f4chM4T34e/RV0rYSHlyurnX9lwAkuDjCeRNlzqD7SjxwdY12tXHznmNuTpdNZ5meIrj5ykBZ/NNUCcEtauMPg== + integrity: sha512-K2RRCxL+dwXM9QVce48tpCuiczH/cIgu5OOy4SlQxXgH/PpZblrtsx1BzncRcJ0YYSnx3+CL4EG2r+f+kweOAQ== tarball: 'file:projects/search-documents.tgz' version: 0.0.0 'file:projects/service-bus.tgz': dependencies: '@azure/eslint-plugin-azure-sdk': 2.0.1_9e31f0f459c1656d0a7ef30429cc70f8 '@microsoft/api-extractor': 7.7.11 + '@opentelemetry/api': 0.6.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-inject': 4.0.1_rollup@1.32.1 @@ -8525,13 +8555,14 @@ packages: dev: false name: '@rush-temp/service-bus' resolution: - integrity: sha512-kZCvW2SsVE6cmxuPm9K+Duz+zKbHwvOTpWhmw8Q92A1AaUDqZ7+MmdkJ4HZNhDfkIMKvz+zeSlEZHCq1m0x/BQ== + integrity: sha512-GDOxspRuVpFa2yvMFbBfDgbrKN8a/VNArrbwLX7RauxqDyfs1fAL4yLQEx2GbmKa1Nzdu7SPpkm2fs6tHp9lxw== tarball: 'file:projects/service-bus.tgz' version: 0.0.0 'file:projects/storage-blob.tgz': dependencies: '@azure/core-tracing': 1.0.0-preview.7 '@microsoft/api-extractor': 7.7.11 + '@opentelemetry/api': 0.6.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-multi-entry': 3.0.0_rollup@1.32.1 @@ -8586,13 +8617,14 @@ packages: dev: false name: '@rush-temp/storage-blob' resolution: - integrity: sha512-nBq5Bu/dFXbcpLWz5+/mYIYfHU0ALy+0/+Sc8T5+fHX5Qym1CWZcug3d62r7ByrGbC1cp56prjCeQicJlbU/RQ== + integrity: sha512-phMvPXjbsXsip+koU642FfnFcKAYwgDMpfD8w1I4TWJiOsTww/EWkgjOb8bsApaVvnR38uWocAFCjWL4Roo+6Q== tarball: 'file:projects/storage-blob.tgz' version: 0.0.0 'file:projects/storage-file-datalake.tgz': dependencies: '@azure/core-tracing': 1.0.0-preview.7 '@microsoft/api-extractor': 7.7.11 + '@opentelemetry/api': 0.6.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-multi-entry': 3.0.0_rollup@1.32.1 @@ -8655,13 +8687,14 @@ packages: dev: false name: '@rush-temp/storage-file-datalake' resolution: - integrity: sha512-4nXFDw21uCz8IzhZPyY+1iiVjQoILaT4TquYdQh+Zxd/0yo9bTtGD3RS+0kTL7oTeBWWH7wtm1itXZMWn9m8PA== + integrity: sha512-mL/wbnrnwMnD9Yw+5HAQkF3M4QdSrlycMHv7h94b4j5ZeQI9F8lKtiSosIa6rwXIwziiNtYb/ew3/rhVAUYZ8w== tarball: 'file:projects/storage-file-datalake.tgz' version: 0.0.0 'file:projects/storage-file-share.tgz': dependencies: '@azure/core-tracing': 1.0.0-preview.7 '@microsoft/api-extractor': 7.7.11 + '@opentelemetry/api': 0.6.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-multi-entry': 3.0.0_rollup@1.32.1 @@ -8716,13 +8749,14 @@ packages: dev: false name: '@rush-temp/storage-file-share' resolution: - integrity: sha512-dqZEqYR6AOQ+j0TwqDHxwn8m9m59ULA0L+/BspZF4byqa1wzFQcWz/AbNkiRmSWUbnoFsINYHm/GRdZAdknr6A== + integrity: sha512-eQxCyPrRlOhUGsyKZOvKIig8/67r9vMHT4yG7nFxaTQ5XZdJx6EZHTlVJIoqMdIgMtiJLaR2tpseJUkixXmocw== tarball: 'file:projects/storage-file-share.tgz' version: 0.0.0 'file:projects/storage-queue.tgz': dependencies: '@azure/core-tracing': 1.0.0-preview.7 '@microsoft/api-extractor': 7.7.11 + '@opentelemetry/api': 0.6.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-multi-entry': 3.0.0_rollup@1.32.1 @@ -8776,12 +8810,13 @@ packages: dev: false name: '@rush-temp/storage-queue' resolution: - integrity: sha512-Kk3PKjIXM7Qy7JYXBw6GgzpgmU6sLc35jg69liQia1SOa9q31wn+aywNbz3IyzzYPcrE7MUXPC9BgqXMkSOlzw== + integrity: sha512-ddU1bPpnC4zVKJtLij/LXJHFQ4h6Lz8o/FLSLesL1zVJn1Glcb9vvQhUmvcCmHPDGVi4UFksw32zxyXZf4BD+A== tarball: 'file:projects/storage-queue.tgz' version: 0.0.0 'file:projects/template.tgz': dependencies: '@microsoft/api-extractor': 7.7.11 + '@opentelemetry/api': 0.6.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-json': 4.0.2_rollup@1.32.1 @@ -8826,11 +8861,12 @@ packages: dev: false name: '@rush-temp/template' resolution: - integrity: sha512-dszq34YcE8ZfzfXzutsZwBXOQwa8Yn8Mki4gLB1cXxMDayJ19y9q+n0SGbaIBoMjhemKSepf01SnEqo18t+S8Q== + integrity: sha512-V2FjezpR9jYsIuKKANe1NnLaOegIdnpcFZBUtanRXd06pXRU+o/SaWxXjUq52OiInPE3maWVtWSyDBr7rkA1HA== tarball: 'file:projects/template.tgz' version: 0.0.0 'file:projects/test-utils-perfstress.tgz': dependencies: + '@opentelemetry/api': 0.6.1 '@opentelemetry/types': 0.2.0 '@types/minimist': 1.2.0 '@types/node': 8.10.59 @@ -8852,11 +8888,12 @@ packages: dev: false name: '@rush-temp/test-utils-perfstress' resolution: - integrity: sha512-N9gjt7GrKmNuXzs9V4oJXO2tREypshK02OyYlBNejFgJqU5iHYRJGrXDCFx/HyaAqxtChsluS3SZevAzritlxA== + integrity: sha512-llteIrgXbkpAekAEi1MP2B61P/AkhA/sruWYjGVALQ8uEM6oDCvzZFvZJhLbxCUMICdOK0R+uRgwKd/vNFNZ5w== tarball: 'file:projects/test-utils-perfstress.tgz' version: 0.0.0 'file:projects/test-utils-recorder.tgz': dependencies: + '@opentelemetry/api': 0.6.1 '@opentelemetry/types': 0.2.0 '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 '@rollup/plugin-multi-entry': 3.0.0_rollup@1.32.1 @@ -8912,7 +8949,7 @@ packages: dev: false name: '@rush-temp/test-utils-recorder' resolution: - integrity: sha512-9Cn45LhtWZRAbMjxiC7hLJrWxuZooFx3fFRk2QahqytfPrqa/UDIjDf/9X6astvWT9f2xsjjCCPOiUtBbrzXnw== + integrity: sha512-9sPUutu18XFjg3dxFCXUqEzjbNelany0C/7Z00k9QGXWyOQ6whujs2bf5s616v63Zs4zAQT+WwMq2m8nVW51Ag== tarball: 'file:projects/test-utils-recorder.tgz' version: 0.0.0 'file:projects/testhub.tgz': @@ -8933,7 +8970,7 @@ packages: dev: false name: '@rush-temp/testhub' resolution: - integrity: sha512-dW7m2LfMTGWZVxeZCvuHSzjBQBmz1868xK4zIx5AQifXDsBDrrQ3wdPHnarQV4yI0wcyzcI0QnVzRJ42++O4Hg== + integrity: sha512-guDU8PdEdKCVnGxNd1JEkmqukDoc1wodkEqQCWpY1+bX4ZT+ZY520gfVcMeMHYCEO8TAAhScGNke/y7p9qBArA== tarball: 'file:projects/testhub.tgz' version: 0.0.0 registry: '' diff --git a/dataplane.code-workspace b/dataplane.code-workspace index 944baeda6afa..15a5640de2a9 100644 --- a/dataplane.code-workspace +++ b/dataplane.code-workspace @@ -107,6 +107,9 @@ { "name": "eslint plugin", "path": "common\\tools\\eslint-plugin-azure-sdk" + }, + { + "path": "sdk\\test-utils\\perfstress" } ], "settings": { diff --git a/sdk/test-utils/perfstress/package.json b/sdk/test-utils/perfstress/package.json index ca26ca125db1..050db049d15e 100644 --- a/sdk/test-utils/perfstress/package.json +++ b/sdk/test-utils/perfstress/package.json @@ -63,8 +63,8 @@ "private": true, "dependencies": { "@azure/abort-controller": "^1.0.0", - "@azure/core-http": "^1.0.0", - "@opentelemetry/types": "^0.2.0", + "@azure/core-http": "^1.1.1", + "@opentelemetry/api": "^0.6.1", "tslib": "^1.10.0", "node-fetch": "^2.6.0", "minimist": "~1.2.5", From e09ff9013cd867ddbd3216029d7ab4bd2cbc645b Mon Sep 17 00:00:00 2001 From: Jeff Fisher Date: Wed, 22 Apr 2020 15:47:50 -0700 Subject: [PATCH 27/29] Fix broken eventhubs test --- sdk/eventhub/event-hubs/test/partitionPump.spec.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sdk/eventhub/event-hubs/test/partitionPump.spec.ts b/sdk/eventhub/event-hubs/test/partitionPump.spec.ts index f13d36d84807..8008fb9434b1 100644 --- a/sdk/eventhub/event-hubs/test/partitionPump.spec.ts +++ b/sdk/eventhub/event-hubs/test/partitionPump.spec.ts @@ -33,14 +33,14 @@ describe("PartitionPump", () => { } it("basic span properties are set", async () => { - const fakeParentSpan = new NoOpSpan(); + const fakeParentSpanContext = new NoOpSpan().context(); const tracer = new TestTracer2(); setTracer(tracer); await createProcessingSpan([], eventHubProperties, { tracingOptions: { spanOptions: { - parent: fakeParentSpan.context() + parent: fakeParentSpanContext } } }); @@ -49,12 +49,12 @@ describe("PartitionPump", () => { should.exist(tracer.spanOptions); tracer.spanOptions!.kind!.should.equal(SpanKind.CONSUMER); - tracer.spanOptions!.parent!.should.equal(fakeParentSpan); + tracer.spanOptions!.parent!.should.equal(fakeParentSpanContext); const attributes = tracer.getRootSpans()[0].attributes; attributes!.should.deep.equal({ - component: "eventhubs", + "az.namespace": "Microsoft.EventHub", "message_bus.destination": "theeventhubname", "peer.address": "theendpoint" }); From bd0a00058cd19b308b825ec1cbb50325aba1eefc Mon Sep 17 00:00:00 2001 From: Jeff Fisher Date: Thu, 23 Apr 2020 10:40:04 -0700 Subject: [PATCH 28/29] Ensure datalake depends on latest blob --- sdk/storage/storage-file-datalake/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/storage/storage-file-datalake/package.json b/sdk/storage/storage-file-datalake/package.json index dd53ecb6d16c..f70fd1b9ddc5 100644 --- a/sdk/storage/storage-file-datalake/package.json +++ b/sdk/storage/storage-file-datalake/package.json @@ -99,7 +99,7 @@ "@azure/core-paging": "^1.1.0", "@azure/core-tracing": "1.0.0-preview.8", "@azure/logger": "^1.0.0", - "@azure/storage-blob": "^12.0.0", + "@azure/storage-blob": "^12.2.0", "events": "^3.0.0", "tslib": "^1.10.0" }, From ab0796aa67f681c614a1384adae3ab4b9abb8dc6 Mon Sep 17 00:00:00 2001 From: Jeff Fisher Date: Thu, 23 Apr 2020 13:37:05 -0700 Subject: [PATCH 29/29] Update deps --- sdk/eventhub/eventhubs-checkpointstore-blob/package.json | 2 +- sdk/formrecognizer/ai-form-recognizer/package.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sdk/eventhub/eventhubs-checkpointstore-blob/package.json b/sdk/eventhub/eventhubs-checkpointstore-blob/package.json index e73906314f44..2c87c4cb1359 100644 --- a/sdk/eventhub/eventhubs-checkpointstore-blob/package.json +++ b/sdk/eventhub/eventhubs-checkpointstore-blob/package.json @@ -61,7 +61,7 @@ "dependencies": { "@azure/event-hubs": "^5.0.0", "@azure/logger": "^1.0.0", - "@azure/storage-blob": "^12.0.0", + "@azure/storage-blob": "^12.2.0", "debug": "^4.1.1", "events": "^3.0.0", "tslib": "^1.10.0" diff --git a/sdk/formrecognizer/ai-form-recognizer/package.json b/sdk/formrecognizer/ai-form-recognizer/package.json index 2e46ef534233..b9054e2bb457 100644 --- a/sdk/formrecognizer/ai-form-recognizer/package.json +++ b/sdk/formrecognizer/ai-form-recognizer/package.json @@ -77,7 +77,7 @@ "autoPublish": false, "prettier": "@azure/eslint-plugin-azure-sdk/prettier.json", "dependencies": { - "@azure/core-auth": "^1.1.0", + "@azure/core-auth": "^1.1.2", "@azure/core-lro": "^1.0.0", "@azure/core-paging": "^1.1.0", "@azure/core-http": "^1.1.1", @@ -89,7 +89,7 @@ "devDependencies": { "@azure/eslint-plugin-azure-sdk": "^3.0.0", "@azure/identity": "1.1.0-preview.2", - "@azure/storage-blob": "^12.0.0", + "@azure/storage-blob": "^12.2.0", "@azure/test-utils-recorder": "^1.0.0", "@microsoft/api-extractor": "7.7.11", "@rollup/plugin-commonjs": "^11.0.1",