reqwest-metrics
Metrics.rs integration for reqwest using reqwest-middleware
Features
- Adheres to Open Telemetry HTTP Client Semantic Conventions
- Customizable labels
Usage
let client = new
.with
.build;
Configuration
Overriding label names
let client = new
.with
.build;
Supported metrics:
Supported labels:
http_request_methodserver_addressserver_porterror_typehttp_response_status_codenetwork_protocol_namenetwork_protocol_versionurl_scheme
Motivation
This crate is heavily inspired by the HTTP Client metrics provided by Spring. This crate aims to provide the same functionality while adhereing to Otel semantic conventions.