Socket
Socket
Sign inDemoInstall

@appsignal/nodejs

Package Overview
Dependencies
196
Maintainers
9
Versions
122
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.0-beta.3 to 3.0.0-beta.4

4

dist/client.d.ts

@@ -7,2 +7,3 @@ import { AppsignalOptions } from "./config/options";

import { ExpressInstrumentation } from "@opentelemetry/instrumentation-express";
import { FastifyInstrumentation } from "@opentelemetry/instrumentation-fastify";
import { GraphQLInstrumentation } from "@opentelemetry/instrumentation-graphql";

@@ -12,2 +13,3 @@ import { HttpInstrumentation } from "@opentelemetry/instrumentation-http";

import { KoaInstrumentation } from "@opentelemetry/instrumentation-koa";
import { MongooseInstrumentation } from "@opentelemetry/instrumentation-mongoose";
import { MySQL2Instrumentation } from "@opentelemetry/instrumentation-mysql2";

@@ -23,2 +25,3 @@ import { MySQLInstrumentation } from "@opentelemetry/instrumentation-mysql";

"@opentelemetry/instrumentation-express": typeof ExpressInstrumentation;
"@opentelemetry/instrumentation-fastify": typeof FastifyInstrumentation;
"@opentelemetry/instrumentation-graphql": typeof GraphQLInstrumentation;

@@ -28,2 +31,3 @@ "@opentelemetry/instrumentation-http": typeof HttpInstrumentation;

"@opentelemetry/instrumentation-koa": typeof KoaInstrumentation;
"@opentelemetry/instrumentation-mongoose": typeof MongooseInstrumentation;
"@opentelemetry/instrumentation-mysql2": typeof MySQL2Instrumentation;

@@ -30,0 +34,0 @@ "@opentelemetry/instrumentation-mysql": typeof MySQLInstrumentation;

@@ -16,2 +16,3 @@ "use strict";

const instrumentation_express_1 = require("@opentelemetry/instrumentation-express");
const instrumentation_fastify_1 = require("@opentelemetry/instrumentation-fastify");
const instrumentation_graphql_1 = require("@opentelemetry/instrumentation-graphql");

@@ -21,2 +22,3 @@ const instrumentation_http_1 = require("@opentelemetry/instrumentation-http");

const instrumentation_koa_1 = require("@opentelemetry/instrumentation-koa");
const instrumentation_mongoose_1 = require("@opentelemetry/instrumentation-mongoose");
const instrumentation_mysql2_1 = require("@opentelemetry/instrumentation-mysql2");

@@ -34,2 +36,3 @@ const instrumentation_mysql_1 = require("@opentelemetry/instrumentation-mysql");

"@opentelemetry/instrumentation-express": instrumentation_express_1.ExpressInstrumentation,
"@opentelemetry/instrumentation-fastify": instrumentation_fastify_1.FastifyInstrumentation,
"@opentelemetry/instrumentation-graphql": instrumentation_graphql_1.GraphQLInstrumentation,

@@ -39,2 +42,3 @@ "@opentelemetry/instrumentation-http": instrumentation_http_1.HttpInstrumentation,

"@opentelemetry/instrumentation-koa": instrumentation_koa_1.KoaInstrumentation,
"@opentelemetry/instrumentation-mongoose": instrumentation_mongoose_1.MongooseInstrumentation,
"@opentelemetry/instrumentation-mysql2": instrumentation_mysql2_1.MySQL2Instrumentation,

@@ -41,0 +45,0 @@ "@opentelemetry/instrumentation-mysql": instrumentation_mysql_1.MySQLInstrumentation,

@@ -7,2 +7,3 @@ "use strict";

const fs = tslib_1.__importStar(require("fs"));
const api_1 = require("@opentelemetry/api");
class SpanProcessor {

@@ -18,3 +19,8 @@ constructor(client) {

onEnd(span) {
const opentelemetrySpan = this.client.extension.createOpenTelemetrySpan(span.spanContext().spanId, span.parentSpanId || "", span.spanContext().traceId, span.startTime[0], span.startTime[1], span.endTime[0], span.endTime[1], span.name, span.attributes, span.instrumentationLibrary.name);
// Add OpenTelemetry kind enum value as a magic attribute
const spanAttributes = {
...span.attributes,
"appsignal.kind": api_1.SpanKind[span.kind]
};
const opentelemetrySpan = this.client.extension.createOpenTelemetrySpan(span.spanContext().spanId, span.parentSpanId || "", span.spanContext().traceId, span.startTime[0], span.startTime[1], span.endTime[0], span.endTime[1], span.name, spanAttributes, span.instrumentationLibrary.name);
const errors = span.events.filter(event => event.name == "exception");

@@ -21,0 +27,0 @@ errors.forEach(e => {

13

package.json
{
"name": "@appsignal/nodejs",
"version": "3.0.0-beta.3",
"version": "3.0.0-beta.4",
"main": "dist/index",

@@ -18,2 +18,4 @@ "types": "dist/index",

"@opentelemetry/sdk-trace-base": "^1.7.0",
"@opentelemetry/instrumentation-fastify": "^0.30.0",
"@opentelemetry/instrumentation-express": "^0.31.2",
"@opentelemetry/instrumentation-graphql": "^0.31.0",

@@ -23,9 +25,9 @@ "@opentelemetry/instrumentation-http": "^0.32.0",

"@opentelemetry/instrumentation-koa": "^0.32.0",
"@opentelemetry/instrumentation-mongoose": "^0.31.0",
"@opentelemetry/instrumentation-mysql": "^0.31.1",
"@opentelemetry/instrumentation-mysql2": "^0.32.0",
"@opentelemetry/instrumentation-mysql": "^0.31.1",
"@opentelemetry/instrumentation-nestjs-core": "^0.31.0",
"@opentelemetry/instrumentation-pg": "^0.31.1",
"@opentelemetry/instrumentation-redis": "^0.33.0",
"@opentelemetry/instrumentation-redis-4": "^0.33.0",
"@opentelemetry/instrumentation-redis": "^0.33.0",
"@opentelemetry/instrumentation-express": "^0.31.2",
"@prisma/instrumentation": "^4.4.0",

@@ -54,3 +56,4 @@ "node-addon-api": "^3.1.0",

"lint-staged": "^10.5.3",
"mysql2": "*",
"mongoose": "6.5.2",
"mysql2": "2.3.0",
"nock": "^13.2.2",

@@ -57,0 +60,0 @@ "npm-run-all": "^4.1.5",

@@ -6,3 +6,3 @@ // DO NOT EDIT

const AGENT_VERSION = "9046191"
const AGENT_VERSION = "09f0471"
const MIRRORS = [

@@ -16,3 +16,3 @@ "https://appsignal-agent-releases.global.ssl.fastly.net",

checksum:
"d4a44bb6c4caeabb874424c8daae7cdb982773afa0eafd0b37b8533cd68c5b93",
"9dcd0d925b656241c407e5e7a4dbd9fb1453dc5ac95d831eceaed473caff4959",
filename: "appsignal-x86_64-darwin-all-static.tar.gz"

@@ -22,3 +22,3 @@ },

checksum:
"d4a44bb6c4caeabb874424c8daae7cdb982773afa0eafd0b37b8533cd68c5b93",
"9dcd0d925b656241c407e5e7a4dbd9fb1453dc5ac95d831eceaed473caff4959",
filename: "appsignal-x86_64-darwin-all-static.tar.gz"

@@ -28,3 +28,3 @@ },

checksum:
"0ac14b73df8238b542f5d93622959444e4c5041aaac458cc772c6210c74bb901",
"21525bbc21e1db456edec41fd8dcde259374698ce7cd7f07608ff65efbc71a7a",
filename: "appsignal-aarch64-darwin-all-static.tar.gz"

@@ -34,3 +34,3 @@ },

checksum:
"0ac14b73df8238b542f5d93622959444e4c5041aaac458cc772c6210c74bb901",
"21525bbc21e1db456edec41fd8dcde259374698ce7cd7f07608ff65efbc71a7a",
filename: "appsignal-aarch64-darwin-all-static.tar.gz"

@@ -40,3 +40,3 @@ },

checksum:
"0ac14b73df8238b542f5d93622959444e4c5041aaac458cc772c6210c74bb901",
"21525bbc21e1db456edec41fd8dcde259374698ce7cd7f07608ff65efbc71a7a",
filename: "appsignal-aarch64-darwin-all-static.tar.gz"

@@ -46,3 +46,3 @@ },

checksum:
"229f509e0a04b47051873e4a253dbbb6965f9cc62bd79902977cbb5257c91904",
"9b0cb608f9ee2dab8a4348a566228fa4f1c6f0da3c1f5551f44779ce8588e0ab",
filename: "appsignal-aarch64-linux-all-static.tar.gz"

@@ -52,3 +52,3 @@ },

checksum:
"089929e5ec207871e6562fe70bdf5b236ef9473e14e6797ddbffda310d95cf8c",
"2f1ab4390a55a2826c3ea87f1d0fd84a5abb0bc8d23873b9545ae10c072fb163",
filename: "appsignal-i686-linux-all-static.tar.gz"

@@ -58,3 +58,3 @@ },

checksum:
"089929e5ec207871e6562fe70bdf5b236ef9473e14e6797ddbffda310d95cf8c",
"2f1ab4390a55a2826c3ea87f1d0fd84a5abb0bc8d23873b9545ae10c072fb163",
filename: "appsignal-i686-linux-all-static.tar.gz"

@@ -64,3 +64,3 @@ },

checksum:
"e93022433b6f4bc7bc882aeb49a5d43a004f017d41569a3459c7109768021cbb",
"0310a26edd5c44bc1080ee251ad1572adf088610946b8e839e656c4d7e3ba7a6",
filename: "appsignal-x86_64-linux-all-static.tar.gz"

@@ -70,3 +70,3 @@ },

checksum:
"1b66a0ce1ecc375dad8059df99b5bd0bc1e1723228b1256f09dee6124fa4576a",
"4749371d7f1f48ca7dc3bc0dd31254a42f1c1acec8fffdd9584b76cdf02b1866",
filename: "appsignal-x86_64-linux-musl-all-static.tar.gz"

@@ -76,3 +76,3 @@ },

checksum:
"0b6b59ce4f1e2bc8bea6f1743e9f52dde99f39aba2922aa125cde9a1d498b52d",
"e2c7e5e70b5ce575df28a27b9ed61007629ad96905ef8a362890399427afe339",
filename: "appsignal-aarch64-linux-musl-all-static.tar.gz"

@@ -82,3 +82,3 @@ },

checksum:
"12301c2346f1654558bf6c95f605b3ca1a95433fcab3aaf303ceea59b175dcf8",
"0dbc4daab7b1c8ffb47c838f907a4bab61608ebf406446f5724adc4fb1678dca",
filename: "appsignal-x86_64-freebsd-all-static.tar.gz"

@@ -88,3 +88,3 @@ },

checksum:
"12301c2346f1654558bf6c95f605b3ca1a95433fcab3aaf303ceea59b175dcf8",
"0dbc4daab7b1c8ffb47c838f907a4bab61608ebf406446f5724adc4fb1678dca",
filename: "appsignal-x86_64-freebsd-all-static.tar.gz"

@@ -91,0 +91,0 @@ }

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc