diff options
author | Ivan Topolnjak <ivantopo@gmail.com> | 2017-08-21 09:23:07 +0200 |
---|---|---|
committer | Ivan Topolnjak <ivantopo@gmail.com> | 2017-08-21 10:37:08 +0200 |
commit | a152a3098b564ed43766a857b32b7c7d7445f9ce (patch) | |
tree | 7651f61e598f316ee9dca415c5a5c67ce530bad5 /kamon-core/src/main/colfer | |
parent | 3cb974e5dfd381b9b28ffef9977047cf35242121 (diff) | |
download | Kamon-a152a3098b564ed43766a857b32b7c7d7445f9ce.tar.gz Kamon-a152a3098b564ed43766a857b32b7c7d7445f9ce.tar.bz2 Kamon-a152a3098b564ed43766a857b32b7c7d7445f9ce.zip |
binary encoding of context and entries
Diffstat (limited to 'kamon-core/src/main/colfer')
-rw-r--r-- | kamon-core/src/main/colfer/Context.colf (renamed from kamon-core/src/main/colfer/context.colf) | 2 | ||||
-rw-r--r-- | kamon-core/src/main/colfer/Span.colf | 8 | ||||
-rw-r--r-- | kamon-core/src/main/colfer/building.md | 5 |
3 files changed, 14 insertions, 1 deletions
diff --git a/kamon-core/src/main/colfer/context.colf b/kamon-core/src/main/colfer/Context.colf index 26421cba..f84d7a56 100644 --- a/kamon-core/src/main/colfer/context.colf +++ b/kamon-core/src/main/colfer/Context.colf @@ -1,4 +1,4 @@ -package kamon +package context type Entry struct { name text diff --git a/kamon-core/src/main/colfer/Span.colf b/kamon-core/src/main/colfer/Span.colf new file mode 100644 index 00000000..4edbed7b --- /dev/null +++ b/kamon-core/src/main/colfer/Span.colf @@ -0,0 +1,8 @@ +package span + +type Span struct { + traceID binary + spanID binary + parentID binary + samplingDecision uint8 +}
\ No newline at end of file diff --git a/kamon-core/src/main/colfer/building.md b/kamon-core/src/main/colfer/building.md new file mode 100644 index 00000000..f510a44f --- /dev/null +++ b/kamon-core/src/main/colfer/building.md @@ -0,0 +1,5 @@ +Just download and install the colver compiler and run this command from the colfer folder: + +``` +colfer -b ../java -p kamon/context/generated/binary java +```
\ No newline at end of file |