Skip to content
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

Additional Tags and routingFunc #55

Merged
merged 3 commits into from
Sep 13, 2018
Merged

Additional Tags and routingFunc #55

merged 3 commits into from
Sep 13, 2018

Conversation

henrod
Copy link
Contributor

@henrod henrod commented Sep 12, 2018

  1. Use ctx on routingFunc for it can be more flexible for development than session
  2. Change config pitaya.metrics.tags to pitaya.metrics.constTags since these tags are indeed constants
  3. Create config pitaya.metrics.additionalTags which is a map from tag to default value. The values can be added using the method AddMetricTagsToPropagateCtx

@henrod henrod requested a review from andrehp September 12, 2018 12:48
@henrod henrod changed the title Feature/ctx routing func Additional Tags and routingFunc Sep 12, 2018
@coveralls
Copy link

coveralls commented Sep 12, 2018

Pull Request Test Coverage Report for Build 507

  • 25 of 51 (49.02%) changed or added relevant lines in 6 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.1%) to 74.677%

Changes Missing Coverage Covered Lines Changed/Added Lines %
metrics/prometheus_reporter.go 0 26 0.0%
Totals Coverage Status
Change from base Build 497: 0.1%
Covered Lines: 3869
Relevant Lines: 5181

💛 - Coveralls

g.With(labels).Set(value)
return nil
}
return constants.ErrMetricNotKnown
}

// ensureLabels check if labels contains the additionalLabels values,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/check/checks

@andrehp andrehp merged commit 9e8bd16 into master Sep 13, 2018
@andrehp
Copy link
Contributor

andrehp commented Sep 13, 2018

Good job

@andrehp andrehp deleted the feature/ctx-routing-func branch September 13, 2018 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants