{"name":"@azure/monitor-opentelemetry","version":"1.2.1-alpha.20240212.1","keywords":["node","azure","monitor","javascript","opentelemetry","distro","cloud"],"author":{"name":"Microsoft Corporation"},"license":"MIT","_id":"@azure/monitor-opentelemetry@1.2.1-alpha.20240212.1","maintainers":[{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"}],"homepage":"https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/monitor/monitor-opentelemetry/","bugs":{"url":"https://github.com/Azure/azure-sdk-for-js/issues"},"dist":{"shasum":"35834346d11af876608fff06ba3b29752b3688dd","tarball":"http://registry-npm.ywwl.com/@azure/monitor-opentelemetry/download/@azure/monitor-opentelemetry-1.2.1-alpha.20240212.1.tgz","fileCount":80,"integrity":"sha512-RBiS60BTGeaKGjx1LxgxW+x+GvTLl0o/U931Xd9uVyvcfcCg+gYYmE3axwQIjoFXBQ2yT0+eG/pTvgBCXU2Q8Q==","signatures":[{"sig":"MEUCIQD5rgjbg28uLLVA3B73tI4UzngL+WSSE5yiuufRGfUaGAIgem58m4NMUDgxg+h6wTFoSuP5VMNFUJyZd5qoNg8pqp4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":624504,"size":119067,"noattachment":false,"key":"/@azure/monitor-opentelemetry/-/@azure/monitor-opentelemetry-1.2.1-alpha.20240212.1.tgz"},"main":"dist/index.js","_from":"file:/mnt/vss/_work/1/packages/azure-monitor-opentelemetry/azure-monitor-opentelemetry-1.2.1-alpha.20240212.1.tgz","types":"types/monitor-opentelemetry.d.ts","module":"dist-esm/src/index.js","readme":"# Azure Monitor OpenTelemetry for JavaScript\n\n[![npm version](https://badge.fury.io/js/%40azure%2Fmonitor-opentelemetry.svg)](https://badge.fury.io/js/%40azure%2Fmonitor-opentelemetry)\n\n## Getting started\n\n### Install the package\n\n`npm install @azure/monitor-opentelemetry`\n\n### Currently supported environments\n\n- [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule)\n\n- [OpenTelemetry supported runtimes](https://github.com/open-telemetry/opentelemetry-js#supported-runtimes)\n\nSee our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.\n\n### Prerequisites\n\n- An [Azure subscription](https://azure.microsoft.com/free/)\n- An [Application Insights workspace](https://docs.microsoft.com/azure/azure-monitor/app/app-insights-overview/)\n\n### Enable Azure Monitor OpenTelemetry Client\n\n> *Important:* `useAzureMonitor` must be called *before* you import anything else. There may be resulting telemetry loss if other libraries are imported first.\n\n\n```typescript\nconst { useAzureMonitor, AzureMonitorOpenTelemetryOptions } = require(\"@azure/monitor-opentelemetry\");\n\nconst options: AzureMonitorOpenTelemetryOptions = {\n  azureMonitorExporterOptions: {\n    connectionString:\n      process.env[\"APPLICATIONINSIGHTS_CONNECTION_STRING\"] || \"<your connection string>\",\n  },\n}\nuseAzureMonitor(options);\n```\n\n* Connection String could be set using the environment variable APPLICATIONINSIGHTS\\_CONNECTION\\_STRING\n\n## Configuration\n\n\n```typescript\nconst { AzureMonitorOpenTelemetryClient, AzureMonitorOpenTelemetryOptions } = require(\"@azure/monitor-opentelemetry\");\nconst { Resource } = require(\"@opentelemetry/resources\");\n\nconst resource = new Resource({ \"testAttribute\": \"testValue\" });\nconst options: AzureMonitorOpenTelemetryOptions = {\n    azureMonitorExporterOptions: {\n        // Offline storage\n        storageDirectory: \"c://azureMonitor\",\n        // Automatic retries\n        disableOfflineStorage: false,\n        // Application Insights Connection String\n        connectionString:   process.env[\"APPLICATIONINSIGHTS_CONNECTION_STRING\"] || \"<your connection string>\",\n    },\n    samplingRatio: 1,\n    instrumentationOptions: {\n      // Instrumentations generating traces\n        azureSdk: { enabled: true },\n        http: { enabled: true },\n        mongoDb: { enabled: true },\n        mySql: { enabled: true },\n        postgreSql: { enabled: true },\n        redis: { enabled: true },\n        redis4: { enabled: true },\n        // Instrumentations generating logs\n        bunyan: { enabled: true },\n    },\n    enableLiveMetrics: true,\n    enableStandardMetrics: true,\n    browserSdkLoaderOptions: {\n        enabled: false,\n        connectionString: \"\",\n    },\n    resource: resource\n};\n\nuseAzureMonitor(options);\n\n```\n\n\n|Property|Description|Default|\n| ------------------------------- |------------------------------------------------------------------------------------------------------------|-------|\n| azureMonitorExporterOptions                     | Azure Monitor OpenTelemetry Exporter Configuration. [More info here](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/monitor/monitor-opentelemetry-exporter)                                                | |                                    | |\n| samplingRatio              | Sampling ratio must take a value in the range [0,1], 1 meaning all data will sampled and 0 all Tracing data will be sampled out.                       | 1|\n| instrumentationOptions| Allow configuration of OpenTelemetry Instrumentations. |  {\"http\": { enabled: true },\"azureSdk\": { enabled: false },\"mongoDb\": { enabled: false },\"mySql\": { enabled: false },\"postgreSql\": { enabled: false },\"redis\": { enabled: false },\"bunyan\": { enabled: false }}|\n| browserSdkLoaderOptions| Allow configuration of Web Instrumentations. | { enabled: false, connectionString: \"\" }\n| resource       | Opentelemetry Resource. [More info here](https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-resources)         ||\n| samplingRatio              | Sampling ratio must take a value in the range [0,1], 1 meaning all data will sampled and 0 all Tracing data will be sampled out. \n| enableLiveMetrics          | Enable/Disable Live Metrics.\n| enableStandardMetrics      | Enable/Disable Standard Metrics. \n\nOptions could be set using configuration file `applicationinsights.json` located under root folder of @azure/monitor-opentelemetry package installation folder, Ex: `node_modules/@azure/monitor-opentelemetry`. These configuration values will be applied to all AzureMonitorOpenTelemetryClient instances. \n\n\n```json\n{\n    \"samplingRatio\": 0.8,\n    \"enableStandardMetrics\": true,\n    \"enableLiveMetrics\": true,\n    \"instrumentationOptions\":{\n        \"azureSdk\": {\n            \"enabled\": false\n        }\n    },\n    ...\n}\n  \n```\n\nCustom JSON file could be provided using `APPLICATIONINSIGHTS_CONFIGURATION_FILE` environment variable.\n\n```javascript\nprocess.env.APPLICATIONINSIGHTS_CONFIGURATION_FILE = \"C:/applicationinsights/config/customConfig.json\"\n\n// Application Insights SDK setup....\n```\n\n## Instrumentation libraries\n\nThe following OpenTelemetry Instrumentation libraries are included as part of Azure Monitor OpenTelemetry.\n\n> *Warning:* Instrumentation libraries are based on experimental OpenTelemetry specifications. Microsoft's *preview* support commitment is to ensure that the following libraries emit data to Azure Monitor Application Insights, but it's possible that breaking changes or experimental mapping will block some data elements.\n\n### Distributed Tracing\n\n  - [HTTP/HTTPS](https://github.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/opentelemetry-instrumentation-http)\n  - [MongoDB](https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/opentelemetry-instrumentation-mongodb)\n  - [MySQL](https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/opentelemetry-instrumentation-mysql)\n  - [Postgres](https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/opentelemetry-instrumentation-pg)\n  - [Redis](https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/opentelemetry-instrumentation-redis)\n  - [Redis-4](https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/opentelemetry-instrumentation-redis-4)\n  - [Azure SDK](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/instrumentation/opentelemetry-instrumentation-azure-sdk)\n\n### Metrics\n- [HTTP/HTTPS](https://github.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/opentelemetry-instrumentation-http) \n\n\n### Logs\n- [Bunyan](https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/opentelemetry-instrumentation-bunyan) \n\nOther OpenTelemetry Instrumentations are available [here](https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node) and could be added using TracerProvider in AzureMonitorOpenTelemetryClient.\n\n ```typescript\n    const { useAzureMonitor } = require(\"@azure/monitor-opentelemetry\");\n    const { metrics, trace } = require(\"@opentelemetry/api\");\n    const { registerInstrumentations } = require(\"@opentelemetry/instrumentation\");\n    const { ExpressInstrumentation } = require('@opentelemetry/instrumentation-express');\n\n    useAzureMonitor();\n    const instrumentations = [\n        new ExpressInstrumentation(),\n    ];\n    registerInstrumentations({\n        tracerProvider:  trace.getTracerProvider(),\n        meterProvider: metrics.getMeterProvider(),\n        instrumentations: instrumentations,\n    });\n    \n```\n\n### Application Insights Browser SDK Loader\n\nApplication Insights Browser SDK Loader allows you to inject the web SDK into node server responses when the following conditions are true:\n\n* Response has status code `200`.\n* Response method is `GET`.\n* Server response has the `Conent-Type` html header.\n* Server resonse contains both <head> and </head> tags.\n* Response does not contain current /backup web Instrumentation CDN endpoints. (current and backup Web Instrumentation CDN endpoints [here](https://github.com/microsoft/ApplicationInsights-JS#active-public-cdn-endpoints))\n\n\n## Set the Cloud Role Name and the Cloud Role Instance\n\nYou might set the Cloud Role Name and the Cloud Role Instance via [OpenTelemetry Resource](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/resource/sdk.md#resource-sdk) attributes.\n\n\n```typescript\nconst { useAzureMonitor, AzureMonitorOpenTelemetryOptions } = require(\"@azure/monitor-opentelemetry\");\nconst { Resource } = require(\"@opentelemetry/resources\");\nconst { SemanticResourceAttributes } = require(\"@opentelemetry/semantic-conventions\");\n\n// ----------------------------------------\n// Setting role name and role instance\n// ----------------------------------------\nconst customResource = Resource.EMPTY;\ncustomResource.attributes[SemanticResourceAttributes.SERVICE_NAME] = \"my-helloworld-service\";\ncustomResource.attributes[SemanticResourceAttributes.SERVICE_NAMESPACE] = \"my-namespace\";\ncustomResource.attributes[SemanticResourceAttributes.SERVICE_INSTANCE_ID] = \"my-instance\";\n\nconst options: AzureMonitorOpenTelemetryOptions = { resource : customResource }\nuseAzureMonitor(options);\n```\n\nFor information on standard attributes for resources, see [Resource Semantic Conventions](https://github.com/open-telemetry/semantic-conventions/tree/main/docs/resource).\n\n\n## Modify telemetry\n\nThis section explains how to modify telemetry.\n\n### Add span attributes\n\nTo add span attributes, use either of the following two ways:\n\n* Use options provided by [instrumentation libraries](#instrumentation-libraries).\n* Add a custom span processor.\n\nThese attributes might include adding a custom property to your telemetry.\n\n> *Tip:* The advantage of using options provided by instrumentation libraries, when they're available, is that the entire context is available. As a result, users can select to add or filter more attributes. For example, the enrich option in the HttpClient instrumentation library gives users access to the httpRequestMessage itself. They can select anything from it and store it as an attribute.\n\n#### Add a custom property to a Trace\n\nAny [attributes](#add-span-attributes) you add to spans are exported as custom properties.\n\nUse a custom processor:\n\n```typescript\nconst { useAzureMonitor } = require(\"@azure/monitor-opentelemetry\");\nconst { trace } = require(\"@opentelemetry/api\");\nconst { ReadableSpan, Span, SpanProcessor } = require(\"@opentelemetry/sdk-trace-base\");\nconst { NodeTracerProvider } = require(\"@opentelemetry/sdk-trace-node\");\nconst { SemanticAttributes } = require(\"@opentelemetry/semantic-conventions\");\n\nuseAzureMonitor();\n\nclass SpanEnrichingProcessor implements SpanProcessor{\n  forceFlush(): Promise<void>{\n    return Promise.resolve();\n  }\n  shutdown(): Promise<void>{\n    return Promise.resolve();\n  }\n  onStart(_span: Span): void{}\n  onEnd(span: ReadableSpan){\n    span.attributes[\"CustomDimension1\"] = \"value1\";\n    span.attributes[\"CustomDimension2\"] = \"value2\";\n    span.attributes[SemanticAttributes.HTTP_CLIENT_IP] = \"<IP Address>\";\n  }\n}\n\nconst tracerProvider = trace.getTracerProvider().getDelegate();\ntracerProvider.addSpanProcessor(new SpanEnrichingProcessor());\n```\n\n### Filter telemetry\n\nYou might use the following ways to filter out telemetry before it leaves your application.\n\n1. Exclude the URL option provided by many HTTP instrumentation libraries.\n\n    The following example shows how to exclude a certain URL from being tracked by using the [HTTP/HTTPS instrumentation library](https://github.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/opentelemetry-instrumentation-http):\n    \n    ```typescript\n    const { useAzureMonitor, AzureMonitorOpenTelemetryOptions } = require(\"@azure/monitor-opentelemetry\");\n    const { IncomingMessage } = require(\"http\");\n    const { RequestOptions } = require(\"https\");\n    const { HttpInstrumentationConfig }= require(\"@opentelemetry/instrumentation-http\");\n\n    const httpInstrumentationConfig: HttpInstrumentationConfig = {\n        enabled: true,\n        ignoreIncomingRequestHook: (request: IncomingMessage) => {\n            // Ignore OPTIONS incoming requests\n            if (request.method === 'OPTIONS') {\n                return true;\n            }\n            return false;\n        },\n        ignoreOutgoingRequestHook: (options: RequestOptions) => {\n            // Ignore outgoing requests with /test path\n            if (options.path === '/test') {\n                return true;\n            }\n            return false;\n        }\n    };\n    const options : AzureMonitorOpenTelemetryOptions = {\n        instrumentationOptions: {\n          http:  httpInstrumentationConfig,\n        }\n    };\n    useAzureMonitor(options);\n    \n    ```\n\n1. Use a custom processor. You can use a custom span processor to exclude certain spans from being exported. To mark spans to not be exported, set `TraceFlag` to `DEFAULT`.\nUse the add [custom property example](#add-a-custom-property-to-a-trace), but replace the following lines of code:\n\n    ```typescript\n    ...\n    import { SpanKind, TraceFlags } from \"@opentelemetry/api\";\n    \n    class SpanEnrichingProcessor implements SpanProcessor{\n        ...\n    \n        onEnd(span: ReadableSpan) {\n            if(span.kind == SpanKind.INTERNAL){\n                span.spanContext().traceFlags = TraceFlags.NONE;\n            }\n        }\n    }\n    ```\n\n## Custom telemetry\n\nThis section explains how to collect custom telemetry from your application.\n\n### Add Custom Metrics\n\nYou may want to collect metrics beyond what is collected by [instrumentation libraries](#instrumentation-libraries).\n\nThe OpenTelemetry API offers six metric \"instruments\" to cover a variety of metric scenarios and you'll need to pick the correct \"Aggregation Type\" when visualizing metrics in Metrics Explorer. This requirement is true when using the OpenTelemetry Metric API to send metrics and when using an instrumentation library.\n\n\nThe following table shows the recommended aggregation types] for each of the OpenTelemetry Metric Instruments.\n\n| OpenTelemetry Instrument                             | Azure Monitor Aggregation Type                             |\n|------------------------------------------------------|------------------------------------------------------------|\n| Counter                                              | Sum                                                        |\n| Asynchronous Counter                                 | Sum                                                        |\n| Histogram                                            | Average, Sum, Count (Max, Min for Python and Node.js only) |\n| Asynchronous Gauge                                   | Average                                                    |\n| UpDownCounter (Python and Node.js only)              | Sum                                                        |\n| Asynchronous UpDownCounter (Python and Node.js only) | Sum                                                        |\n\n>> *Caution:* Aggregation types beyond what's shown in the table typically aren't meaningful.\n\nThe [OpenTelemetry Specification](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/api.md#instrument)\ndescribes the instruments and provides examples of when you might use each one.\n\n```typescript\n    const { useAzureMonitor } = require(\"@azure/monitor-opentelemetry\");\n    const { metrics } = require(\"@opentelemetry/api\");\n\n    useAzureMonitor();\n    const meter =  metrics.getMeter(\"testMeter\");\n\n    let histogram = meter.createHistogram(\"histogram\");\n    let counter = meter.createCounter(\"counter\");\n    let gauge = meter.createObservableGauge(\"gauge\");\n    gauge.addCallback((observableResult: ObservableResult) => {\n        let randomNumber = Math.floor(Math.random() * 100);\n        observableResult.observe(randomNumber, {\"testKey\": \"testValue\"});\n    });\n\n    histogram.record(1, { \"testKey\": \"testValue\" });\n    histogram.record(30, { \"testKey\": \"testValue2\" });\n    histogram.record(100, { \"testKey2\": \"testValue\" });\n\n    counter.add(1, { \"testKey\": \"testValue\" });\n    counter.add(5, { \"testKey2\": \"testValue\" });\n    counter.add(3, { \"testKey\": \"testValue2\" });\n```\n\n\n### Add Custom Exceptions\n\nSelect instrumentation libraries automatically support exceptions to Application Insights.\nHowever, you may want to manually report exceptions beyond what instrumention libraries report.\nFor instance, exceptions caught by your code are *not* ordinarily not reported, and you may wish to report them\nand thus draw attention to them in relevant experiences including the failures blade and end-to-end transaction view.\n\n```typescript\nconst { useAzureMonitor } = require(\"@azure/monitor-opentelemetry\");\nconst { trace } = require(\"@opentelemetry/api\");\n\nuseAzureMonitor();\nconst tracer =  trace.getTracer(\"testMeter\");\n\nlet span = tracer.startSpan(\"hello\");\ntry{\n    throw new Error(\"Test Error\");\n}\ncatch(error){\n    span.recordException(error);\n}\n```\n\n## Troubleshooting\n\n### Self-diagnostics\n\nAzure Monitor OpenTelemetry uses the OpenTelemetry API Logger for internal logs. To enable it, use the following code:\n\n```typescript\nconst { useAzureMonitor } = require(\"@azure/monitor-opentelemetry\");\nconst { DiagLogLevel } = require(\"@opentelemetry/api\");\n\nprocess.env.APPLICATIONINSIGHTS_INSTRUMENTATION_LOGGING_LEVEL = \"VERBOSE\";\nprocess.env.APPLICATIONINSIGHTS_LOG_DESTINATION = \"file\";\nprocess.env.APPLICATIONINSIGHTS_LOGDIR = \"C:/applicationinsights/logs\";\n\nuseAzureMonitor();\n```\n\n`APPLICATIONINSIGHTS_INSTRUMENTATION_LOGGING_LEVEL` environment varialbe could be used to set desired log level, supporting the following values: `NONE`, `ERROR`, `WARN`, `INFO`, `DEBUG`, `VERBOSE` and  `ALL`.\n\nLogs could be put into local file using `APPLICATIONINSIGHTS_LOG_DESTINATION` environment variable, supported values are `file` and `file+console`, a file named `applicationinsights.log` will be generated on tmp folder by default, including all logs,  `/tmp` for *nix and `USERDIR/AppData/Local/Temp` for Windows. Log directory could be configured using `APPLICATIONINSIGHTS_LOGDIR` environment variable.\n\n\n## Examples\n\nFor complete samples of a few champion scenarios, see the [`samples/`](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/monitor/monitor-opentelemetry/samples-dev/) folder.\n\n## Key concepts\n\nFor more information on the OpenTelemetry project, please review the [**OpenTelemetry Specifications**](https://github.com/open-telemetry/opentelemetry-specification#opentelemetry-specification).\n\n\n### Plugin Registry\n\nTo see if a plugin has already been made for a library you are using, please check out the [OpenTelemetry Registry](https://opentelemetry.io/registry/).\n\nIf you cannot your library in the registry, feel free to suggest a new plugin request at [`opentelemetry-js-contrib`](https://github.com/open-telemetry/opentelemetry-js-contrib).\n\n## Contributing\n\nIf you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code.\n\n![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/monitor/monitor-opentelemetry/README.png)\n","engines":{"node":">=18.0.0"},"scripts":{"lint":"eslint package.json api-extractor.json src test --ext .ts -f html -o telemetry-lintReport.html || exit 0","pack":"npm pack 2>&1","test":"npm run test:node && npm run test:browser","build":"npm run build:node && npm run build:browser && api-extractor run --local","clean":"rimraf dist-esm types dist","format":"dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"","report":"nyc report --reporter=json","lint:fix":"eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]","test:node":"npm run unit-test:node","unit-test":"npm run unit-test:node && npm run unit-test:browser","build:node":"tsc -p . && dev-tool run bundle --browser-test=false","build:test":"echo skipped","extract-api":"tsc -p . && api-extractor run --local","check-format":"dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"","test:browser":"npm run unit-test:browser","build:browser":"echo skipped","build:samples":"dev-tool samples publish --force","unit-test:node":"mocha -r ../../../common/tools/esm-workaround -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js  --reporter-option output=test-results.xml --timeout 1200000 --full-trace \"dist-esm/test/internal/unit/**/*.test.js\"","execute:samples":"dev-tool samples run samples-dev","functional-test":"mocha -r ../../../common/tools/esm-workaround -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js  --reporter-option output=test-results.xml --timeout 1200000 --full-trace \"dist-esm/test/internal/functional/*.test.js\"","generate:client":"autorest --typescript ./swagger/README.md","integration-test":"npm run integration-test:node && npm run integration-test:browser","unit-test:browser":"echo skipped","unit-test:node:debug":"mocha --inspect-brk -r ../../../common/tools/esm-workaround -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js  --reporter-option output=test-results.xml --timeout 1200000 --full-trace \"dist-esm/test/internal/unit/**/*.test.js\"","integration-test:node":"npm run functional-test","integration-test:browser":"echo skipped","unit-test:node:no-timeout":"echo skipped","test-opentelemetry-versions":"node test-opentelemetry-versions.js 2>&1"},"_npmUser":{"name":"azure-sdk","email":"azure-sdk-npmjs@microsoft.com"},"prettier":"@azure/eslint-plugin-azure-sdk/prettier.json","sdk-type":"client","_resolved":"/mnt/vss/_work/1/packages/azure-monitor-opentelemetry/azure-monitor-opentelemetry-1.2.1-alpha.20240212.1.tgz","_integrity":"sha512-RBiS60BTGeaKGjx1LxgxW+x+GvTLl0o/U931Xd9uVyvcfcCg+gYYmE3axwQIjoFXBQ2yT0+eG/pTvgBCXU2Q8Q==","repository":{"url":"git+https://github.com/Azure/azure-sdk-for-js.git","type":"git"},"_npmVersion":"10.2.3","description":"Azure Monitor OpenTelemetry (Node.js)","directories":{},"sideEffects":false,"_nodeVersion":"18.19.0","dependencies":{"tslib":"^2.2.0","@azure/logger":"^1.0.0","@azure/core-auth":"^1.3.0","@azure/functions":"^3.2.0","@azure/core-client":"^1.0.0","@opentelemetry/api":"^1.7.0","@opentelemetry/core":"^1.21.0","@opentelemetry/api-logs":"^0.48.0","@opentelemetry/sdk-logs":"^0.48.0","@opentelemetry/sdk-node":"^0.48.0","@opentelemetry/resources":"^1.21.0","@azure/core-rest-pipeline":"^1.1.0","@opentelemetry/sdk-metrics":"^1.21.0","@opentelemetry/sdk-trace-base":"^1.21.0","@opentelemetry/sdk-trace-node":"^1.21.0","@opentelemetry/instrumentation":"^0.48.0","@opentelemetry/instrumentation-pg":"^0.38.0","@opentelemetry/instrumentation-http":"^0.48.0","@opentelemetry/semantic-conventions":"^1.21.0","@opentelemetry/instrumentation-mysql":"^0.35.0","@opentelemetry/instrumentation-redis":"^0.36.0","@azure/monitor-opentelemetry-exporter":">=1.0.0-alpha <1.0.0-alphb","@opentelemetry/instrumentation-bunyan":"^0.35.0","@opentelemetry/instrumentation-mongodb":"^0.39.0","@opentelemetry/instrumentation-redis-4":"^0.36.0","@opentelemetry/resource-detector-azure":"^0.2.4","@microsoft/applicationinsights-web-snippet":"^1.0.1","@azure/opentelemetry-instrumentation-azure-sdk":">=1.0.0-alpha <1.0.0-alphb"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"c8":"^8.0.0","esm":"^3.2.18","nock":"^12.0.3","mocha":"^10.0.0","sinon":"^17.0.0","dotenv":"^16.0.0","eslint":"^8.0.0","rimraf":"^3.0.0","ts-node":"^10.0.0","typescript":"~5.3.3","@types/node":"^18.0.0","@types/mocha":"^10.0.0","@types/sinon":"^17.0.0","@azure/dev-tool":">=1.0.0-alpha <1.0.0-alphb","eslint-plugin-node":"^11.1.0","@microsoft/api-extractor":"^7.31.1","@azure/eslint-plugin-azure-sdk":">=3.0.0-alpha <3.0.0-alphb"},"//sampleConfiguration":{"productName":"Azure Monitor OpenTelemetry","productSlugs":["azure-monitor"],"requiredResources":{"Azure Application Insights workspace instance":"https://docs.microsoft.com/azure/azure-monitor/app/app-insights-overview"}},"_npmOperationalInternal":{"tmp":"tmp/monitor-opentelemetry_1.2.1-alpha.20240212.1_1707745124214_0.9267812401177127","host":"s3://npm-registry-packages"},"publish_time":1707745124364,"_cnpm_publish_time":1707745124364,"dist-tags":{"dev":"1.16.0-alpha.20260311.1","latest":"1.21.0"}}