From 91575b8db60ca4fc6df9f44fa720929d8c3868ac Mon Sep 17 00:00:00 2001 From: Ivan Topolnjak Date: Mon, 25 Feb 2019 00:21:40 +0100 Subject: use TagSet as the implementation for Context tags --- kamon-core/src/main/colfer/Context.colf | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) (limited to 'kamon-core/src/main/colfer/Context.colf') 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 -- cgit v1.2.3