fluent / fluent/fluent-logger-golang

Add WithContext methods to Fluent struct

Open
#85 0 comments 4 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
393
Forks
105
PR merge metrics
No merged PRs in 30d

Description

Currently the only way to have control over the maximum duration of the Post and related methods is by configuring the Timeout, WriteTimeout, RetryWait, MaxRetry and MaxRetryWait, which all together define an upper bound to the total duration. However, there is no way to define an overall timeout to the action.

A lot of networking libraries use the context deadline as an overall timeout for the operations, so it would be nice if that is also added to this library.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing the Post and related methods on the Fluent struct, then review how Timeout, WriteTimeout, RetryWait, MaxRetry, and MaxRetryWait currently bound an operation. Done means the relevant methods accept context-based overall deadlines through WithContext variants, with behavior consistent across the related actions.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.