An unexpected keyword argument 'nanosecond_precision'

Open
#194 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
observability

Research direction

Start at the FluentSender constructor and reproduce the TypeError with Python 3.9 and fluent-logger 0.10.0 using the reported nanosecond_precision argument. Trace how constructor arguments are handled and verify that the reported invocation no longer raises this unexpected-keyword error.

Written by the indexing model from the issue text.

Description

Hello! I am running into a type error when using the nanosecond_precision argument on FluentSender

        self.logger = sender.FluentSender(
            _TOP_LEVEL_FLUTEND_TAG,
            host=os.getenv('FLUTEND_HOST', '0.0.0.0'),
            port=os.getenv('FLUENTD_PORT', 24224),
            nanosecond_precision=True # TODO: This currently throws an error 
        )
TypeError: __init__() got an unexpected keyword argument 'nanosecond_precision'

Python 3.9.15

[[package]]
name = "fluent-logger"
version = "0.10.0"
description = "A Python logging handler for Fluentd event collector"
category = "main"
optional = false
python-versions = ">=3.5"

Thanks!

Dominant language
Python
Stars
457
Forks
138
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from fluent/fluent-logger-python

All issues in fluent/fluent-logger-python

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.