1
0
mirror of https://github.com/shiroikitsu8/Bayshore_6r_legacy.git synced 2024-11-12 02:01:02 +01:00

Switch OTel to GRPC

This commit is contained in:
Luna 2022-11-19 17:30:00 +00:00
parent 922bef38fc
commit d031ab1075
4 changed files with 8 additions and 4 deletions

View File

@ -22,7 +22,7 @@
"dependencies": {
"@opentelemetry/api": "^1.3.0",
"@opentelemetry/auto-instrumentations-node": "^0.35.0",
"@opentelemetry/exporter-trace-otlp-http": "^0.34.0",
"@opentelemetry/exporter-trace-otlp-grpc": "^0.34.0",
"@opentelemetry/sdk-node": "^0.34.0",
"@prisma/client": "^4.0.0",
"@sentry/node": "^7.7.0",

View File

@ -3,7 +3,7 @@
import * as opentelemetry from '@opentelemetry/sdk-node';
import { getNodeAutoInstrumentations } from '@opentelemetry/auto-instrumentations-node';
import { diag, DiagConsoleLogger, DiagLogLevel } from '@opentelemetry/api';
import { OTLPTraceExporter } from '@opentelemetry/exporter-trace-otlp-http';
import { OTLPTraceExporter } from '@opentelemetry/exporter-trace-otlp-grpc';
import process from 'process';
diag.setLogger(new DiagConsoleLogger(), DiagLogLevel.INFO);

View File

@ -0,0 +1,4 @@
{
"enableTelemetry": false,
"telemetryUri": "disregard-this"
}

View File

@ -198,7 +198,7 @@
"@opentelemetry/semantic-conventions" "1.8.0"
jaeger-client "^3.15.0"
"@opentelemetry/exporter-trace-otlp-grpc@0.34.0":
"@opentelemetry/exporter-trace-otlp-grpc@0.34.0", "@opentelemetry/exporter-trace-otlp-grpc@^0.34.0":
version "0.34.0"
resolved "https://registry.yarnpkg.com/@opentelemetry/exporter-trace-otlp-grpc/-/exporter-trace-otlp-grpc-0.34.0.tgz#6ec4a897f263e371f4ce8e3b1aa83167fe6aedc2"
integrity sha512-x1V0daRLS6k0dhBPNNLMOP+OSrh8M60Xs9/YkuZS0+/zdbcIjNvPzo/8+dK3zOJx+j1KF0oBX9zxK0SX3PSnZw==
@ -210,7 +210,7 @@
"@opentelemetry/resources" "1.8.0"
"@opentelemetry/sdk-trace-base" "1.8.0"
"@opentelemetry/exporter-trace-otlp-http@0.34.0", "@opentelemetry/exporter-trace-otlp-http@^0.34.0":
"@opentelemetry/exporter-trace-otlp-http@0.34.0":
version "0.34.0"
resolved "https://registry.yarnpkg.com/@opentelemetry/exporter-trace-otlp-http/-/exporter-trace-otlp-http-0.34.0.tgz#baca4cebb1666ed801288e24215d96a65f2e8ae5"
integrity sha512-MBtUwMvgpdoRo9iqK2eDJ8SP2xKYWeBCSu99s4cc1kg4HKKOpenXLE/6daGsSZ+QTPwd8j+9xMSd+hhBg+Bvzw==