opentelemetry-instrumentation-elasticsearch
Advanced tools
Comparing version 0.0.0-2021-12-26--12-31 to 0.0.0-2022-04-13--14-32
@@ -6,2 +6,10 @@ # Change Log | ||
# [0.27.0](https://github.com/aspecto-io/opentelemetry-ext-js/compare/opentelemetry-instrumentation-elasticsearch@0.26.1...opentelemetry-instrumentation-elasticsearch@0.27.0) (2021-12-27) | ||
**Note:** Version bump only for package opentelemetry-instrumentation-elasticsearch | ||
## [0.26.1](https://github.com/aspecto-io/opentelemetry-ext-js/compare/opentelemetry-instrumentation-elasticsearch@0.26.0...opentelemetry-instrumentation-elasticsearch@0.26.1) (2021-11-29) | ||
@@ -8,0 +16,0 @@ |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "0.0.0-2021-12-26--12-31"; | ||
export declare const VERSION = "0.0.0-2022-04-13--14-32"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -5,3 +5,3 @@ "use strict"; | ||
// this is autogenerated file, see scripts/version-update.js | ||
exports.VERSION = '0.0.0-2021-12-26--12-31'; | ||
exports.VERSION = '0.0.0-2022-04-13--14-32'; | ||
//# sourceMappingURL=version.js.map |
@@ -9,5 +9,5 @@ "use strict"; | ||
const chai_1 = require("chai"); | ||
const opentelemetry_instrumentation_testing_utils_1 = require("opentelemetry-instrumentation-testing-utils"); | ||
const contrib_test_utils_1 = require("@opentelemetry/contrib-test-utils"); | ||
const elasticsearch_1 = require("../src/elasticsearch"); | ||
const instrumentation = new elasticsearch_1.ElasticsearchInstrumentation(); | ||
const instrumentation = contrib_test_utils_1.registerInstrumentationTesting(new elasticsearch_1.ElasticsearchInstrumentation()); | ||
const elasticsearch_2 = require("@elastic/elasticsearch"); | ||
@@ -40,3 +40,3 @@ const esMockUrl = 'http://localhost:9200'; | ||
}); | ||
const spans = opentelemetry_instrumentation_testing_utils_1.getTestSpans(); | ||
const spans = contrib_test_utils_1.getTestSpans(); | ||
chai_1.expect(spans === null || spans === void 0 ? void 0 : spans.length).to.equal(2); | ||
@@ -65,3 +65,3 @@ chai_1.expect(spans[0].attributes).to.deep.equal({ | ||
await client.cluster.getSettings(); | ||
const spans = opentelemetry_instrumentation_testing_utils_1.getTestSpans(); | ||
const spans = contrib_test_utils_1.getTestSpans(); | ||
chai_1.expect(spans === null || spans === void 0 ? void 0 : spans.length).to.equal(1); | ||
@@ -82,3 +82,3 @@ chai_1.expect(spans[0].attributes).to.deep.equal({ | ||
instrumentation.enable(); | ||
const spans = opentelemetry_instrumentation_testing_utils_1.getTestSpans(); | ||
const spans = contrib_test_utils_1.getTestSpans(); | ||
chai_1.expect(spans === null || spans === void 0 ? void 0 : spans.length).to.equal(0); | ||
@@ -85,0 +85,0 @@ }); |
{ | ||
"name": "opentelemetry-instrumentation-elasticsearch", | ||
"version": "0.0.0-2021-12-26--12-31", | ||
"version": "0.0.0-2022-04-13--14-32", | ||
"description": "open telemetry instrumentation for the `elasticsearch` module", | ||
@@ -36,4 +36,4 @@ "keywords": [ | ||
"version": "yarn run version:update", | ||
"test": "mocha --require opentelemetry-instrumentation-testing-utils", | ||
"test:jaeger": "OTEL_EXPORTER_JAEGER_AGENT_HOST=localhost mocha --require opentelemetry-instrumentation-testing-utils", | ||
"test": "mocha --require @opentelemetry/contrib-test-utils", | ||
"test:jaeger": "OTEL_EXPORTER_JAEGER_AGENT_HOST=localhost mocha --require @opentelemetry/contrib-test-utils", | ||
"test-all-versions": "tav", | ||
@@ -50,3 +50,3 @@ "test:ci": "yarn test-all-versions" | ||
"@opentelemetry/core": "^1.0.0", | ||
"@opentelemetry/instrumentation": "^0.26.0", | ||
"@opentelemetry/instrumentation": "^0.27.0", | ||
"@opentelemetry/semantic-conventions": "^1.0.0" | ||
@@ -57,2 +57,3 @@ }, | ||
"@opentelemetry/api": "^1.0.2", | ||
"@opentelemetry/contrib-test-utils": "^0.28.0", | ||
"@types/chai": "^4.2.15", | ||
@@ -65,3 +66,2 @@ "@types/mocha": "^8.2.2", | ||
"opentelemetry-instrumentation-mocha": "0.0.1-rc.7", | ||
"opentelemetry-instrumentation-testing-utils": "^0.0.0-2021-12-26--12-31", | ||
"sinon": "^9.2.4", | ||
@@ -82,3 +82,3 @@ "test-all-versions": "^5.0.1", | ||
}, | ||
"gitHead": "591785317c33cddbfec450849d945af05520a0f4" | ||
"gitHead": "2e8247578b4b9efe980868177abdd2e793ea18ee" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
95888
+ Added@opentelemetry/api-metrics@0.27.0(transitive)
+ Added@opentelemetry/instrumentation@0.27.0(transitive)
- Removed@opentelemetry/api-metrics@0.26.0(transitive)
- Removed@opentelemetry/instrumentation@0.26.0(transitive)