Socket
Socket
Sign inDemoInstall

@opentelemetry/instrumentation-socket.io

Package Overview
Dependencies
Maintainers
3
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentelemetry/instrumentation-socket.io - npm Package Compare versions

Comparing version 0.39.0 to 0.40.0

16

build/src/socket.io.js

@@ -35,3 +35,3 @@ "use strict";

constructor(config = {}) {
super('@opentelemetry/instrumentation-socket.io', version_1.VERSION, (0, utils_1.normalizeConfig)(config));
super(version_1.PACKAGE_NAME, version_1.PACKAGE_VERSION, (0, utils_1.normalizeConfig)(config));
}

@@ -220,8 +220,8 @@ init() {

: `${namespace} ${eventName}`;
const span = self.tracer.startSpan(`${destination} ${semantic_conventions_1.MessagingOperationValues.RECEIVE}`, {
const span = self.tracer.startSpan(`${destination} ${semantic_conventions_1.MESSAGINGOPERATIONVALUES_RECEIVE}`, {
kind: api_1.SpanKind.CONSUMER,
attributes: {
[semantic_conventions_1.SemanticAttributes.MESSAGING_SYSTEM]: 'socket.io',
[semantic_conventions_1.SemanticAttributes.MESSAGING_DESTINATION]: namespace,
[semantic_conventions_1.SemanticAttributes.MESSAGING_OPERATION]: semantic_conventions_1.MessagingOperationValues.RECEIVE,
[semantic_conventions_1.SEMATTRS_MESSAGING_SYSTEM]: 'socket.io',
[semantic_conventions_1.SEMATTRS_MESSAGING_DESTINATION]: namespace,
[semantic_conventions_1.SEMATTRS_MESSAGING_OPERATION]: semantic_conventions_1.MESSAGINGOPERATIONVALUES_RECEIVE,
[AttributeNames_1.SocketIoInstrumentationAttributes.SOCKET_IO_EVENT_NAME]: eventName,

@@ -285,4 +285,4 @@ },

const attributes = {
[semantic_conventions_1.SemanticAttributes.MESSAGING_SYSTEM]: messagingSystem,
[semantic_conventions_1.SemanticAttributes.MESSAGING_DESTINATION_KIND]: semantic_conventions_1.MessagingDestinationKindValues.TOPIC,
[semantic_conventions_1.SEMATTRS_MESSAGING_SYSTEM]: messagingSystem,
[semantic_conventions_1.SEMATTRS_MESSAGING_DESTINATION_KIND]: semantic_conventions_1.MESSAGINGDESTINATIONKINDVALUES_TOPIC,
[AttributeNames_1.SocketIoInstrumentationAttributes.SOCKET_IO_EVENT_NAME]: eventName,

@@ -298,3 +298,3 @@ };

namespace;
attributes[semantic_conventions_1.SemanticAttributes.MESSAGING_DESTINATION] = namespace;
attributes[semantic_conventions_1.SEMATTRS_MESSAGING_DESTINATION] = namespace;
}

@@ -301,0 +301,0 @@ const spanRooms = rooms.length ? `[${rooms.join()}]` : '';

@@ -1,2 +0,3 @@

export declare const VERSION = "0.39.0";
export declare const PACKAGE_VERSION = "0.40.0";
export declare const PACKAGE_NAME = "@opentelemetry/instrumentation-socket.io";
//# 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.39.0';
exports.PACKAGE_VERSION = '0.40.0';
exports.PACKAGE_NAME = '@opentelemetry/instrumentation-socket.io';
//# sourceMappingURL=version.js.map
{
"name": "@opentelemetry/instrumentation-socket.io",
"version": "0.39.0",
"description": "OpenTelemetry automatic instrumentation package for socket.io",
"version": "0.40.0",
"description": "OpenTelemetry instrumentation for `socket.io` messaging server implementation for Socket.IO communication",
"main": "build/src/index.js",

@@ -19,3 +19,3 @@ "types": "build/src/index.d.ts",

"version:update": "node ../../../scripts/version-update.js",
"compile": "npm run version:update && tsc -p ."
"compile": "tsc -p ."
},

@@ -47,3 +47,3 @@ "keywords": [

"@opentelemetry/api": "^1.3.0",
"@opentelemetry/contrib-test-utils": "^0.39.0",
"@opentelemetry/contrib-test-utils": "^0.40.0",
"@opentelemetry/sdk-trace-base": "^1.8.0",

@@ -63,7 +63,7 @@ "@types/mocha": "8.2.3",

"dependencies": {
"@opentelemetry/instrumentation": "^0.51.0",
"@opentelemetry/semantic-conventions": "^1.0.0"
"@opentelemetry/instrumentation": "^0.52.0",
"@opentelemetry/semantic-conventions": "^1.22.0"
},
"homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node/instrumentation-socket.io#readme",
"gitHead": "96a87b48934f0afcf1fe637eed6704f35bd8e973"
"gitHead": "0af1b70f7c3c9763c85ac51fa5e334c1e1512020"
}

@@ -62,2 +62,15 @@ # OpenTelemetry socket.io 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 |
| ---------------------------- | ------------------------------------------------------------------------------------------------ |
| `messaging.destination` | The message destination name. This might be equal to the span name but is required nevertheless. |
| `messaging.destination_kind` | The kind of message destination. |
| `messaging.operation` | A string identifying the kind of message consumption. |
| `messaging.system` | A string identifying the messaging system. |
## Useful links

@@ -64,0 +77,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc