autometrics 3.0.0

Easily add metrics to your code that actually help you spot and debug issues in production. Built on Prometheus and OpenTelemetry.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Tests relying on macros or compiler diagnostics

#[test]
fn harness() {
    let t = trybuild::TestCases::new();

    // Test the ResultLabels macro
    t.pass("tests/compilation/result_labels/pass/*.rs");
    t.compile_fail("tests/compilation/result_labels/fail/*.rs");

    // Test that compiler reports errors in the correct location
    t.compile_fail("tests/compilation/error_locus/fail/*.rs");
}