Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gostatsd
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ale
gostatsd
Commits
05fe4b17
Commit
05fe4b17
authored
11 years ago
by
Rangel Reale
Browse files
Options
Downloads
Patches
Plain Diff
* Return error on MetricSenderFunc
parent
2be64b46
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
statsd/aggregator.go
+2
-3
2 additions, 3 deletions
statsd/aggregator.go
with
2 additions
and
3 deletions
statsd/aggregator.go
+
2
−
3
View file @
05fe4b17
...
...
@@ -22,12 +22,11 @@ type MetricSender interface {
}
// The MetricSenderFunc type is an adapter to allow the use of ordinary functions as metric senders
type
MetricSenderFunc
func
(
MetricMap
)
type
MetricSenderFunc
func
(
MetricMap
)
error
// SendMetrics calls f(m)
func
(
f
MetricSenderFunc
)
SendMetrics
(
m
MetricMap
)
error
{
f
(
m
)
return
nil
return
f
(
m
)
}
// MetricAggregator is an object that aggregates statsd metrics.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment