docs: fixes to customization docs (#9236)

Closes #9225, #9224, #9226, #9227

Closes DOCS-948, DOCS-947, DOCS-945, DOCS-946
This commit is contained in:
Shahed Nasser
2024-09-26 16:00:37 +03:00
committed by GitHub
parent 474ba92d48
commit ea2cc974cc
10 changed files with 53 additions and 45 deletions
@@ -51,22 +51,22 @@ Next, create the file `instrumentation.js` with the following content:
```js title="instrumentation.js"
const { registerOtel } = require("@medusajs/medusa")
// If using an exporter other than Zipkin, require it here.
const { ZipkinExporter } = require('@opentelemetry/exporter-zipkin')
const { ZipkinExporter } = require("@opentelemetry/exporter-zipkin")
// If using an exporter other than Zipkin, initialize it here.
const exporter = new ZipkinExporter({
serviceName: 'my-medusa-project',
serviceName: "my-medusa-project",
})
export function register() {
registerOtel({
serviceName: 'medusajs',
serviceName: "medusajs",
// pass exporter
exporter,
instrument: {
http: true,
workflows: true,
remoteQuery: true
remoteQuery: true,
},
})
}