Skip to content
This repository was archived by the owner on Sep 17, 2025. It is now read-only.

Commit ca282ca

Browse files
sonmezonurliyanhui1228
authored andcommitted
[WIP] Implement Jaeger Trace Exporter (#154)
* Add auto-generated Thrift files * Remove unused classes, methods * Refactor it to support all versions of Python * Fix the lint warnings * Add json formatter for spans * Update requirements * Add thrift support * Omit test coverage for the auto-generated Thrift files * Update .gitignore * Ignore .vscode * Implement Jaeger exporter * Jaeger thrift over compact thrift protocol(UDP) * Jaeger thrift over binary thrift protocol(HTTP) * Refactor Jaeger exporter to use SpanData objects instead of json * Allow Basic Authentication in Collector * Convert hexadecimal formatted ids to signed integers
1 parent 77cd734 commit ca282ca

9 files changed

Lines changed: 2406 additions & 0 deletions

File tree

.coveragerc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[run]
22
branch = True
3+
omit = *gen/jaeger*
34

45
[report]
56
fail_under = 100
@@ -9,3 +10,4 @@ exclude_lines =
910
pragma: NO COVER
1011
# Ignore debug-only repr
1112
def __repr__
13+
omit = *gen/jaeger*

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ htmlcov
4444
# JetBrains
4545
.idea
4646

47+
# VSCode
48+
.vscode
49+
4750
# Built documentation
4851
docs/_build
4952
docs/_build_doc2dash
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Copyright 2018, OpenCensus Authors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__all__ = ['agent', 'jaeger']

opencensus/trace/exporters/gen/jaeger/agent.py

Lines changed: 149 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)