A new config param protocol is added to the otlpConfig for the otlp exporter. It defaults to http but it can also take the grpc value to enable basic (insecure) gRPC exporting in the agent. For the agent tests, multiple changes were needed:
Added the @grpc/grpc-js and @grpc/proto-loader packages needed to implement a basic gRPC server.
Add the actual OTLP protobuf files needed to configure the gRPC server.
Create a OTLPGRPCServer with the same interface as the current OTLPServer.
A new config param
protocol
is added to theotlpConfig
for theotlp
exporter. It defaults tohttp
but it can also take thegrpc
value to enable basic (insecure)gRPC
exporting in the agent. For the agent tests, multiple changes were needed:@grpc/grpc-js
and@grpc/proto-loader
packages needed to implement a basic gRPC server.OTLPGRPCServer
with the same interface as the currentOTLPServer
.