Introduce tag generator into OTel metrics payload#1340
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
c484f6a to
bfe5e9d
Compare
7fb6ccc to
290b8f4
Compare
290b8f4 to
f0996d7
Compare
7e8c002 to
6d6ec9a
Compare
f0996d7 to
65e9d76
Compare
6d6ec9a to
dedcc09
Compare
65e9d76 to
f9c8702
Compare
dedcc09 to
82aa53b
Compare
f9c8702 to
0e5e725
Compare
Datadog Summary✅ Code Quality ✅ Code Security ✅ Dependencies Was this helpful? Give us feedback! |
82aa53b to
f57d8f9
Compare
0e5e725 to
50269bb
Compare
316ebaf to
c2ded89
Compare
| // used by that generator: the generator maintains its own rng. It's a | ||
| // quirk of the trait. | ||
| // | ||
| // However DO NOT use this function's `rng` argument in any regard. |
There was a problem hiding this comment.
anything we can do to make this more obvious until we have a better solution?
eg maybe rename argument rng to rng_do_not_use_me or something
There was a problem hiding this comment.
This comment echos verbage from the underlying generator. IIRC we've been okay for two years or something at this point. It does seem like a smell still, but I'm also hesitant to make a trait for this very specific case. I dunno, I feel like this comment makes the situation obvious. I'm happy to entertain any name changes though.
| .ok_or(Error::StringGenerate)?; | ||
| let val = self | ||
| .inner | ||
| .using_handle(tag.value) |
There was a problem hiding this comment.
nice, this is the API that supports generating directly into owned data it looks like?
b457687 to
5619433
Compare
c2a5afe to
44ee1a3
Compare
5619433 to
44bf784
Compare
This commit introduces the generic tag generator into the otel metrics template code, allowing the attributes per to be obeyed. REF SMPTNG-659 Signed-off-by: Brian L. Troutwine <brian.troutwine@datadoghq.com>
Signed-off-by: Brian L. Troutwine <brian.troutwine@datadoghq.com>
Signed-off-by: Brian L. Troutwine <brian.troutwine@datadoghq.com>
Signed-off-by: Brian L. Troutwine <brian.troutwine@datadoghq.com>
Signed-off-by: Brian L. Troutwine <brian.troutwine@datadoghq.com>
Signed-off-by: Brian L. Troutwine <brian.troutwine@datadoghq.com>
Signed-off-by: Brian L. Troutwine <brian.troutwine@datadoghq.com>
Signed-off-by: Brian L. Troutwine <brian.troutwine@datadoghq.com>
Signed-off-by: Brian L. Troutwine <brian.troutwine@datadoghq.com>
44ee1a3 to
e610b10
Compare
Signed-off-by: Brian L. Troutwine <brian.troutwine@datadoghq.com>
e610b10 to
11841e5
Compare

What does this PR do?
This commit introduces the generic tag generator into the otel metrics template code, allowing the attributes per to be obeyed.
Motivation
REF SMPTNG-659