elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.83k stars 8.21k forks source link

[Reporting/CSV Export] add the job ID in the x-opaque-id header #195332

Open tsullivan opened 2 weeks ago

tsullivan commented 2 weeks ago

It would be nice to add the job ID in the x-opaque-id header or in any case being able to track all the logs associated to a given run.

When Kibana sends requests to Elasticsearch for CSV job execution, we should send the report job ID in the x-opaque-id header. This will make it easier to see what is happening on the ES side during report generation.

elasticmachine commented 2 weeks ago

Pinging @elastic/appex-sharedux (Team:SharedUX)

tsullivan commented 6 days ago

In addition to sending the job ID in the x-opaque-id header along with requests made to Elasticsearch, we should also update the way we add the job ID to the logging tags, to make it easier to search logs by job ID using the default analyzer, when logs are stored in Elasticsearch.

BEFORE const logger = this.logger.get(``execute-job:${jobId}``);
AFTER const logger = this.logger.get('execute-job', jobId);