slackhq / astra

Astra is a structured log search and analytics engine developed by Slack and Salesforce
https://slackhq.github.io/astra/
MIT License
213 stars 30 forks source link

use otel collector to receive astra traces and send to astra preprocessor (self ingestion of traces) #1056

Closed autata closed 1 month ago

autata commented 2 months ago

Summary

Does self ingestion of astra traces rather than using the zipkin plugin. I see in other tracing projects, they show functionality with self ingestion. I thought a good way to do this was to utilize otel collector to receive and send spans to the preprocessor.

Uses otel-collector for self-ingestion into the preprocessor. This shows a small change to the bulk ingest api to support otlp collected traces exported using the opensearch exporter.

This is blocked by: https://github.com/slackhq/astra/pull/1054 (and setting a reasonable default, maybe 1% sampling) so we dont go into a spiral of self-ingestion.

Potentially, a better implementation would be to implement the OTLP API as an ingestion input.

Requirements

Screenshot

image

Note: it looks like a processor is needed to fix duration on this. (todo if we want to merge this example)

github-actions[bot] commented 1 month ago

This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 3 days.