MCPcopy Create free account
hub / github.com/SethGammon/Citadel / resolveEndpoint

Function resolveEndpoint

scripts/telemetry-otlp-export.js:310–316  ·  view source on GitHub ↗
(raw)

Source from the content-addressed store, hash-verified

308}
309
310function resolveEndpoint(raw) {
311 const url = new URL(raw);
312 if (!url.pathname || url.pathname === '/') {
313 url.pathname = DEFAULT_OTLP_METRICS_PATH;
314 }
315 return url;
316}
317
318function postPayload(endpointUrl, payload) {
319 return new Promise((resolve, reject) => {

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected