Skip to main content

pipeline_name_from_headers

Function pipeline_name_from_headers 

Source
fn pipeline_name_from_headers(headers: &HeaderMap) -> Option<String>
Expand description

Extracts the pipeline name from the request headers.

Both x-greptime-pipeline-name and the deprecated x-greptime-log-pipeline-name are accepted, matching the headers already honored by the OTLP/Elasticsearch/Splunk log ingestion endpoints. If both are present, the non-deprecated x-greptime-pipeline-name takes precedence. Empty header values are ignored so that they fall back to the pipeline_name query parameter.