Skip to content

Add WithStatsdClient StartOption for tracer #2766

Open
@brahimyacine

Description

I need to pass a custom statsdClient (to have freedom of configuration in order to reduce the memory footprint) to the tracer, but I realise that this is not possible, and I'll have to make do with the one created at this level with the default values.
By doing a little research in the repo, I discovered that the option i am looking for does exist but only for test purposes and it's not exported. Is there a reason for this?

func withStatsdClient(s globalinternal.StatsdClient) StartOption {
	return func(c *config) {
		c.statsdClient = s
	}
}

Metadata

Assignees

No one assigned

    Labels

    enhancementquick change/addition that does not need full team approvalwaiting-for-infowaiting for answer from issue creator

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions