From 5eafac76a73fb8c30568bcf8e2a5a0486f7c4658 Mon Sep 17 00:00:00 2001 From: "d.afanaseva" Date: Wed, 12 Jul 2023 15:05:00 +0300 Subject: [PATCH] Read doubles for specific annotations --- .../HerculesSpecificAnnotationsReader.cs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Vostok.Tracing.Hercules/Readers/AnnotationReaders/HerculesSpecificAnnotationsReader.cs b/Vostok.Tracing.Hercules/Readers/AnnotationReaders/HerculesSpecificAnnotationsReader.cs index 2cd6e17..a2f3a24 100644 --- a/Vostok.Tracing.Hercules/Readers/AnnotationReaders/HerculesSpecificAnnotationsReader.cs +++ b/Vostok.Tracing.Hercules/Readers/AnnotationReaders/HerculesSpecificAnnotationsReader.cs @@ -18,18 +18,25 @@ public HerculesSpecificAnnotationsReader(Dictionary annotations) annotations[key] = value; return this; } - + public new IHerculesTagsBuilder AddValue(string key, string value) { if (annotations.ContainsKey(key)) annotations[key] = value; return this; } - + public new IHerculesTagsBuilder AddValue(string key, long value) { if (annotations.ContainsKey(key)) annotations[key] = value; return this; } + + public new IHerculesTagsBuilder AddValue(string key, double value) + { + if (annotations.ContainsKey(key)) + annotations[key] = value; + return this; + } } \ No newline at end of file