Compare commits

..

1 commit

Author SHA1 Message Date
06d75a72c5
WIP: Add otel tracing
Some checks failed
ci/woodpecker/pr/ci Pipeline failed
2024-11-26 15:21:23 +01:00

View file

@ -44,14 +44,7 @@ struct VersionInfo {
method = GET,
path = "/version",
}]
#[tracing::instrument(
skip(rqctx),
fields(
http.method=rqctx.request.method().as_str(),
http.path=rqctx.request.uri().path(),
http.remote_ip=rqctx.request.remote_addr().ip().to_string(),
)
)]
#[tracing::instrument]
async fn api_version(
rqctx: RequestContext<Arc<()>>,
) -> Result<HttpResponseOk<VersionInfo>, HttpError> {