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

Add BaggageRestrictionManager #68

Closed
wants to merge 2 commits into from
Closed

Conversation

black-adder
Copy link
Contributor

No description provided.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 94.813% when pulling 61e3f37 on baggage_stuffffffs into 0392cce on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 94.813% when pulling 499a16c on baggage_stuffffffs into 0392cce on master.


from __future__ import absolute_import

from .restriction import Restriction # noqa
Copy link

Choose a reason for hiding this comment

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

why the # noqa?


class Restriction(object):
"""
Restriction determines whether a baggage key is allowed and contains any
Copy link

@oibe oibe Aug 11, 2017

Choose a reason for hiding this comment

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

s/any restrictions/any length based restrictions/
Since this restriction object doesn't have code for restricting the value of the key

def __init__(self, restriction_manager, metrics_factory):
self._restriction_manager = restriction_manager
self._baggage_update_success = \
metrics_factory.create_counter(name='jaeger.baggage-update', tags={'result': 'ok'})
Copy link

Choose a reason for hiding this comment

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

Why add the jaeger prefix for python metric names?

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

Successfully merging this pull request may close these issues.

3 participants