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

[sampling] add distributed tracing capabilities #325

Closed
wants to merge 41 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
6bef657
[core] Tracer Context Provider is available via public API; a context…
Sep 1, 2017
c5d9620
[asyncio] honors the Context Provider public API
Sep 1, 2017
0f474e9
[gevent] honors the Context Provider public API
Sep 1, 2017
1a88131
[tornado] use the exposed context_provider alias
Sep 1, 2017
1a43e6f
[distributed sampling] introducing func to decide early to sample or …
ufoot Aug 3, 2017
fcfa9ce
[distributed sampling] added test
ufoot Aug 4, 2017
6d2b167
[distributed sampled] forwarding is_sampled parameter
ufoot Aug 4, 2017
dd829db
[distributed tracing] made sampling and distributed sampling orthogon…
ufoot Aug 4, 2017
16a0371
[distributed tracing] added a test for distributed sampling
ufoot Aug 10, 2017
c055da6
[distributed tracing] fixed tests and using random approach for distr…
ufoot Aug 11, 2017
bf9bee6
[distributed tracing] fixed aiohttp distributed sampling, added test
ufoot Aug 11, 2017
9dc5e9e
[distributed tracing] forwarding distributed_sampled attribute
ufoot Aug 11, 2017
c433275
[distributed tracing] setting distributed_sampled only on root spans
ufoot Aug 11, 2017
02f2c72
[distributed sampling] fixed celery tests
ufoot Aug 11, 2017
72800da
[distributed sampling] transition from is_sampled to sampling_priority
ufoot Aug 14, 2017
8648258
[distributed sampling] udpated tests
ufoot Aug 14, 2017
99e4967
[distributed tracing] (re)fixed celery tests
ufoot Aug 14, 2017
0f76d49
[distributed tracing] fixed encoding tests
ufoot Aug 16, 2017
abaa8d3
[distributed tracing] yet more tests fixes
ufoot Aug 16, 2017
d355cea
[distributed tracing] prepared test to control the JSON content
ufoot Aug 18, 2017
b258765
Drop deprecated ThroughputSampler
LotharSee Aug 22, 2017
00cb9f6
Revamp sampling with propagation by context
LotharSee Aug 23, 2017
52442d5
[distributed sampling] fixing tests errors
ufoot Aug 31, 2017
7f85e15
[distributed sampling] using feedback from agent to set the sampling …
ufoot Sep 1, 2017
5a0b09a
[distributed sampling] fixing Python 3 bytes to str decoding issue
ufoot Sep 4, 2017
3d91855
[distributed sampling] back to 0.3 API as agent is not ready yet
ufoot Sep 5, 2017
d95d117
[distributed sampling] using no priority sampler by default
ufoot Sep 7, 2017
2c9275b
[distributed sampling] added tests for set/get priority on spans
ufoot Sep 7, 2017
b4b97e9
[distributed sampling] added sampler test
ufoot Sep 7, 2017
d6e0961
[distributed sampling] fixed aiohttp and django tests
ufoot Sep 11, 2017
e8f4387
[distributed sampling] aiohttp integration skips distributed meta inf…
ufoot Sep 18, 2017
0286531
[distributed sampling] using 0.4 endpoint when distributed sampling i…
ufoot Sep 21, 2017
97c5984
[distributed tracing] fixed tracer initializer
ufoot Sep 22, 2017
73f42a9
[distributed sampling] fix priority sampling handling in tracer confi…
ufoot Sep 22, 2017
b9b9d87
[distributed sampling] fixing key deletion in rates by sample
ufoot Sep 25, 2017
5b9d9d2
[distributed sampling] fixed sampler test for Python 2/3 compat
ufoot Sep 25, 2017
9f9b269
[distributed sampling] generalized downgrade mecanism
ufoot Sep 27, 2017
a69f9c9
[distributed sampling] setting pylons service earlier for better prio…
ufoot Sep 28, 2017
61ad28c
[distributed tracing] fixing API downgrade
ufoot Sep 28, 2017
48897c0
[distributed sampling] adding hint to upgrade agent when protocol is …
ufoot Sep 29, 2017
7a7804a
[distributed sampling] setting pyscopg service as soon as possible
ufoot Oct 5, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[tornado] use the exposed context_provider alias
  • Loading branch information
Emanuele Palazzetti authored and ufoot committed Sep 18, 2017

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 1a8813182071c83b4205473f17d8bb152ac9c096
6 changes: 3 additions & 3 deletions ddtrace/contrib/tornado/__init__.py
Original file line number Diff line number Diff line change
@@ -78,12 +78,12 @@ def notify(self):

with require_modules(required_modules) as missing_modules:
if not missing_modules:
from .patch import patch, unpatch
from .stack_context import run_with_trace_context, TracerStackContext

# alias for API compatibility
from .stack_context import run_with_trace_context, TracerStackContext
context_provider = TracerStackContext.current_context

from .patch import patch, unpatch

__all__ = [
'patch',
'unpatch',
5 changes: 2 additions & 3 deletions ddtrace/contrib/tornado/application.py
Original file line number Diff line number Diff line change
@@ -2,9 +2,8 @@

from tornado import template

from . import decorators
from . import decorators, context_provider
from .constants import CONFIG_KEY
from .stack_context import TracerStackContext

from ...ext import AppTypes

@@ -37,7 +36,7 @@ def tracer_config(__init__, app, args, kwargs):
# global tracer while here we can have a different instance (even if
# this is not usual).
tracer.configure(
context_provider=TracerStackContext.current_context,
context_provider=context_provider,
wrap_executor=decorators.wrap_executor,
enabled=settings.get('enabled', None),
hostname=settings.get('agent_hostname', None),
5 changes: 2 additions & 3 deletions ddtrace/contrib/tornado/patch.py
Original file line number Diff line number Diff line change
@@ -3,8 +3,7 @@

from wrapt import wrap_function_wrapper as _w

from . import handlers, application, decorators, template
from .stack_context import TracerStackContext
from . import handlers, application, decorators, template, context_provider
from ...util import unwrap as _u


@@ -34,7 +33,7 @@ def patch():

# configure the global tracer
ddtrace.tracer.configure(
context_provider=TracerStackContext.current_context,
context_provider=context_provider,
wrap_executor=decorators.wrap_executor,
)