aboutsummaryrefslogtreecommitdiff
path: root/kamon-core/src/main/colfer
diff options
context:
space:
mode:
authorIvan Topolnjak <ivantopo@gmail.com>2019-02-25 00:21:40 +0100
committerIvan Topolnjak <ivantopo@gmail.com>2019-03-27 13:56:30 +0100
commit91575b8db60ca4fc6df9f44fa720929d8c3868ac (patch)
tree983f8f6a7e9c7e71930f7930fadaf6ae4bffd2a4 /kamon-core/src/main/colfer
parentff7c7b89335e3d3c463a57cd24321a1419a587ed (diff)
downloadKamon-91575b8db60ca4fc6df9f44fa720929d8c3868ac.tar.gz
Kamon-91575b8db60ca4fc6df9f44fa720929d8c3868ac.tar.bz2
Kamon-91575b8db60ca4fc6df9f44fa720929d8c3868ac.zip
use TagSet as the implementation for Context tags
Diffstat (limited to 'kamon-core/src/main/colfer')
-rw-r--r--kamon-core/src/main/colfer/Context.colf27
1 files changed, 24 insertions, 3 deletions
diff --git a/kamon-core/src/main/colfer/Context.colf b/kamon-core/src/main/colfer/Context.colf
index f5d9a80b..9bd9ec76 100644
--- a/kamon-core/src/main/colfer/Context.colf
+++ b/kamon-core/src/main/colfer/Context.colf
@@ -1,11 +1,32 @@
package context
type Entry struct {
- name text
- content binary
+ key text
+ value binary
+}
+
+type StringTag struct {
+ key text
+ value text
+}
+
+type LongTag struct {
+ key text
+ value int64
+}
+
+type BooleanTag struct {
+ key text
+ value bool
+}
+
+type Tags struct {
+ strings []StringTag
+ longs []LongTag
+ booleans []BooleanTag
}
type Context struct {
- tags []text
+ tags Tags
entries []Entry
} \ No newline at end of file