We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eddbe5a commit 76f2844Copy full SHA for 76f2844
src/otlp.zig
@@ -365,11 +365,12 @@ const HTTPClient = struct {
365
config: *ConfigOptions,
366
// Default HTTP Client
367
client: http.Client,
368
- // Retries are processed using a separate thread.
369
- // A priority queue is maintained in the ExpBackoffRetry struct.
370
- // retry: *ExpBackoffRetry,
371
372
pub fn init(allocator: std.mem.Allocator, config: *ConfigOptions) !*Self {
+ var env = try std.process.getEnvMap(allocator);
+ defer env.deinit();
+ // Merge the environment variables into the config.
373
+ try config.mergeFromEnvMap(&env);
374
try config.validate();
375
376
const s = try allocator.create(Self);
0 commit comments