-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add simplified constructor for simple metric SDK setup: stdout exporter. #343
Comments
Assigned to @matej-g (can't currently pick in the assignees list) |
@iredelmeier yes, thank you, I'll be glad to take this! |
So I have been looking at this task and reading through spec / documentation,
|
Yes, that was the intent of this issue. We want to simplify the default setup. I would put this in the stdout directory, so the signature might be:
and to install one of these:
(Note: I invented the name |
#343) * Bump github.com/golangci/golangci-lint from 1.30.0 to 1.31.0 in /tools Bumps [github.com/golangci/golangci-lint](https://github.com/golangci/golangci-lint) from 1.30.0 to 1.31.0. - [Release notes](https://github.com/golangci/golangci-lint/releases) - [Changelog](https://github.com/golangci/golangci-lint/blob/master/CHANGELOG.md) - [Commits](golangci/golangci-lint@v1.30.0...v1.31.0) Signed-off-by: dependabot[bot] <[email protected]> * Auto-fix go.sum changes in dependent modules Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
It takes about 15 lines of code to setup an exporter. This is because the complete export pipeline has a number of various configurations possible, but it confuses most users who do not care to change the standard configuration.
Each exporter should provide a simple method to set it up using a recommended setup. For example, the stdout exporter should by default (IMO) use: the inexpensive measure option, the ungrouped batcher (stateful), and a push controller, e.g., the code snippet below.
The text was updated successfully, but these errors were encountered: