Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/biothings/bte-server into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
tokebe committed Feb 22, 2024
2 parents a7c5f83 + dcf6f01 commit 58a913f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/config/smartapi_overrides.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"b772ebfbfa536bba37764d7fddb11d6f": "https://raw.githubusercontent.com/NCATS-Tangerine/translator-api-registry/orphanet-change/ncats_rare_source/smartapi.yaml",
"326eb1e437303bee27d3cef29227125d": "https://raw.githubusercontent.com/NCATS-Tangerine/translator-api-registry/orphanet-change/complexportal/smartapi.yaml",
"0212611d1c670f9107baf00b77f0889a": "https://raw.githubusercontent.com/NCATS-Tangerine/translator-api-registry/ctd-batch-query/CTD/smartapi.yaml",
"8f08d1446e0bb9c2b323713ce83e2bd3": "https://raw.githubusercontent.com/NCATS-Tangerine/translator-api-registry/mychem-fda-orphan-edit/mychem.info/openapi_full.yml"
"8f08d1446e0bb9c2b323713ce83e2bd3": "https://raw.githubusercontent.com/NCATS-Tangerine/translator-api-registry/mychem-fda-orphan-edit/mychem.info/openapi_full.yml",
"d22b657426375a5295e7da8a303b9893": "https://raw.githubusercontent.com/NCATS-Tangerine/translator-api-registry/v3-biolink-monarch/biolink/openapi.yml"
}
}
4 changes: 2 additions & 2 deletions src/controllers/opentelemetry.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ const { Resource } = require("@opentelemetry/resources");
const { isMainThread } = require("worker_threads");
const Debug = require("debug");
const debug = Debug("bte:biothings-explorer:otel-init");
const { OTLPTraceExporter } = require("@opentelemetry/exporter-trace-otlp-proto");
const { JaegerExporter } = require("@opentelemetry/exporter-jaeger");

debug("Initializing Opentelemetry instrumentation...");
const sdk = new opentelemetry.NodeSDK({
traceExporter: new OTLPTraceExporter({
traceExporter: new JaegerExporter({
host: process.env.JAEGER_HOST ?? "jaeger-otel-agent.sri",
port: parseInt(process.env.JAEGER_PORT ?? "6832"),
}),
Expand Down

0 comments on commit 58a913f

Please sign in to comment.