@azure/core-tracing
Advanced tools
Comparing version 1.1.3-alpha.20240924.1 to 1.1.3-alpha.20240925.5
@@ -23,4 +23,19 @@ /** | ||
* | ||
* ```ts | ||
* const myOperationResult = await tracingClient.withSpan("myClassName.myOperationName", options, (updatedOptions) => myOperation(updatedOptions)); | ||
* ```ts snippet:with_span_example | ||
* import { createTracingClient } from "@azure/core-tracing"; | ||
* | ||
* const tracingClient = createTracingClient({ | ||
* namespace: "test.namespace", | ||
* packageName: "test-package", | ||
* packageVersion: "1.0.0", | ||
* }); | ||
* const options = {}; | ||
* const myOperationResult = await tracingClient.withSpan( | ||
* "myClassName.myOperationName", | ||
* options, | ||
* (updatedOptions) => { | ||
* // Do something with the updated options. | ||
* return "myOperationResult"; | ||
* }, | ||
* ); | ||
* ``` | ||
@@ -27,0 +42,0 @@ * @param name - The name of the span. By convention this should be `${className}.${methodName}`. |
@@ -23,4 +23,19 @@ /** | ||
* | ||
* ```ts | ||
* const myOperationResult = await tracingClient.withSpan("myClassName.myOperationName", options, (updatedOptions) => myOperation(updatedOptions)); | ||
* ```ts snippet:with_span_example | ||
* import { createTracingClient } from "@azure/core-tracing"; | ||
* | ||
* const tracingClient = createTracingClient({ | ||
* namespace: "test.namespace", | ||
* packageName: "test-package", | ||
* packageVersion: "1.0.0", | ||
* }); | ||
* const options = {}; | ||
* const myOperationResult = await tracingClient.withSpan( | ||
* "myClassName.myOperationName", | ||
* options, | ||
* (updatedOptions) => { | ||
* // Do something with the updated options. | ||
* return "myOperationResult"; | ||
* }, | ||
* ); | ||
* ``` | ||
@@ -27,0 +42,0 @@ * @param name - The name of the span. By convention this should be `${className}.${methodName}`. |
@@ -136,4 +136,19 @@ /** | ||
* | ||
* ```ts | ||
* const myOperationResult = await tracingClient.withSpan("myClassName.myOperationName", options, (updatedOptions) => myOperation(updatedOptions)); | ||
* ```ts snippet:with_span_example | ||
* import { createTracingClient } from "@azure/core-tracing"; | ||
* | ||
* const tracingClient = createTracingClient({ | ||
* namespace: "test.namespace", | ||
* packageName: "test-package", | ||
* packageVersion: "1.0.0", | ||
* }); | ||
* const options = {}; | ||
* const myOperationResult = await tracingClient.withSpan( | ||
* "myClassName.myOperationName", | ||
* options, | ||
* (updatedOptions) => { | ||
* // Do something with the updated options. | ||
* return "myOperationResult"; | ||
* }, | ||
* ); | ||
* ``` | ||
@@ -140,0 +155,0 @@ * @param name - The name of the span. By convention this should be `${className}.${methodName}`. |
@@ -23,4 +23,19 @@ /** | ||
* | ||
* ```ts | ||
* const myOperationResult = await tracingClient.withSpan("myClassName.myOperationName", options, (updatedOptions) => myOperation(updatedOptions)); | ||
* ```ts snippet:with_span_example | ||
* import { createTracingClient } from "@azure/core-tracing"; | ||
* | ||
* const tracingClient = createTracingClient({ | ||
* namespace: "test.namespace", | ||
* packageName: "test-package", | ||
* packageVersion: "1.0.0", | ||
* }); | ||
* const options = {}; | ||
* const myOperationResult = await tracingClient.withSpan( | ||
* "myClassName.myOperationName", | ||
* options, | ||
* (updatedOptions) => { | ||
* // Do something with the updated options. | ||
* return "myOperationResult"; | ||
* }, | ||
* ); | ||
* ``` | ||
@@ -27,0 +42,0 @@ * @param name - The name of the span. By convention this should be `${className}.${methodName}`. |
@@ -23,4 +23,19 @@ /** | ||
* | ||
* ```ts | ||
* const myOperationResult = await tracingClient.withSpan("myClassName.myOperationName", options, (updatedOptions) => myOperation(updatedOptions)); | ||
* ```ts snippet:with_span_example | ||
* import { createTracingClient } from "@azure/core-tracing"; | ||
* | ||
* const tracingClient = createTracingClient({ | ||
* namespace: "test.namespace", | ||
* packageName: "test-package", | ||
* packageVersion: "1.0.0", | ||
* }); | ||
* const options = {}; | ||
* const myOperationResult = await tracingClient.withSpan( | ||
* "myClassName.myOperationName", | ||
* options, | ||
* (updatedOptions) => { | ||
* // Do something with the updated options. | ||
* return "myOperationResult"; | ||
* }, | ||
* ); | ||
* ``` | ||
@@ -27,0 +42,0 @@ * @param name - The name of the span. By convention this should be `${className}.${methodName}`. |
{ | ||
"name": "@azure/core-tracing", | ||
"version": "1.1.3-alpha.20240924.1", | ||
"version": "1.1.3-alpha.20240925.5", | ||
"description": "Provides low-level interfaces and helper methods for tracing in Azure SDK", | ||
@@ -56,7 +56,7 @@ "sdk-type": "client", | ||
"build:test": "echo skipped. actual commands inlined in browser test scripts", | ||
"build": "npm run clean && tshy && dev-tool run extract-api", | ||
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api", | ||
"check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\"", | ||
"clean": "rimraf --glob dist dist-* temp types *.tgz *.log", | ||
"execute:samples": "echo skipped", | ||
"extract-api": "tshy && dev-tool run extract-api", | ||
"extract-api": "dev-tool run build-package && dev-tool run extract-api", | ||
"format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"samples-dev/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\"", | ||
@@ -70,7 +70,8 @@ "integration-test:browser": "echo skipped", | ||
"test:browser": "npm run clean && npm run unit-test:browser && npm run integration-test:browser", | ||
"test:node": "npm run clean && tshy && npm run unit-test:node && npm run integration-test:node", | ||
"test": "npm run clean && tshy && npm run unit-test:node && dev-tool run build-test && npm run unit-test:browser && npm run integration-test", | ||
"unit-test:browser": "npm run clean && tshy && dev-tool run build-test && dev-tool run test:vitest --no-test-proxy --browser", | ||
"test:node": "npm run clean && dev-tool run build-package && npm run unit-test:node && npm run integration-test:node", | ||
"test": "npm run clean && dev-tool run build-package && npm run unit-test:node && dev-tool run build-test && npm run unit-test:browser && npm run integration-test", | ||
"unit-test:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --no-test-proxy --browser", | ||
"unit-test:node": "dev-tool run test:vitest --no-test-proxy", | ||
"unit-test": "npm run unit-test:node && npm run unit-test:browser" | ||
"unit-test": "npm run unit-test:node && npm run unit-test:browser", | ||
"update-snippets": "dev-tool run update-snippets" | ||
}, | ||
@@ -77,0 +78,0 @@ "dependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
242431
2534