use async-client for telemetry

This commit is contained in:
Karl Seguin
2025-03-03 19:32:18 +08:00
parent 53f6e66c23
commit accf2c0e5e
6 changed files with 201 additions and 109 deletions

View File

@@ -1,5 +1,6 @@
const std = @import("std");
const Loop = @import("jsruntime").Loop;
const Allocator = std.mem.Allocator;
const Telemetry = @import("telemetry/telemetry.zig").Telemetry;
@@ -8,8 +9,8 @@ const Telemetry = @import("telemetry/telemetry.zig").Telemetry;
pub const App = struct {
telemetry: Telemetry,
pub fn init(allocator: Allocator) !App {
const telemetry = Telemetry.init(allocator);
pub fn init(allocator: Allocator, loop: *Loop) !App {
const telemetry = Telemetry.init(allocator, loop);
errdefer telemetry.deinit();
return .{