Skip to content
This repository has been archived by the owner on Jun 8, 2024. It is now read-only.

Commit

Permalink
work on error reporting in term
Browse files Browse the repository at this point in the history
  • Loading branch information
KodrAus committed Apr 3, 2024
1 parent b9986e0 commit cd0e8c9
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions tests/smoke-test/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,17 @@ async fn main() {
.emit_to(
emit_otlp::new()
.logs(
emit_otlp::logs_json(
emit_otlp::http("https://localhost:4318/v1/logs")
.headers([("X-ApiKey", "1234")]),
emit_otlp::logs_proto(
emit_otlp::grpc("https://localhost:4319").headers([("X-ApiKey", "1234")]),
)
.body(|evt, f| write!(f, "{}", evt.tpl().render(emit::empty::Empty).braced())),
)
.traces(
emit_otlp::traces_http_json("https://localhost:4318/v1/traces").name(
|evt, f| write!(f, "{}", evt.tpl().render(emit::empty::Empty).braced()),
),
emit_otlp::traces_grpc_proto("https://localhost:4319").name(|evt, f| {
write!(f, "{}", evt.tpl().render(emit::empty::Empty).braced())
}),
)
.metrics(emit_otlp::metrics_http_json(
"https://localhost:4318/v1/metrics",
))
.metrics(emit_otlp::metrics_grpc_proto("https://localhost:4319"))
.resource(emit::props! {
#[emit::key("service.name")]
service_name: "smoke-test-rs",
Expand Down

0 comments on commit cd0e8c9

Please sign in to comment.