Skip to content

Is there a replacement for delta_temporality_selector, InexpensiveSelector? #1511

Closed Answered by cijothomas
svix-jplatte asked this question in Q&A
Discussion options

You must be logged in to vote

You probably need just the defaults, and pick Delta temporality given DataDog needs that.

fn init_metrics() -> metrics::Result<MeterProvider> {
    let export_config = ExportConfig {
        endpoint: ENDPOINT_URL.to_string(),
        ..ExportConfig::default()
    };
    opentelemetry_otlp::new_pipeline()
        .metrics(runtime::Tokio)
        .with_temporality_selector(DeltaTemporalitySelector::new())
        .with_exporter(
            opentelemetry_otlp::new_exporter()
                .tonic()
                .with_export_config(export_config),
        )
        .with_resource(Resource::new(vec![
            KeyValue::new("service.name", SERVICE_NAME),
        ]))
        .build()
}


#

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@svix-jplatte
Comment options

@cijothomas
Comment options

Answer selected by svix-jplatte
@svix-jplatte
Comment options

@cijothomas
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants