Transformation of metric data to OTLP data should be a public method #5413
Replies: 1 comment
-
@mayank-yadav2 Thanks for creating this. I know it would be frustrating if you want to DIY something that is not in the regular pipeline. I have one concern: the OTel spec does not mention publishing a public transform method for users to convert SDK data to OTLP. I am not sure we can add a new functionality without changing the spec. I know this is not ideal, but an existing workaround for you is to leverage the fileexporter from the OpenTelemetry Collector to export metrics to files. The data flow would be like this: instrument metrics in application -> export OTLP via gRPC/HTTP exporter -> OTel collector -> file exporter. @open-telemetry/go-maintainers any thoughts? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Recently, I am designing a framework where we will instrument the data. Then the data has to be converted to OTLP data. Save the data in file. Finally, another service will read the OTLP data from the file and send it to another gateway. So, I want to perform these steps :
Problem faced :
Now, I see that there is otlpgrpcexporter available that does two things :
But I only want to transform the data and not send it. This functionality of only transforming the data into OTLP format is not public. It is inside internal folder, hence making it a private method.
Reasons for it to be a public method :
There are multiple reasons why transforming data into OTLP format should be public :
Beta Was this translation helpful? Give feedback.
All reactions