1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
//! Elastic APM ingest API support layer.
//!
//! Use the `new_layer` function to create the layer with given `Config`.

use crate::{config::Config, layer::ApmLayer};

mod apm_client;
pub mod config;
mod layer;
pub mod model;
mod visitor;

/// Constructs a new telemetry layer for given APM configuration.
pub fn new_layer(service_name: String, config: Config) -> ApmLayer {
    ApmLayer::new(config, service_name.into())
}