-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[cmd/mdatagen] support template datatype #12938
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: odubajDT <[email protected]>
Signed-off-by: odubajDT <[email protected]>
Codecov ReportAttention: Patch coverage is
❌ Your patch check has failed because the patch coverage (31.57%) is below the target coverage (95.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #12938 +/- ##
==========================================
- Coverage 91.65% 91.60% -0.05%
==========================================
Files 503 503
Lines 27641 27657 +16
==========================================
+ Hits 25333 25336 +3
- Misses 1822 1835 +13
Partials 486 486 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: odubajDT <[email protected]>
// NewValueTemplate creates a new Value with the given string value. | ||
func NewValueTemplate(v string) Value { | ||
state := internal.StateMutable | ||
return newValue(&otlpcommon.AnyValue{Value: &otlpcommon.AnyValue_StringValue{StringValue: v}}, &state) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dmitryax maybe question here, should we rather define a full new datatype for the template type, or reuse the string one, since template is not a real-world datatype. Thanks!
Description
The aim is to support the new semantic conventions for k8s workloads and generation of code for the template datatype
Link to tracking issue
Fixes #12891
Testing
tested the new functionality on kubeletstatsreceiver here