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 #1

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
2e70232
fix a tiny typo and reflow (#421)
pirgeo Aug 8, 2022
f07bc50
Change the exponential histogram boundary condition (#409)
jmacd Aug 19, 2022
97b478c
Prepare for declaring OTLP/JSON Stable (#435)
tigrannajaryan Nov 8, 2022
53a3bac
Delete requirement to generate new trace/span id if an invalid id is …
tigrannajaryan Jan 20, 2023
be88876
Introduce an optional `zero_threshold` field to `ExponentialHistogram…
kovrus Jan 23, 2023
520f08a
Clarify behavior for empty/not present/invalid trace_id and span_id f…
tigrannajaryan Jan 27, 2023
52a9a20
Declare OTLP/JSON Stable (#436)
tigrannajaryan Feb 9, 2023
660f8e3
Update auto assignment to reflect current TC (#450)
arminru Mar 1, 2023
0f250fa
Update breaking-change to check against last published version (#454)
jack-berg Mar 15, 2023
273735b
Remove optional part from zero_threshold (#453)
bogdandrutu Mar 15, 2023
d5c2d15
change the collector trace endpoint to /v1/traces (#449)
craigandrews Mar 21, 2023
03865af
Clarify how additive changes are handled (#455)
tigrannajaryan Apr 20, 2023
4cc5ff2
Define OTLP 1.0 Stability guarantees (#432)
tigrannajaryan Apr 27, 2023
04e06ed
Move specifications into sub-directories per signal (#546)
bogdandrutu Apr 6, 2020
c6079e1
Add OTLP to the specification (#794)
tigrannajaryan Aug 17, 2020
500d6ad
Add link to OTLP specification from README (#816)
tigrannajaryan Aug 17, 2020
430e0b4
Allow specifying a single configuration (#820)
Aug 19, 2020
6487215
Use hex encoding for trace id and span id fields in OTLP JSON encodin…
tigrannajaryan Sep 8, 2020
90d60e0
Fix the unclear SHOULD requirement for "gzip" OTLP content type (#1038)
tigrannajaryan Sep 30, 2020
e66ee36
Change default OTLP port number (#1221)
tigrannajaryan Nov 16, 2020
8d87d8e
Remove support to allow_different_nesting, from markdownlint (#1248)
bogdandrutu Nov 30, 2020
0e43b79
fix: otlp.md missing closing details label. (#1278)
TommyCpp Dec 7, 2020
d9cbaa8
Versioning and Stability for OpenTelemetry (#1291)
Jan 20, 2021
a9a095a
Update links/github actions after the master -> main rename (#1384)
bogdandrutu Jan 27, 2021
b39c7e2
Add lifecycle statuses to all documents (#1385)
Feb 4, 2021
592e76f
OTLP stability clarifications (#1400)
carlosalberto Feb 5, 2021
98236c1
Clarify that 64 bit integer numbers are decimal strings in OTLP/JSON …
tigrannajaryan Apr 27, 2021
5b98f9b
Mark relevant portions of Metrics DataModel stable (#1728)
jsuereth Jun 7, 2021
939e393
Declare OTLP Logs Beta (#1741)
tigrannajaryan Jun 8, 2021
7711980
Change OTLP/HTTP port from 4317 to 4318 (#1839)
tigrannajaryan Aug 3, 2021
d5787ec
Revert "Change OTLP/HTTP port from 4317 to 4318 (#1839)" (#1847)
tigrannajaryan Aug 6, 2021
3bad2e1
Clarify OTLP server components MUST support none/gzip compression. (#…
carlosalberto Sep 29, 2021
ffb98ca
Change OTLP/HTTP port from 4317 to 4318 (#1839) (#1970)
tigrannajaryan Sep 29, 2021
d18d98a
Ensure all ToCs are generated using markdown-toc (#2146)
chalin Nov 24, 2021
dd9bc05
Duplicate word removal (#2423)
nvolker Mar 18, 2022
fd0c22e
Fix formatting of OTLP/HTTP's two status lines (#2442)
chalin Mar 26, 2022
cef5fe9
Retry RESOURCE_EXHAUSTED only if the server can recover (#2480)
svrakitin Apr 13, 2022
f8bf63d
Mark OTLP Logs Stable (#2565)
tigrannajaryan May 21, 2022
8d25f67
Add support for partial success in an OTLP export response [2] (#2696)
joaopgrassi Aug 2, 2022
63e89d3
Inserts links to each Protocol Buffer definition by Telemetry signal …
pantuza Aug 12, 2022
40367e3
Refactor OTLP/HTTP section (#2756)
tigrannajaryan Aug 30, 2022
5c1b186
Prohibit usage of enum value name strings in OTLP/JSON (#2758)
tigrannajaryan Sep 19, 2022
3d95630
Clarify that unknown fields must be ignored when receiving OTLP/JSON …
tigrannajaryan Sep 27, 2022
85be74e
Clarify that lowerCamelCase field names MUST be used for OTLP/JSON (#…
tigrannajaryan Oct 12, 2022
ced21fd
Add table for OTLP/HTTP response code and client retry recommendation…
newly12 Dec 20, 2022
38fc7bb
Declare OTLP/JSON Stable (#2930)
tigrannajaryan Feb 9, 2023
43ed722
Fix typos and grammar in the OTLP spec (#3121)
moonbox3 Feb 22, 2023
b4e632f
Declare OTLP stable (#3274)
jonatan-ivanov Mar 8, 2023
8ff080d
Eliminate nested "protocol" directory and fix all links
tigrannajaryan Apr 27, 2023
3f35a1b
Use "example.com" where an example domain is needed (#465)
aabmass May 4, 2023
cc9ea40
Clarify that symbolic guarantees go into effect from 1.0.0 (#467)
tigrannajaryan May 9, 2023
88ce743
Add OTLP JSON payload examples
joaopgrassi May 4, 2023
9f0668b
Update specification/otlp-json-examples/README.md
joaopgrassi May 10, 2023
55a8527
Add link checking
tigrannajaryan Apr 27, 2023
1a713c6
[chore] Change comment on `bucket_counts` to reflect spec.
kovrus Jan 3, 2023
c1bc89e
Update opentelemetry/proto/metrics/v1/metrics.proto
tigrannajaryan May 9, 2023
844c8bf
Move examples into an example folder (#472)
chalin May 11, 2023
8e28477
Use correct lowerCameCase for JSON field references
tigrannajaryan May 9, 2023
df02c86
Clarify bitfield helper enums
tigrannajaryan Apr 27, 2023
af9643e
Rename ./specification to ./docs (#469)
chalin May 19, 2023
d15bc14
Fix LogRecordFlags and DataPointFlags enum element name inconsistency…
tigrannajaryan May 20, 2023
28f12e0
Fix JSON field capitalization in trace.json example (#477)
tigrannajaryan May 24, 2023
5acaae8
Remove trace_config from maturity matrix, already removed from repo (…
bogdandrutu May 24, 2023
fb7d735
Update CHANGELOG.md (#478)
tigrannajaryan May 30, 2023
40fdd4f
Fix zero_threshold changelog entry (#481)
jack-berg May 30, 2023
3e50ad1
[editorial] Drop or adjust Hugo front matter in doc pages (#479)
chalin Jun 1, 2023
861e80c
Clarify uniqueness of Scope attribute keys
tigrannajaryan May 29, 2023
2922d51
Update CHANGELOG.md after 0.20.0 release
tigrannajaryan Jun 6, 2023
3da81a0
[editorial] spec: escape HTML chars in markdown link syntax
chalin Jun 27, 2023
2f8fcb7
Add note about the possibility to have unstable components after 1.0.…
tigrannajaryan Jun 29, 2023
77eb66c
Add maturity JSON entry per package
bogdandrutu Jun 29, 2023
3140c9a
Update CHANGELOG.md for 1.0.0 release (#493)
tigrannajaryan Jul 5, 2023
dac4750
Fix EOF issue in metrics payload
ZaradarBH Jul 12, 2023
1dfe1f2
Update metrics.json
ZaradarBH Jul 12, 2023
53a41b4
[CI] Report link-check error when external URL used for local doc pag…
chalin Jul 19, 2023
e872e5d
add markdown linting to makefile and github actions (reference: #464)
jaydeluca Jul 4, 2023
298770c
fix linting errors from recent merge from main
jaydeluca Jul 13, 2023
184b13b
Add comment to explain schema_url fields
tigrannajaryan Aug 17, 2023
d0896dc
Add W3C-specified trace flags to v1 Span proto (#503)
jmacd Sep 14, 2023
6a900b3
Remove irrelevant comments from metric name field (#512)
tigrannajaryan Nov 7, 2023
33b5315
Fix the incorrect histogram example in metrics.json
songy23 Oct 27, 2023
5789a95
Update metrics.json
songy23 Oct 27, 2023
a2204db
fix: OTLP JSON examples (#516)
bripkens Jan 9, 2024
4c77d9f
Prepare release 1.1.0 (#523)
bogdandrutu Jan 11, 2024
409d242
Fix typo in requirements.md
arminru Jan 11, 2024
2379b7e
Add parent_span_is_remote to Span message
estolfo Jun 13, 2023
f5a9483
Use enum for ParentSpanIsRemote
estolfo Aug 15, 2023
b0d4dc4
Adjust enum name
estolfo Aug 15, 2023
36d0ea7
Add extra comment about unset value from older clients
estolfo Aug 15, 2023
82a1e80
Remove misleading documentation
estolfo Aug 22, 2023
1a7f3fc
Update names
estolfo Aug 22, 2023
502f6f0
Remove ParentSpanIsRemote attribute
estolfo Sep 18, 2023
616d9e6
Add defintion of 2 bit parent is remote flag
estolfo Sep 18, 2023
b1a97a0
Include enum for interpreting ParentIsRemote flag and update document…
estolfo Sep 19, 2023
29a2c1b
Add constants and enum for interpreting bits 8 and 9 of a Link's flags
estolfo Sep 27, 2023
cdeac48
One constant for link and parent is remote mask
estolfo Sep 27, 2023
2ef829d
Update opentelemetry/proto/trace/v1/trace.proto
estolfo Sep 27, 2023
27aa35d
Adjust flags documentation ordering
estolfo Sep 28, 2023
aa1eed3
Merge parent and link is remote enums into one
estolfo Sep 28, 2023
c293fa8
Update opentelemetry/proto/trace/v1/trace.proto
estolfo Oct 12, 2023
a962a42
Update opentelemetry/proto/trace/v1/trace.proto
estolfo Oct 12, 2023
9f90398
Update opentelemetry/proto/trace/v1/trace.proto
estolfo Oct 12, 2023
808654e
Update opentelemetry/proto/trace/v1/trace.proto
estolfo Oct 12, 2023
fca8d6d
Update opentelemetry/proto/trace/v1/trace.proto
estolfo Oct 12, 2023
b5e5544
Update opentelemetry/proto/trace/v1/trace.proto
estolfo Oct 12, 2023
df7a921
Change doc references to updated enum name
estolfo Oct 12, 2023
17f4fd8
Update opentelemetry/proto/trace/v1/trace.proto
estolfo Oct 16, 2023
978423b
Update opentelemetry/proto/trace/v1/trace.proto
estolfo Oct 16, 2023
261836e
Adjust formatting of comments
estolfo Oct 16, 2023
89a02d2
Update opentelemetry/proto/trace/v1/trace.proto
estolfo Oct 17, 2023
5199924
Remove enum, describe values in comment
estolfo Nov 28, 2023
a669f28
Split isremote into two masks
estolfo Jan 11, 2024
d1ba59d
Update references to isremote masks
estolfo Jan 11, 2024
c94b6f2
Update inconsistency in docs formatting
estolfo Jan 11, 2024
7b14333
Add Changelog entry
estolfo Jan 23, 2024
14e80e5
Clarify formulas for reading span flags (#528)
jack-berg Jan 30, 2024
27b5c20
Add metric.metadata for supporting additional metadata on metrics (#514)
dashpole Feb 2, 2024
74d749c
[editorial] Fix path base in Hugo front matter (#530)
chalin Feb 9, 2024
09ae9e6
Unset executable flag on Makefile (#541)
arminru Apr 2, 2024
80b6de5
Prepare Release 1.2.0 (#537)
carlosalberto Apr 5, 2024
1e3d778
Polish document content in README.md (#542)
steverao Apr 9, 2024
6424abb
Add new profile signal (#534)
petethepig Apr 23, 2024
5042723
Prepare v1.3.0 release (#549)
tigrannajaryan Apr 24, 2024
34b3e91
profiles: fix versioning in selector (#551)
florianl Apr 25, 2024
f665d61
generate profiles proto for CI (#552)
dmathieu Apr 25, 2024
3f46517
Revert "Remove deprecated messages and fields from metrics (#342)"
MikeGoldsmith May 24, 2023
3d31db9
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