agentcat.Track(s, "proj_YOUR_ID", &agentcat.Options{
Exporters: map[string]any{
"otlp": map[string]any{
"type": "otlp",
"endpoint": "http://localhost:4318/v1/traces",
},
"datadog": map[string]any{
"type": "datadog",
"apiKey": os.Getenv("DD_API_KEY"),
"site": "datadoghq.com",
"service": "my-mcp-server",
},
"sentry": map[string]any{
"type": "sentry",
"dsn": os.Getenv("SENTRY_DSN"),
"environment": "production",
},
"posthog": map[string]any{
"type": "posthog",
"apiKey": os.Getenv("POSTHOG_API_KEY"),
"host": "https://us.i.posthog.com",
},
},
})