www/apps/resources/references/modules/medusa/page.mdx
import { TypeList } from "docs-ui"
Instrument the first touch point of the HTTP layer to report traces to OpenTelemetry
Instrument the queries made using the remote query
Instrument the workflows and steps execution
A helper function to configure the OpenTelemetry SDK with some defaults. For better/more control, please configure the SDK manually.
You will have to install the following packages within your app for telemetry to work
<TypeList types={[{"name":"options","type":"Partial<NodeSDKConfiguration> & object","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"serviceName","type":"string","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"exporter","type":"SpanExporter","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"instrument","type":"Partial<object>","description":"","optional":true,"defaultValue":"","expandable":false,"children":[{"name":"http","type":"boolean","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"query","type":"boolean","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"workflows","type":"boolean","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"db","type":"boolean","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"cache","type":"boolean","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]}]}]} expandUrl="https://docs.medusajs.com/learn/fundamentals/data-models/manage-relationships#retrieve-records-of-relation" sectionTitle="registerOtel"/>
<TypeList types={[{"name":"any","type":"any","optional":false,"defaultValue":"","description":"A helper function to configure the OpenTelemetry SDK with some defaults.\nFor better/more control, please configure the SDK manually.\n\nYou will have to install the following packages within your app for\ntelemetry to work\n\n- @opentelemetry/sdk-node\n- @opentelemetry/resources\n- @opentelemetry/sdk-trace-node\n- @opentelemetry/instrumentation-pg\n- @opentelemetry/instrumentation","expandable":false,"children":[]}]} expandUrl="https://docs.medusajs.com/learn/fundamentals/data-models/manage-relationships#retrieve-records-of-relation" sectionTitle="registerOtel"/>
Const HTTP_METHODS: readonly ["GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS", "HEAD"]
List of all the supported HTTP methods