- copy
.env-template
to.env
and put in your Moesif Application ID. npm install
install dependenciesnpm run start-with-otel
- and then send API calls via curl or similar tools.
curl http://localhost:6060/todos
- Traces and Logs are supported, but not OpenTelemetry Metrics. Within Traces, HTTP Spans are supported. Spans for other types of information cannot be ingested.
- Moesif's governance features, such as blocking or modifying API calls, are not supported through the OpenTelemetry integration.
- Moesif's dynamic sampling is not applied to data ingested through OpenTelemetry. You must manually configure sampling within your OpenTelemetry tooling. If you do so, set the weight attribute as described in Sampling and Weight Attribute.
Temporarily switch to console exporter to see what data is exporting.
traceExporter: new ConsoleSpanExporter()