Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

Stats exporter init/1 #107

Open
hauleth opened this issue Dec 4, 2018 · 4 comments
Open

Stats exporter init/1 #107

hauleth opened this issue Dec 4, 2018 · 4 comments
Assignees

Comments

@hauleth
Copy link
Contributor

hauleth commented Dec 4, 2018

This would be highly useful in situations like sending data through UDP (statsd metrics or HTTP-over-QUIC) or if we would like to utilise HTTP/2 to not open new TCP connection each time we send data.

@deadtrickster
Copy link
Member

can you elaborate? what init/1 means?

@hauleth
Copy link
Contributor Author

hauleth commented Dec 4, 2018

@deadtrickster it should work the same way the Module:init/1 in oc_reporter works. So when registering the stats exporter the init/1 is called with options and return value of this function is then passed as 2nd argument to export/2.

@deadtrickster
Copy link
Member

yea, makes sense

@deadtrickster deadtrickster self-assigned this Dec 4, 2018
@hauleth
Copy link
Contributor Author

hauleth commented Dec 4, 2018

This is how DataDog exporter looks right now. It would be better to share this connection between exports. It is all I need right now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants