vectordotdev / vrl

Vector Remap Language
Mozilla Public License 2.0
138 stars 69 forks source link

fix(encode_proto): When encoding strings into numeric proto fields, attempt to convert them automatically #1114

Closed flavioc closed 2 weeks ago

flavioc commented 3 weeks ago

Summary

Before this change, attempting to convert a VRL value that contained bytes into a numeric proto field would fail since we expect the VRL value to be numeric too. This PR makes encode_proto automatically convert those strings into numeric values automatically. We still fail if the format is not valid.

Change Type

Is this a breaking change?

How did you test this PR?

Does this PR include user facing changes?

Checklist

References