Skip to content

Latest commit

 

History

History
53 lines (36 loc) · 1.11 KB

File metadata and controls

53 lines (36 loc) · 1.11 KB

Fabric Demo

Express app that sends traces, metrics, and logs to Microsoft Fabric Real-Time Intelligence (or Azure Data Explorer) via an OpenTelemetry Collector.

How to run

1. Start the OTel Collector

Edit collector-config.yaml — replace <your-cluster> and <yourdbname> with your values.

# Download otelcol-contrib from
# https://github.com/open-telemetry/opentelemetry-collector-releases/releases
az login
otelcol-contrib --config collector-config.yaml

2. Run the app

In a second terminal:

npm install
npm start

Or run directly:

npm install
OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318 node --import @microsoft/opentelemetry/loader app.mjs

3. Send requests

curl http://localhost:3000/
curl http://localhost:3000/weather

4. Query your data

In the ADX web UI:

OTELTraces | take 10
OTELLogs | take 10
OTELMetrics | take 10

Full guide

See docs/fabric-getting-started.md for table creation, permissions, authentication options, and deployment guidance.