There is an in-progress PR to make component.InstanceID immutable in collector core. It is currently a struct with all fields exported. The fields will only be accessible by getter methods going forward. Here are the occurrences of component.InstanceID in this repo: https://github.com/search?q=repo%3Agrafana%2Fagent%20component.InstanceID&type=code.
I believe the only thing that will have to change is:
|
func StringifyInstanceID(id component.InstanceID) string { |
|
return fmt.Sprintf("%s/%s", StringifyKind(id.Kind), id.ID) |
|
} |
The change that will need to be made is below:
func StringifyInstanceID(id component.InstanceID) string {
return fmt.Sprintf("%s/%s", StringifyKind(id.Kind()), id.ComponentID())
}
There is an in-progress PR to make
component.InstanceIDimmutable in collector core. It is currently a struct with all fields exported. The fields will only be accessible by getter methods going forward. Here are the occurrences ofcomponent.InstanceIDin this repo: https://github.com/search?q=repo%3Agrafana%2Fagent%20component.InstanceID&type=code.I believe the only thing that will have to change is:
agent/internal/converter/internal/otelcolconvert/utils.go
Lines 14 to 16 in 3eb7f7e
The change that will need to be made is below: