@opentelemetry/sdk-node 0.25.1-alpha.23 → 0.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;;;;AAEH,4CAA0C;AAC1C,oDAAkD;AAClD,8CAA4C;AAC5C,6DAA2D;AAC3D,wDAAsD;AACtD,wDAAsD;AACtD,2DAAyD;AACzD,wCAAsB;AACtB,0CAAwB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;;;;AAEH,4CAA0C;AAC1C,oDAAkD;AAClD,8CAA4C;AAC5C,6DAA2D;AAC3D,wDAAsD;AACtD,wDAAsD;AACtD,2DAAyD;AACzD,wCAAsB;AACtB,0CAAwB","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * as api from '@opentelemetry/api';\nexport * as contextBase from '@opentelemetry/api';\nexport * as core from '@opentelemetry/core';\nexport * as metrics from '@opentelemetry/sdk-metrics-base';\nexport * as node from '@opentelemetry/sdk-trace-node';\nexport * as resources from '@opentelemetry/resources';\nexport * as tracing from '@opentelemetry/sdk-trace-base';\nexport * from './sdk';\nexport * from './types';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"sdk.js","sourceRoot":"","sources":["../../src/sdk.ts"],"names":[],"mappings":";AAAA;;;;;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you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { TextMapPropagator } from '@opentelemetry/api';\nimport { metrics } from '@opentelemetry/api-metrics';\nimport { ContextManager } from '@opentelemetry/api';\nimport { MeterConfig, MeterProvider } from '@opentelemetry/sdk-metrics-base';\nimport {\n InstrumentationOption,\n registerInstrumentations,\n} from '@opentelemetry/instrumentation';\nimport { NodeTracerConfig, NodeTracerProvider } from '@opentelemetry/sdk-trace-node';\nimport { awsEc2Detector } from '@opentelemetry/resource-detector-aws';\nimport { gcpDetector } from '@opentelemetry/resource-detector-gcp';\nimport {\n detectResources,\n envDetector,\n processDetector,\n Resource,\n ResourceDetectionConfig,\n} from '@opentelemetry/resources';\nimport { BatchSpanProcessor, SpanProcessor } from '@opentelemetry/sdk-trace-base';\nimport { NodeSDKConfiguration } from './types';\n\n/** This class represents everything needed to register a fully configured OpenTelemetry Node.js SDK */\nexport class NodeSDK {\n private _tracerProviderConfig?: {\n tracerConfig: NodeTracerConfig;\n spanProcessor: SpanProcessor;\n contextManager?: ContextManager;\n textMapPropagator?: TextMapPropagator;\n };\n private _instrumentations: InstrumentationOption[];\n private _meterProviderConfig?: MeterConfig;\n\n private _resource: Resource;\n\n private _autoDetectResources: boolean;\n\n private _tracerProvider?: NodeTracerProvider;\n private _meterProvider?: MeterProvider;\n\n /**\n * Create a new NodeJS SDK instance\n */\n public constructor(configuration: Partial<NodeSDKConfiguration> = {}) {\n this._resource = configuration.resource ?? new Resource({});\n\n this._autoDetectResources = configuration.autoDetectResources ?? true;\n\n if (configuration.spanProcessor || configuration.traceExporter) {\n const tracerProviderConfig: NodeTracerConfig = {};\n\n if (configuration.sampler) {\n tracerProviderConfig.sampler = configuration.sampler;\n }\n if (configuration.spanLimits) {\n tracerProviderConfig.spanLimits = configuration.spanLimits;\n }\n\n const spanProcessor =\n configuration.spanProcessor ??\n new BatchSpanProcessor(configuration.traceExporter!);\n\n this.configureTracerProvider(\n tracerProviderConfig,\n spanProcessor,\n configuration.contextManager,\n configuration.textMapPropagator\n );\n }\n\n if (configuration.metricExporter) {\n const meterConfig: MeterConfig = {};\n\n if (configuration.metricProcessor) {\n meterConfig.processor = configuration.metricProcessor;\n }\n if (configuration.metricExporter) {\n meterConfig.exporter = configuration.metricExporter;\n }\n if (typeof configuration.metricInterval === 'number') {\n meterConfig.interval = configuration.metricInterval;\n }\n\n this.configureMeterProvider(meterConfig);\n }\n\n let instrumentations: InstrumentationOption[] = [];\n if (configuration.instrumentations) {\n instrumentations = configuration.instrumentations;\n }\n this._instrumentations = instrumentations;\n }\n /** Set configurations required to register a NodeTracerProvider */\n public configureTracerProvider(\n tracerConfig: NodeTracerConfig,\n spanProcessor: SpanProcessor,\n contextManager?: ContextManager,\n textMapPropagator?: TextMapPropagator\n ): void {\n this._tracerProviderConfig = {\n tracerConfig,\n spanProcessor,\n contextManager,\n textMapPropagator,\n };\n }\n\n /** Set configurations needed to register a MeterProvider */\n public configureMeterProvider(config: MeterConfig): void {\n this._meterProviderConfig = config;\n }\n\n /** Detect resource attributes */\n public async detectResources(config?: ResourceDetectionConfig): Promise<void> {\n const internalConfig: ResourceDetectionConfig = {\n detectors: [awsEc2Detector, gcpDetector, envDetector, processDetector],\n ...config,\n };\n\n this.addResource(await detectResources(internalConfig));\n }\n\n /** Manually add a resource */\n public addResource(resource: Resource): void {\n this._resource = this._resource.merge(resource);\n }\n\n /**\n * Once the SDK has been configured, call this method to construct SDK components and register them with the OpenTelemetry API.\n */\n public async start(): Promise<void> {\n if (this._autoDetectResources) {\n await this.detectResources();\n }\n\n if (this._tracerProviderConfig) {\n const tracerProvider = new NodeTracerProvider({\n ...this._tracerProviderConfig.tracerConfig,\n resource: this._resource,\n });\n\n this._tracerProvider = tracerProvider;\n\n tracerProvider.addSpanProcessor(this._tracerProviderConfig.spanProcessor);\n tracerProvider.register({\n contextManager: this._tracerProviderConfig.contextManager,\n propagator: this._tracerProviderConfig.textMapPropagator,\n });\n }\n\n if (this._meterProviderConfig) {\n const meterProvider = new MeterProvider({\n ...this._meterProviderConfig,\n resource: this._resource,\n });\n\n this._meterProvider = meterProvider;\n\n metrics.setGlobalMeterProvider(meterProvider);\n }\n\n registerInstrumentations({\n instrumentations: this._instrumentations,\n });\n }\n\n public shutdown(): Promise<void> {\n const promises: Promise<unknown>[] = [];\n if (this._tracerProvider) {\n promises.push(this._tracerProvider.shutdown());\n }\n if (this._meterProvider) {\n promises.push(this._meterProvider.shutdown());\n }\n\n return (\n Promise.all(promises)\n // return void instead of the array from Promise.all\n .then(() => {})\n );\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { SpanAttributes, TextMapPropagator, Sampler } from '@opentelemetry/api';\nimport type { ContextManager } from '@opentelemetry/api';\nimport { InstrumentationOption } from '@opentelemetry/instrumentation';\nimport { MetricExporter, Processor } from '@opentelemetry/sdk-metrics-base';\nimport { Resource } from '@opentelemetry/resources';\nimport {\n SpanExporter,\n SpanProcessor,\n SpanLimits,\n} from '@opentelemetry/sdk-trace-base';\n\nexport interface NodeSDKConfiguration {\n autoDetectResources: boolean;\n contextManager: ContextManager;\n defaultAttributes: SpanAttributes;\n textMapPropagator: TextMapPropagator;\n metricProcessor: Processor;\n metricExporter: MetricExporter;\n metricInterval: number;\n instrumentations: InstrumentationOption[];\n resource: Resource;\n sampler: Sampler;\n spanProcessor: SpanProcessor;\n traceExporter: SpanExporter;\n spanLimits: SpanLimits;\n}\n"]}
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.25.0";
1
+ export declare const VERSION = "0.27.0";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -17,5 +17,5 @@
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.VERSION = void 0;
19
19
  // this is autogenerated file, see scripts/version-update.js
20
- exports.VERSION = '0.25.0';
20
+ exports.VERSION = '0.27.0';
21
21
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4DAA4D;AAC/C,QAAA,OAAO,GAAG,QAAQ,CAAC"}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,4DAA4D;AAC/C,QAAA,OAAO,GAAG,QAAQ,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// this is autogenerated file, see scripts/version-update.js\nexport const VERSION = '0.27.0';\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentelemetry/sdk-node",
3
- "version": "0.25.1-alpha.23+feea5167",
3
+ "version": "0.27.0",
4
4
  "description": "OpenTelemetry SDK for Node.js",
5
5
  "main": "build/src/index.js",
6
6
  "types": "build/src/index.d.ts",
@@ -12,7 +12,7 @@
12
12
  "codecov": "nyc report --reporter=json && codecov -f coverage/*.json -p ../../",
13
13
  "lint": "eslint . --ext .ts",
14
14
  "lint:fix": "eslint . --ext .ts --fix",
15
- "version": "node ../../scripts/version-update.js",
15
+ "version": "node ../../../scripts/version-update.js",
16
16
  "watch": "tsc --build --watch",
17
17
  "precompile": "lerna run version --scope $(npm pkg get name) --include-filtered-dependencies",
18
18
  "prewatch": "npm run precompile"
@@ -42,22 +42,22 @@
42
42
  "access": "public"
43
43
  },
44
44
  "dependencies": {
45
- "@opentelemetry/api-metrics": "^0.25.0",
46
- "@opentelemetry/core": "^0.25.1-alpha.23+feea5167",
47
- "@opentelemetry/instrumentation": "^0.25.0",
48
- "@opentelemetry/resource-detector-aws": "0.24.0",
49
- "@opentelemetry/resource-detector-gcp": "0.24.0",
50
- "@opentelemetry/resources": "^0.25.1-alpha.23+feea5167",
51
- "@opentelemetry/sdk-metrics-base": "^0.25.1-alpha.23+feea5167",
52
- "@opentelemetry/sdk-trace-base": "^0.25.1-alpha.23+feea5167",
53
- "@opentelemetry/sdk-trace-node": "^0.25.1-alpha.23+feea5167"
45
+ "@opentelemetry/api-metrics": "0.27.0",
46
+ "@opentelemetry/core": "~1.0.0",
47
+ "@opentelemetry/instrumentation": "0.27.0",
48
+ "@opentelemetry/resource-detector-aws": "~1.0.0",
49
+ "@opentelemetry/resource-detector-gcp": "~0.26.0",
50
+ "@opentelemetry/resources": "~1.0.0",
51
+ "@opentelemetry/sdk-metrics-base": "0.27.0",
52
+ "@opentelemetry/sdk-trace-base": "~1.0.0",
53
+ "@opentelemetry/sdk-trace-node": "~1.0.0"
54
54
  },
55
55
  "peerDependencies": {
56
- "@opentelemetry/api": "^1.0.2"
56
+ "@opentelemetry/api": ">=1.0.0 <1.1.0"
57
57
  },
58
58
  "devDependencies": {
59
- "@opentelemetry/api": "^1.0.2",
60
- "@opentelemetry/context-async-hooks": "^0.25.0",
59
+ "@opentelemetry/api": "~1.0.3",
60
+ "@opentelemetry/context-async-hooks": "1.0.1",
61
61
  "@types/mocha": "8.2.3",
62
62
  "@types/node": "14.17.11",
63
63
  "@types/semver": "7.3.8",
@@ -69,10 +69,10 @@
69
69
  "nock": "12.0.3",
70
70
  "nyc": "15.1.0",
71
71
  "semver": "7.3.5",
72
- "sinon": "11.1.2",
72
+ "sinon": "12.0.1",
73
73
  "ts-loader": "8.3.0",
74
74
  "ts-mocha": "8.0.0",
75
75
  "typescript": "4.3.5"
76
76
  },
77
- "gitHead": "feea5167c15c41f0aeedc60959e36c18315c7ede"
77
+ "gitHead": "f5e227f0cb829df1ca2dc220a3e0e8ae0e607405"
78
78
  }