telegraf icon indicating copy to clipboard operation
telegraf copied to clipboard

fix(common.opcua): Support LocalizedText Datatype

Open Digitomation opened this issue 1 year ago • 2 comments

Summary

This PR adds support for returning OPCUA LocalizedText values via the opc-ua input plugin. Prior to this PR, we silently drop those values. This PR is heavily inspired by https://github.com/influxdata/telegraf/pull/12101

I've converted Localizedtext text parameter to string,

Checklist

  • [x] No AI generated code was used in this PR

Related issues

resolves #16194

I'm not proficient in Go, but needed this to work, any help or guidelines to this PR are appreciated!

Digitomation avatar Nov 16 '24 18:11 Digitomation

@Digitomation Thanks for the PR! The code looks good, but are you able to add a test case to cover it? Thanks!

mstrandboge avatar Nov 18 '24 15:11 mstrandboge

Hello! I am closing this issue due to inactivity. I hope you were able to resolve your problem, if not please try posting this question in our Community Slack or Community Forums or provide additional details in this issue and reqeust that it be re-opened. Thank you!

telegraf-tiger[bot] avatar Dec 26 '24 18:12 telegraf-tiger[bot]