How to Add Metadata?
The metadata functionality allows you to add custom key-value pairs (string, any) to all components like trace, generation, retrieval, event, and span. This is useful for storing additional context, configuration, user information, or any custom data that helps with debugging, analysis, and observability.1
Create a repository
Select Logs from the sidebar and click the “Create repository” button.
2
Install SDK
3
Initialize SDK
4
Add metadata to traces
5
Add metadata to generations
6
Add metadata to other components