in packages/opentelemetry-cloud-trace-exporter/compile-protos.js [32:54]
async function generateProtoJSON() {
const protoPath = protofiles.getProtoPath('..');
const tracingProtoPath = protofiles.getProtoPath(
'devtools',
'cloudtrace',
'v2',
'tracing.proto'
);
const outputFilePath = join('protos', 'protos.json');
const pbjsArgs = [
'--target',
'json',
'-p',
protoPath,
'-o',
outputFilePath,
tracingProtoPath,
];
await pbjsMain(pbjsArgs);
console.log('Proto JSON file generated successfully.');
}