newrelic-experimental / slm-lab-materials

Materials for SLM lab

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Install dependencies

Preferably using a virtual environment, install the packages you need to run this simulation:

pip install -r requirements.txt

Set environment variables

Export the following environment variables to configure your OTLP exporter:

export OTEL_EXPORTER_OTLP_ENDPOINT=https://otlp.nr-data.net:4317
export OTEL_EXPORTER_OTLP_HEADERS="api-key=<YOUR-LICENSE-KEY>"

Note: This endpoint is for accounts based in the US. If you have an EU account, use https://otlp.eu01.nr-data.net:4317 instead. Also, don't forget to replace <YOUR-LICENSE-KEY> with your real license key.

Simulate your requests

Now that you've configured your environment, run the simulation:

python sim.py

About

Materials for SLM lab


Languages

Language:Python 100.0%