Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yingrong.update protos 2 #2

Merged
merged 127 commits into from
Jun 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
127 commits
Select commit Hold shift + click to select a range
8e0e5f3
fix a tiny typo and reflow (#421)
pirgeo Aug 8, 2022
03a08fb
Change the exponential histogram boundary condition (#409)
jmacd Aug 19, 2022
9a9a5c8
Prepare for declaring OTLP/JSON Stable (#435)
tigrannajaryan Nov 8, 2022
327e7b5
Delete requirement to generate new trace/span id if an invalid id is …
tigrannajaryan Jan 20, 2023
a5ab8d9
Introduce an optional `zero_threshold` field to `ExponentialHistogram…
kovrus Jan 23, 2023
f184864
Clarify behavior for empty/not present/invalid trace_id and span_id f…
tigrannajaryan Jan 27, 2023
fb655c2
Declare OTLP/JSON Stable (#436)
tigrannajaryan Feb 9, 2023
5dd897c
Update auto assignment to reflect current TC (#450)
arminru Mar 1, 2023
3aed265
Update breaking-change to check against last published version (#454)
jack-berg Mar 15, 2023
1b4728c
Remove optional part from zero_threshold (#453)
bogdandrutu Mar 15, 2023
13d7797
change the collector trace endpoint to /v1/traces (#449)
craigandrews Mar 21, 2023
e4eefea
Clarify how additive changes are handled (#455)
tigrannajaryan Apr 20, 2023
0b5552a
Define OTLP 1.0 Stability guarantees (#432)
tigrannajaryan Apr 27, 2023
c465f0e
Move specifications into sub-directories per signal (#546)
bogdandrutu Apr 6, 2020
3a922ef
Add OTLP to the specification (#794)
tigrannajaryan Aug 17, 2020
3a56263
Add link to OTLP specification from README (#816)
tigrannajaryan Aug 17, 2020
68c5856
Allow specifying a single configuration (#820)
Aug 19, 2020
25eb61c
Use hex encoding for trace id and span id fields in OTLP JSON encodin…
tigrannajaryan Sep 8, 2020
90245b8
Fix the unclear SHOULD requirement for "gzip" OTLP content type (#1038)
tigrannajaryan Sep 30, 2020
0472f8c
Change default OTLP port number (#1221)
tigrannajaryan Nov 16, 2020
9be4aed
Remove support to allow_different_nesting, from markdownlint (#1248)
bogdandrutu Nov 30, 2020
6e1fed8
fix: otlp.md missing closing details label. (#1278)
TommyCpp Dec 7, 2020
6b3e559
Versioning and Stability for OpenTelemetry (#1291)
tedsuo Jan 20, 2021
f0b09bb
Update links/github actions after the master -> main rename (#1384)
bogdandrutu Jan 27, 2021
95cba31
Add lifecycle statuses to all documents (#1385)
tedsuo Feb 4, 2021
4b1f210
OTLP stability clarifications (#1400)
carlosalberto Feb 5, 2021
bb9fddf
Clarify that 64 bit integer numbers are decimal strings in OTLP/JSON …
tigrannajaryan Apr 27, 2021
cff7fa1
Mark relevant portions of Metrics DataModel stable (#1728)
jsuereth Jun 7, 2021
a5a5e5b
Declare OTLP Logs Beta (#1741)
tigrannajaryan Jun 8, 2021
dddbb42
Change OTLP/HTTP port from 4317 to 4318 (#1839)
tigrannajaryan Aug 3, 2021
79216bb
Revert "Change OTLP/HTTP port from 4317 to 4318 (#1839)" (#1847)
tigrannajaryan Aug 6, 2021
0aea3fe
Clarify OTLP server components MUST support none/gzip compression. (#…
carlosalberto Sep 29, 2021
b52a1d7
Change OTLP/HTTP port from 4317 to 4318 (#1839) (#1970)
tigrannajaryan Sep 29, 2021
494e79c
Ensure all ToCs are generated using markdown-toc (#2146)
chalin Nov 24, 2021
9347edb
Duplicate word removal (#2423)
nvolker Mar 18, 2022
0dd37aa
Fix formatting of OTLP/HTTP's two status lines (#2442)
chalin Mar 26, 2022
50b9376
Retry RESOURCE_EXHAUSTED only if the server can recover (#2480)
svrakitin Apr 13, 2022
b1c16bd
Mark OTLP Logs Stable (#2565)
tigrannajaryan May 21, 2022
5413422
Add support for partial success in an OTLP export response [2] (#2696)
joaopgrassi Aug 2, 2022
bdbef23
Inserts links to each Protocol Buffer definition by Telemetry signal …
pantuza Aug 12, 2022
c3f1c02
Refactor OTLP/HTTP section (#2756)
tigrannajaryan Aug 30, 2022
89363fe
Prohibit usage of enum value name strings in OTLP/JSON (#2758)
tigrannajaryan Sep 19, 2022
d968727
Clarify that unknown fields must be ignored when receiving OTLP/JSON …
tigrannajaryan Sep 27, 2022
5967e37
Clarify that lowerCamelCase field names MUST be used for OTLP/JSON (#…
tigrannajaryan Oct 12, 2022
f25d197
Add table for OTLP/HTTP response code and client retry recommendation…
newly12 Dec 20, 2022
e8ea719
Declare OTLP/JSON Stable (#2930)
tigrannajaryan Feb 9, 2023
38372ff
Fix typos and grammar in the OTLP spec (#3121)
moonbox3 Feb 22, 2023
36cdc8d
Declare OTLP stable (#3274)
jonatan-ivanov Mar 8, 2023
883eb82
Eliminate nested "protocol" directory and fix all links
tigrannajaryan Apr 27, 2023
9cde6ed
Use "example.com" where an example domain is needed (#465)
aabmass May 4, 2023
d36a8f6
Clarify that symbolic guarantees go into effect from 1.0.0 (#467)
tigrannajaryan May 9, 2023
e2a23a9
Add OTLP JSON payload examples
joaopgrassi May 4, 2023
d154235
Update specification/otlp-json-examples/README.md
joaopgrassi May 10, 2023
481cdac
Add link checking
tigrannajaryan Apr 27, 2023
80f161a
[chore] Change comment on `bucket_counts` to reflect spec.
kovrus Jan 3, 2023
c08d035
Update opentelemetry/proto/metrics/v1/metrics.proto
tigrannajaryan May 9, 2023
b0cc606
Move examples into an example folder (#472)
chalin May 11, 2023
764275e
Use correct lowerCameCase for JSON field references
tigrannajaryan May 9, 2023
102cc10
Clarify bitfield helper enums
tigrannajaryan Apr 27, 2023
8feb80a
Rename ./specification to ./docs (#469)
chalin May 19, 2023
f72e8c3
Fix LogRecordFlags and DataPointFlags enum element name inconsistency…
tigrannajaryan May 20, 2023
0ab1544
Fix JSON field capitalization in trace.json example (#477)
tigrannajaryan May 24, 2023
76f350c
Remove trace_config from maturity matrix, already removed from repo (…
bogdandrutu May 24, 2023
af545c5
Update CHANGELOG.md (#478)
tigrannajaryan May 30, 2023
53c0fe2
Fix zero_threshold changelog entry (#481)
jack-berg May 30, 2023
3e68d91
[editorial] Drop or adjust Hugo front matter in doc pages (#479)
chalin Jun 1, 2023
411e950
Clarify uniqueness of Scope attribute keys
tigrannajaryan May 29, 2023
de589d8
Update CHANGELOG.md after 0.20.0 release
tigrannajaryan Jun 6, 2023
d135794
[editorial] spec: escape HTML chars in markdown link syntax
chalin Jun 27, 2023
24aa275
Add note about the possibility to have unstable components after 1.0.…
tigrannajaryan Jun 29, 2023
da40c2d
Add maturity JSON entry per package
bogdandrutu Jun 29, 2023
fa9cbfe
Update CHANGELOG.md for 1.0.0 release (#493)
tigrannajaryan Jul 5, 2023
41db0ad
Fix EOF issue in metrics payload
ZaradarBH Jul 12, 2023
86215ee
Update metrics.json
ZaradarBH Jul 12, 2023
d5ec6cb
[CI] Report link-check error when external URL used for local doc pag…
chalin Jul 19, 2023
a499d05
add markdown linting to makefile and github actions (reference: #464)
jaydeluca Jul 4, 2023
07568e9
fix linting errors from recent merge from main
jaydeluca Jul 13, 2023
98e6c63
Add comment to explain schema_url fields
tigrannajaryan Aug 17, 2023
8b022d8
Add W3C-specified trace flags to v1 Span proto (#503)
jmacd Sep 14, 2023
458784b
Remove irrelevant comments from metric name field (#512)
tigrannajaryan Nov 7, 2023
bf53163
Fix the incorrect histogram example in metrics.json
songy23 Oct 27, 2023
9212a22
Update metrics.json
songy23 Oct 27, 2023
ec4b0e9
fix: OTLP JSON examples (#516)
bripkens Jan 9, 2024
18d0564
Prepare release 1.1.0 (#523)
bogdandrutu Jan 11, 2024
8d01002
Fix typo in requirements.md
arminru Jan 11, 2024
80bf0a3
Add parent_span_is_remote to Span message
estolfo Jun 13, 2023
6ccc2e3
Use enum for ParentSpanIsRemote
estolfo Aug 15, 2023
30e091e
Adjust enum name
estolfo Aug 15, 2023
8867ebe
Add extra comment about unset value from older clients
estolfo Aug 15, 2023
d48c4db
Remove misleading documentation
estolfo Aug 22, 2023
2df5ef9
Update names
estolfo Aug 22, 2023
8b6ecfc
Remove ParentSpanIsRemote attribute
estolfo Sep 18, 2023
c72b39d
Add defintion of 2 bit parent is remote flag
estolfo Sep 18, 2023
377e976
Include enum for interpreting ParentIsRemote flag and update document…
estolfo Sep 19, 2023
741fd3e
Add constants and enum for interpreting bits 8 and 9 of a Link's flags
estolfo Sep 27, 2023
7abd842
One constant for link and parent is remote mask
estolfo Sep 27, 2023
17e2038
Update opentelemetry/proto/trace/v1/trace.proto
estolfo Sep 27, 2023
ad149e6
Adjust flags documentation ordering
estolfo Sep 28, 2023
daf0fea
Merge parent and link is remote enums into one
estolfo Sep 28, 2023
b0149ff
Update opentelemetry/proto/trace/v1/trace.proto
estolfo Oct 12, 2023
d58b07e
Update opentelemetry/proto/trace/v1/trace.proto
estolfo Oct 12, 2023
4cee2e3
Update opentelemetry/proto/trace/v1/trace.proto
estolfo Oct 12, 2023
cceb98b
Update opentelemetry/proto/trace/v1/trace.proto
estolfo Oct 12, 2023
9c27cc9
Update opentelemetry/proto/trace/v1/trace.proto
estolfo Oct 12, 2023
291d76f
Update opentelemetry/proto/trace/v1/trace.proto
estolfo Oct 12, 2023
04ab71f
Change doc references to updated enum name
estolfo Oct 12, 2023
ce1baa5
Update opentelemetry/proto/trace/v1/trace.proto
estolfo Oct 16, 2023
4e79ac6
Update opentelemetry/proto/trace/v1/trace.proto
estolfo Oct 16, 2023
7b258fb
Adjust formatting of comments
estolfo Oct 16, 2023
de25dbc
Update opentelemetry/proto/trace/v1/trace.proto
estolfo Oct 17, 2023
dab8918
Remove enum, describe values in comment
estolfo Nov 28, 2023
fbf680b
Split isremote into two masks
estolfo Jan 11, 2024
924eb3f
Update references to isremote masks
estolfo Jan 11, 2024
de4ad66
Update inconsistency in docs formatting
estolfo Jan 11, 2024
715ffe2
Add Changelog entry
estolfo Jan 23, 2024
abaa16c
Clarify formulas for reading span flags (#528)
jack-berg Jan 30, 2024
a45b1c4
Add metric.metadata for supporting additional metadata on metrics (#514)
dashpole Feb 2, 2024
e690cb6
[editorial] Fix path base in Hugo front matter (#530)
chalin Feb 9, 2024
20fda65
Unset executable flag on Makefile (#541)
arminru Apr 2, 2024
13669b9
Prepare Release 1.2.0 (#537)
carlosalberto Apr 5, 2024
d9268a1
Polish document content in README.md (#542)
steverao Apr 9, 2024
8ff98d3
Add new profile signal (#534)
petethepig Apr 23, 2024
95775bf
Prepare v1.3.0 release (#549)
tigrannajaryan Apr 24, 2024
63c94a1
profiles: fix versioning in selector (#551)
florianl Apr 25, 2024
ce5f949
generate profiles proto for CI (#552)
dmathieu Apr 25, 2024
2b0227c
Revert "Remove deprecated messages and fields from metrics (#342)"
MikeGoldsmith May 24, 2023
d161664
Update README with details on forked repo
MikeGoldsmith May 30, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/auto_assign.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ assigneeGroups:
- arminru
- bogdandrutu
- carlosalberto
- jack-berg
- jmacd
- jsuereth
- SergeyKanzhelev
- reyang
- tigrannajaryan
- yurishkuro

Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/build-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,38 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# breaking-change checks against last published release which is determined
# using the last published tag
- name: Get tags
run: git fetch --tags origin
- name: Run make breaking-change with json output to annotate PR
# Formats JSON output into Github workflow commands
# https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#setting-an-error-message
run: >
BUF_FLAGS="--error-format json" make -s breaking-change
| jq -rs '.[] | "::error file=\(.path),line=\(.start_line),endLine=\(.end_line),title=Buf detected breaking change \(.type)::\(.message)"'
; (exit ${PIPESTATUS[0]})

markdown-link-check:
runs-on: ubuntu-latest
steps:
- name: check out code
uses: actions/checkout@v2

- name: install dependencies
run: npm install

- name: run markdown-link-check
run: make markdown-link-check

markdownlint:
runs-on: ubuntu-latest
steps:
- name: check out code
uses: actions/checkout@v2

- name: install dependencies
run: npm install

- name: run markdownlint
run: make markdownlint
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@

# Generated code
/gen/

node_modules
22 changes: 22 additions & 0 deletions .markdown_link_check_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"ignorePatterns": [
{
"pattern": "^https://github\\.com/open-telemetry/opentelemetry-specification/(issues|pull)"
}
],
"replacementPatterns": [
{
"pattern": "^/",
"replacement": "{{BASEURL}}/"
},
{
"pattern": "^https://github.com/open-telemetry/opentelemetry-proto/(blob|tree)/[^/]+/docs/",
"replacement": "LINK-CHECK-ERROR-USE-LOCAL-PATH-TO-DOC-PAGE-NOT-EXTERNAL-URL/"
}
],
"retryOn429": true,
"aliveStatusCodes": [
200,
403
]
}
14 changes: 14 additions & 0 deletions .markdownlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# See https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md
# and https://github.com/DavidAnson/markdownlint/blob/main/README.md

# Default state for all rules
default: true

ul-style: false
line-length: false
no-duplicate-header:
siblings_only: true
ol-prefix:
style: ordered
no-inline-html: false
fenced-code-language: false
88 changes: 78 additions & 10 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,91 @@

## Unreleased

Full list of differences found in [this compare](https://github.com/open-telemetry/opentelemetry-proto/compare/v0.19.0...main).
Full list of differences found in [this compare](https://github.com/open-telemetry/opentelemetry-proto/compare/v1.1.0...main).

### Added

### Changed

## 1.3.0 - 2024-04-24

### Added

* Add new profile signal.
[#534](https://github.com/open-telemetry/opentelemetry-proto/pull/534)

## 1.2.0 - 2024-03-29

### Added

* Indicate if a `Span`'s parent or link is remote using 2 bit flag.
[#484](https://github.com/open-telemetry/opentelemetry-proto/pull/484)
* Add metric.metadata for supporting additional metadata on metrics
[#514](https://github.com/open-telemetry/opentelemetry-proto/pull/514)

### Changed

## 1.1.0 - 2024-01-10

Full list of differences found in [this compare](https://github.com/open-telemetry/opentelemetry-proto/compare/v1.0.0...v1.1.0).

### Added

* Add `flags` field to `Span` and `Span/Link` for W3C-specified Trace Context flags.
[#503](https://github.com/open-telemetry/opentelemetry-proto/pull/503)

### Changed

* Update and fix OTLP JSON examples. [#516](https://github.com/open-telemetry/opentelemetry-proto/pull/516),
[#510](https://github.com/open-telemetry/opentelemetry-proto/pull/510),
[#499](https://github.com/open-telemetry/opentelemetry-proto/pull/499)
* Remove irrelevant comments from metric name field. [#512](https://github.com/open-telemetry/opentelemetry-proto/pull/512)
* Add comment to explain schema_url fields. [#504](https://github.com/open-telemetry/opentelemetry-proto/pull/504)

## 1.0.0 - 2023-07-03

Full list of differences found in [this compare](https://github.com/open-telemetry/opentelemetry-proto/compare/v0.20.0...v1.0.0).

### Maturity

* Remove if no changes for this section before release.
* Add note about the possibility to have unstable components after 1.0.0
[#489](https://github.com/open-telemetry/opentelemetry-proto/pull/489)
* Add maturity JSON entry per package
[#490](https://github.com/open-telemetry/opentelemetry-proto/pull/490)

## 0.20.0 - 2023-06-06

Full list of differences found in [this compare](https://github.com/open-telemetry/opentelemetry-proto/compare/v0.19.0...v0.20.0).

### Maturity

* Declare OTLP/JSON Stable.
[#436](https://github.com/open-telemetry/opentelemetry-proto/pull/436)
[#435](https://github.com/open-telemetry/opentelemetry-proto/pull/435)
* Provide stronger symbolic stability guarantees.
[#432](https://github.com/open-telemetry/opentelemetry-proto/pull/432)
* Clarify how additive changes are handled.
[#455](https://github.com/open-telemetry/opentelemetry-proto/pull/455)

### Changed

* Remove if no changes for this section before release.
* Change the exponential histogram boundary condition.
[#409](https://github.com/open-telemetry/opentelemetry-proto/pull/409)
* Clarify behavior for empty/not present/invalid trace_id and span_id fields.
[#442](https://github.com/open-telemetry/opentelemetry-proto/pull/442)
* Change the collector trace endpoint to /v1/traces.
[#449](https://github.com/open-telemetry/opentelemetry-proto/pull/449)

### Added

* Remove if no changes for this section before release.
* Introduce `zero_threshold` field to `ExponentialHistogramDataPoint`.
[#441](https://github.com/open-telemetry/opentelemetry-proto/pull/441)
[#453](https://github.com/open-telemetry/opentelemetry-proto/pull/453)

### Removed

* Remove if no changes for this section before release.
* Delete requirement to generate new trace/span id if an invalid id is received.
[#444](https://github.com/open-telemetry/opentelemetry-proto/pull/444)

## 0.19.0 - 2022-08-03

Expand All @@ -29,7 +97,7 @@ Full list of differences found in [this compare](https://github.com/open-telemet
* Add `csharp_namespace` option to protos.
([#399](https://github.com/open-telemetry/opentelemetry-proto/pull/399))
* Fix some out-of-date urls which link to [specification](https://github.com/open-telemetry/opentelemetry-specification). ([#402](https://github.com/open-telemetry/opentelemetry-proto/pull/402))
* :stop_sign: [BREAKING] Delete deprecated InstrumentationLibrary,
* :stop_sign: [BREAKING] Delete deprecated InstrumentationLibrary,
InstrumentationLibraryLogs, InstrumentationLibrarySpans and
InstrumentationLibraryMetrics messages. Delete deprecated
instrumentation_library_logs, instrumentation_library_spans and
Expand Down Expand Up @@ -108,7 +176,7 @@ Full list of differences found in [this compare](https://github.com/open-telemet

* Remove unused deprecated message StringKeyValue (#358)
* Remove experimental metrics config service (#359)

## 0.12.0 - 2022-01-19

Full list of differences found in [this compare](https://github.com/open-telemetry/opentelemetry-proto/compare/v0.11.0...v0.12.0).
Expand Down Expand Up @@ -259,9 +327,9 @@ Full list of differences found in [this compare.](https://github.com/open-teleme
### Changed

* :stop_sign: [BREAKING] Metrics - protocol was refactored, and lots of breaking changes.
** Removed MetricDescriptor and embedded into Metric and the new data types.
** Add new data types Gauge/Sum/Histogram.
** Make use of the "AggregationTemporality" into the data types that allow that support.
* Removed MetricDescriptor and embedded into Metric and the new data types.
* Add new data types Gauge/Sum/Histogram.
* Make use of the "AggregationTemporality" into the data types that allow that support.
* Rename enum values to follow the proto3 style guide.

### Added
Expand Down
37 changes: 35 additions & 2 deletions Makefile
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ $(1)

endef

.PHONY: all
all: gen-all markdown-link-check markdownlint

# Generate all implementations
.PHONY: gen-all
gen-all: gen-cpp gen-csharp gen-go gen-java gen-kotlin gen-objc gen-openapi gen-php gen-python gen-ruby
Expand All @@ -22,9 +25,10 @@ BUF_DOCKER ?= bufbuild/buf:1.7.0

PROTOC := docker run --rm -u ${shell id -u} -v${PWD}:${PWD} -w${PWD} ${OTEL_DOCKER_PROTOBUF} --proto_path=${PWD}
BUF := docker run --rm -v "${PWD}:/workspace" -w /workspace ${BUF_DOCKER}
# When checking for protobuf breaking changes, check against the upstream repo's main branch.
# When checking for protobuf breaking changes, check against the latest release tag
LAST_RELEASE_TAG := $(shell git tag --sort=committerdate | tail -1)
# Options are described in https://docs.buf.build/breaking/usage#git
BUF_AGAINST ?= "https://github.com/open-telemetry/opentelemetry-proto.git"
BUF_AGAINST ?= "https://github.com/open-telemetry/opentelemetry-proto.git\#tag=$(LAST_RELEASE_TAG)"

PROTO_GEN_CPP_DIR ?= $(GENDIR)/cpp
PROTO_GEN_CSHARP_DIR ?= $(GENDIR)/csharp
Expand Down Expand Up @@ -53,6 +57,7 @@ gen-cpp:
$(PROTOC) --cpp_out=./$(PROTO_GEN_CPP_DIR) --grpc-cpp_out=./$(PROTO_GEN_CPP_DIR) opentelemetry/proto/collector/trace/v1/trace_service.proto
$(PROTOC) --cpp_out=./$(PROTO_GEN_CPP_DIR) --grpc-cpp_out=./$(PROTO_GEN_CPP_DIR) opentelemetry/proto/collector/metrics/v1/metrics_service.proto
$(PROTOC) --cpp_out=./$(PROTO_GEN_CPP_DIR) --grpc-cpp_out=./$(PROTO_GEN_CPP_DIR) opentelemetry/proto/collector/logs/v1/logs_service.proto
$(PROTOC) --cpp_out=./$(PROTO_GEN_CPP_DIR) --grpc-cpp_out=./$(PROTO_GEN_CPP_DIR) opentelemetry/proto/collector/profiles/v1experimental/profiles_service.proto

# Generate gRPC/Protobuf implementation for C#.
.PHONY: gen-csharp
Expand All @@ -63,6 +68,7 @@ gen-csharp:
$(PROTOC) --csharp_out=./$(PROTO_GEN_CSHARP_DIR) --grpc-csharp_out=./$(PROTO_GEN_CSHARP_DIR) opentelemetry/proto/collector/trace/v1/trace_service.proto
$(PROTOC) --csharp_out=./$(PROTO_GEN_CSHARP_DIR) --grpc-csharp_out=./$(PROTO_GEN_CSHARP_DIR) opentelemetry/proto/collector/metrics/v1/metrics_service.proto
$(PROTOC) --csharp_out=./$(PROTO_GEN_CSHARP_DIR) --grpc-csharp_out=./$(PROTO_GEN_CSHARP_DIR) opentelemetry/proto/collector/logs/v1/logs_service.proto
$(PROTOC) --csharp_out=./$(PROTO_GEN_CSHARP_DIR) --grpc-csharp_out=./$(PROTO_GEN_CSHARP_DIR) opentelemetry/proto/collector/profiles/v1experimental/profiles_service.proto

# Generate gRPC/Protobuf implementation for Go.
.PHONY: gen-go
Expand All @@ -73,6 +79,7 @@ gen-go:
$(PROTOC) --grpc-gateway_out=logtostderr=true,grpc_api_configuration=opentelemetry/proto/collector/trace/v1/trace_service_http.yaml:./$(PROTO_GEN_GO_DIR) opentelemetry/proto/collector/trace/v1/trace_service.proto
$(PROTOC) --grpc-gateway_out=logtostderr=true,grpc_api_configuration=opentelemetry/proto/collector/metrics/v1/metrics_service_http.yaml:./$(PROTO_GEN_GO_DIR) opentelemetry/proto/collector/metrics/v1/metrics_service.proto
$(PROTOC) --grpc-gateway_out=logtostderr=true,grpc_api_configuration=opentelemetry/proto/collector/logs/v1/logs_service_http.yaml:./$(PROTO_GEN_GO_DIR) opentelemetry/proto/collector/logs/v1/logs_service.proto
$(PROTOC) --grpc-gateway_out=logtostderr=true,grpc_api_configuration=opentelemetry/proto/collector/profiles/v1experimental/profiles_service_http.yaml:./$(PROTO_GEN_GO_DIR) opentelemetry/proto/collector/profiles/v1experimental/profiles_service.proto

# Generate gRPC/Protobuf implementation for Java.
.PHONY: gen-java
Expand All @@ -98,6 +105,7 @@ gen-js:
$(PROTOC) --js_out=import_style=commonjs:./$(PROTO_GEN_JS_DIR) --grpc-web_out=import_style=commonjs,mode=grpcweb:./$(PROTO_GEN_JS_DIR) opentelemetry/proto/collector/trace/v1/trace_service.proto
$(PROTOC) --js_out=import_style=commonjs:./$(PROTO_GEN_JS_DIR) --grpc-web_out=import_style=commonjs,mode=grpcweb:./$(PROTO_GEN_JS_DIR) opentelemetry/proto/collector/metrics/v1/metrics_service.proto
$(PROTOC) --js_out=import_style=commonjs:./$(PROTO_GEN_JS_DIR) --grpc-web_out=import_style=commonjs,mode=grpcweb:./$(PROTO_GEN_JS_DIR) opentelemetry/proto/collector/logs/v1/logs_service.proto
$(PROTOC) --js_out=import_style=commonjs:./$(PROTO_GEN_JS_DIR) --grpc-web_out=import_style=commonjs,mode=grpcweb:./$(PROTO_GEN_JS_DIR) opentelemetry/proto/collector/profiles/v1experimental/profiles_service.proto

# Generate gRPC/Protobuf implementation for Objective-C.
.PHONY: gen-objc
Expand All @@ -108,6 +116,7 @@ gen-objc:
$(PROTOC) --objc_out=./$(PROTO_GEN_OBJC_DIR) --grpc-objc_out=./$(PROTO_GEN_OBJC_DIR) opentelemetry/proto/collector/trace/v1/trace_service.proto
$(PROTOC) --objc_out=./$(PROTO_GEN_OBJC_DIR) --grpc-objc_out=./$(PROTO_GEN_OBJC_DIR) opentelemetry/proto/collector/metrics/v1/metrics_service.proto
$(PROTOC) --objc_out=./$(PROTO_GEN_OBJC_DIR) --grpc-objc_out=./$(PROTO_GEN_OBJC_DIR) opentelemetry/proto/collector/logs/v1/logs_service.proto
$(PROTOC) --objc_out=./$(PROTO_GEN_OBJC_DIR) --grpc-objc_out=./$(PROTO_GEN_OBJC_DIR) opentelemetry/proto/collector/profiles/v1experimental/profiles_service.proto

# Generate gRPC/Protobuf for openapi v2 (swagger)
.PHONY: gen-openapi
Expand All @@ -116,6 +125,7 @@ gen-openapi:
$(PROTOC) --openapiv2_out=logtostderr=true,grpc_api_configuration=opentelemetry/proto/collector/trace/v1/trace_service_http.yaml:$(PROTO_GEN_OPENAPI_DIR) opentelemetry/proto/collector/trace/v1/trace_service.proto
$(PROTOC) --openapiv2_out=logtostderr=true,grpc_api_configuration=opentelemetry/proto/collector/metrics/v1/metrics_service_http.yaml:$(PROTO_GEN_OPENAPI_DIR) opentelemetry/proto/collector/metrics/v1/metrics_service.proto
$(PROTOC) --openapiv2_out=logtostderr=true,grpc_api_configuration=opentelemetry/proto/collector/logs/v1/logs_service_http.yaml:$(PROTO_GEN_OPENAPI_DIR) opentelemetry/proto/collector/logs/v1/logs_service.proto
$(PROTOC) --openapiv2_out=logtostderr=true,grpc_api_configuration=opentelemetry/proto/collector/profiles/v1experimental/profiles_service_http.yaml:$(PROTO_GEN_OPENAPI_DIR) opentelemetry/proto/collector/profiles/v1experimental/profiles_service.proto

# Generate gRPC/Protobuf implementation for PhP.
.PHONY: gen-php
Expand All @@ -126,6 +136,7 @@ gen-php:
$(PROTOC) --php_out=./$(PROTO_GEN_PHP_DIR) --grpc-php_out=./$(PROTO_GEN_PHP_DIR) opentelemetry/proto/collector/trace/v1/trace_service.proto
$(PROTOC) --php_out=./$(PROTO_GEN_PHP_DIR) --grpc-php_out=./$(PROTO_GEN_PHP_DIR) opentelemetry/proto/collector/metrics/v1/metrics_service.proto
$(PROTOC) --php_out=./$(PROTO_GEN_PHP_DIR) --grpc-php_out=./$(PROTO_GEN_PHP_DIR) opentelemetry/proto/collector/logs/v1/logs_service.proto
$(PROTOC) --php_out=./$(PROTO_GEN_PHP_DIR) --grpc-php_out=./$(PROTO_GEN_PHP_DIR) opentelemetry/proto/collector/profiles/v1experimental/profiles_service.proto

# Generate gRPC/Protobuf implementation for Python.
.PHONY: gen-python
Expand All @@ -136,6 +147,7 @@ gen-python:
$(PROTOC) --python_out=./$(PROTO_GEN_PYTHON_DIR) --grpc-python_out=./$(PROTO_GEN_PYTHON_DIR) opentelemetry/proto/collector/trace/v1/trace_service.proto
$(PROTOC) --python_out=./$(PROTO_GEN_PYTHON_DIR) --grpc-python_out=./$(PROTO_GEN_PYTHON_DIR) opentelemetry/proto/collector/metrics/v1/metrics_service.proto
$(PROTOC) --python_out=./$(PROTO_GEN_PYTHON_DIR) --grpc-python_out=./$(PROTO_GEN_PYTHON_DIR) opentelemetry/proto/collector/logs/v1/logs_service.proto
$(PROTOC) --python_out=./$(PROTO_GEN_PYTHON_DIR) --grpc-python_out=./$(PROTO_GEN_PYTHON_DIR) opentelemetry/proto/collector/profiles/v1experimental/profiles_service.proto

# Generate gRPC/Protobuf implementation for Ruby.
.PHONY: gen-ruby
Expand All @@ -146,7 +158,28 @@ gen-ruby:
$(PROTOC) --ruby_out=./$(PROTO_GEN_RUBY_DIR) --grpc-ruby_out=./$(PROTO_GEN_RUBY_DIR) opentelemetry/proto/collector/trace/v1/trace_service.proto
$(PROTOC) --ruby_out=./$(PROTO_GEN_RUBY_DIR) --grpc-ruby_out=./$(PROTO_GEN_RUBY_DIR) opentelemetry/proto/collector/metrics/v1/metrics_service.proto
$(PROTOC) --ruby_out=./$(PROTO_GEN_RUBY_DIR) --grpc-ruby_out=./$(PROTO_GEN_RUBY_DIR) opentelemetry/proto/collector/logs/v1/logs_service.proto
$(PROTOC) --ruby_out=./$(PROTO_GEN_RUBY_DIR) --grpc-ruby_out=./$(PROTO_GEN_RUBY_DIR) opentelemetry/proto/collector/profiles/v1experimental/profiles_service.proto

.PHONY: breaking-change
breaking-change:
$(BUF) breaking --against $(BUF_AGAINST) $(BUF_FLAGS)


ALL_DOCS := $(shell find . -type f -name '*.md' -not -path './.github/*' -not -path './node_modules/*' | sort)

.PHONY: markdown-link-check
markdown-link-check:
@if ! npm ls markdown-link-check; then npm install; fi
@for f in $(ALL_DOCS); do \
npx --no -- markdown-link-check --quiet --config .markdown_link_check_config.json $$f \
|| exit 1; \
done

.PHONY: markdownlint
markdownlint:
@if ! npm ls markdownlint; then npm install; fi
@for f in $(ALL_DOCS); do \
echo $$f; \
npx --no -p markdownlint-cli markdownlint -c .markdownlint.yaml $$f \
|| exit 1; \
done
Loading
Loading