Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

📚 Documentation   •   🖥️ Application   •   🏠 Home

Getting started

AUTOBLOCKS_INGESTION_KEY=<your-autoblocks-ingestion-key>

Creating spans

This example shows how you can establish parent / child relationships between your events by sending the spanId and parentSpanId properties.

Install dependencies

npm install

Run the script

npm run start

View the trace tree

Go to the explore page and find the trace, then switch to the Trace Tree view. You should see something like this:

rag-span

Within the RAG span, we made two embeddings calls: these are both children of the RAG span.

embedding-span

Then there is the LLM span at the end, which is not a child of the RAG span because we ended the RAG span before starting the LLM span:

llm-span