Skip to content

Commit

Permalink
feat: traceloop proto (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomer-friedman authored Mar 17, 2023
1 parent 6f6a7d7 commit 53e9e68
Show file tree
Hide file tree
Showing 5 changed files with 6,254 additions and 6,820 deletions.
10 changes: 10 additions & 0 deletions packages/otel-proto/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# otel-proto

This repository contains both otel proto + traceloop proto files compiled to JS with type definitions

## Compiling proto files:
Compile JS:
npx pbjs -t static-module -w commonjs -o src/index.js --es6 src/opentelemetry/proto/trace/v1/trace.proto src/opentelemetry/proto/resource/v1/resource.proto src/opentelemetry/proto/common/v1/common.proto src/traceloop/proto/v1/traceloop.proto

Create type definitions:
npx pbts -o src/index.d.ts src/index.js
4 changes: 2 additions & 2 deletions packages/otel-proto/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@traceloop/otel-proto",
"description": "A set of functions for parsing OpenTelemetry protos.",
"description": "Otel & Traceloop proto compiled to JS with type definitions",
"version": "0.4.0",
"license": "Apache-2.0",
"type": "commonjs",
Expand All @@ -16,7 +16,7 @@
"repository": {
"type": "git",
"url": "/~https://github.com/traceloop/jest-opentelemetry.git",
"directory": "packages/otel-receiver"
"directory": "packages/otel-proto"
},
"homepage": "/~https://github.com/traceloop/jest-opentelemetry/tree/main/packages/otel-proto#readme",
"bugs": {
Expand Down
Loading

0 comments on commit 53e9e68

Please sign in to comment.