@opentelemetry/instrumentation-memcached
Advanced tools
Comparing version 0.36.0 to 0.37.0
@@ -8,3 +8,3 @@ import * as api from '@opentelemetry/api'; | ||
static readonly COMMON_ATTRIBUTES: { | ||
"db.system": "memcached"; | ||
"db.system": string; | ||
}; | ||
@@ -11,0 +11,0 @@ static readonly DEFAULT_CONFIG: InstrumentationConfig; |
@@ -26,3 +26,3 @@ "use strict"; | ||
constructor(config = {}) { | ||
super('@opentelemetry/instrumentation-memcached', version_1.VERSION, Object.assign({}, Instrumentation.DEFAULT_CONFIG, config)); | ||
super(version_1.PACKAGE_NAME, version_1.PACKAGE_VERSION, Object.assign({}, Instrumentation.DEFAULT_CONFIG, config)); | ||
} | ||
@@ -67,3 +67,3 @@ setConfig(config = {}) { | ||
span.updateName(`memcached ${query.type}`); | ||
span.setAttributes(Object.assign({ 'db.memcached.key': query.key, 'db.memcached.lifetime': query.lifetime, [semantic_conventions_1.SemanticAttributes.DB_OPERATION]: query.type, [semantic_conventions_1.SemanticAttributes.DB_STATEMENT]: instrumentation._config.enhancedDatabaseReporting | ||
span.setAttributes(Object.assign({ 'db.memcached.key': query.key, 'db.memcached.lifetime': query.lifetime, [semantic_conventions_1.SEMATTRS_DB_OPERATION]: query.type, [semantic_conventions_1.SEMATTRS_DB_STATEMENT]: instrumentation._config.enhancedDatabaseReporting | ||
? query.command | ||
@@ -97,3 +97,3 @@ : undefined }, utils.getPeerAttributes(client, server, query))); | ||
Instrumentation.COMMON_ATTRIBUTES = { | ||
[semantic_conventions_1.SemanticAttributes.DB_SYSTEM]: semantic_conventions_1.DbSystemValues.MEMCACHED, | ||
[semantic_conventions_1.SEMATTRS_DB_SYSTEM]: semantic_conventions_1.DBSYSTEMVALUES_MEMCACHED, | ||
}; | ||
@@ -100,0 +100,0 @@ Instrumentation.DEFAULT_CONFIG = { |
@@ -43,8 +43,8 @@ "use strict"; | ||
return { | ||
[semantic_conventions_1.SemanticAttributes.NET_PEER_NAME]: host, | ||
[semantic_conventions_1.SemanticAttributes.NET_PEER_PORT]: portNumber, | ||
[semantic_conventions_1.SEMATTRS_NET_PEER_NAME]: host, | ||
[semantic_conventions_1.SEMATTRS_NET_PEER_PORT]: portNumber, | ||
}; | ||
} | ||
return { | ||
[semantic_conventions_1.SemanticAttributes.NET_PEER_NAME]: host, | ||
[semantic_conventions_1.SEMATTRS_NET_PEER_NAME]: host, | ||
}; | ||
@@ -51,0 +51,0 @@ } |
@@ -1,2 +0,3 @@ | ||
export declare const VERSION = "0.36.0"; | ||
export declare const PACKAGE_VERSION = "0.37.0"; | ||
export declare const PACKAGE_NAME = "@opentelemetry/instrumentation-memcached"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -18,5 +18,6 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.VERSION = void 0; | ||
exports.PACKAGE_NAME = exports.PACKAGE_VERSION = void 0; | ||
// this is autogenerated file, see scripts/version-update.js | ||
exports.VERSION = '0.36.0'; | ||
exports.PACKAGE_VERSION = '0.37.0'; | ||
exports.PACKAGE_NAME = '@opentelemetry/instrumentation-memcached'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@opentelemetry/instrumentation-memcached", | ||
"version": "0.36.0", | ||
"description": "OpenTelemetry memcached automatic instrumentation package.", | ||
"version": "0.37.0", | ||
"description": "OpenTelemetry instrumentation for `memcached` database client for memcached", | ||
"main": "build/src/index.js", | ||
@@ -49,3 +49,3 @@ "types": "build/src/index.d.ts", | ||
"@opentelemetry/context-async-hooks": "^1.8.0", | ||
"@opentelemetry/contrib-test-utils": "^0.39.0", | ||
"@opentelemetry/contrib-test-utils": "^0.40.0", | ||
"@opentelemetry/sdk-trace-base": "^1.8.0", | ||
@@ -64,8 +64,8 @@ "@opentelemetry/sdk-trace-node": "^1.8.0", | ||
"dependencies": { | ||
"@opentelemetry/instrumentation": "^0.51.0", | ||
"@opentelemetry/semantic-conventions": "^1.0.0", | ||
"@opentelemetry/instrumentation": "^0.52.0", | ||
"@opentelemetry/semantic-conventions": "^1.23.0", | ||
"@types/memcached": "^2.2.6" | ||
}, | ||
"homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/opentelemetry-instrumentation-memcached#readme", | ||
"gitHead": "96a87b48934f0afcf1fe637eed6704f35bd8e973" | ||
"gitHead": "0af1b70f7c3c9763c85ac51fa5e334c1e1512020" | ||
} |
@@ -51,2 +51,16 @@ # OpenTelemetry Memcached Instrumentation for Node.js | ||
## Semantic Conventions | ||
This package uses `@opentelemetry/semantic-conventions` version `1.22+`, which implements Semantic Convention [Version 1.7.0](https://github.com/open-telemetry/opentelemetry-specification/blob/v1.7.0/semantic_conventions/README.md) | ||
Attributes collected: | ||
| Attribute | Short Description | | ||
|-----------------|-----------------------------------------------------------------------------| | ||
| `db.operation` | The name of the operation being executed. | | ||
| `db.statement` | The database statement being executed. | | ||
| `db.system` | An identifier for the database management system (DBMS) product being used. | | ||
| `net.peer.name` | Remote hostname or similar. | | ||
| `net.peer.port` | Remote port number. | | ||
## Useful links | ||
@@ -53,0 +67,0 @@ |
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
44824
263
82
+ Added@opentelemetry/api-logs@0.52.1(transitive)
+ Added@opentelemetry/instrumentation@0.52.1(transitive)
+ Addedimport-in-the-middle@1.11.2(transitive)
- Removed@opentelemetry/api-logs@0.51.1(transitive)
- Removed@opentelemetry/instrumentation@0.51.1(transitive)
- Removedimport-in-the-middle@1.7.4(transitive)