Skip to content

Commit

Permalink
Update OTLP to 0.16.0 (open-telemetry#5202)
Browse files Browse the repository at this point in the history
* Update OTLP to 0.16.0

Removed LogRecord.Name field (was deprecated earlier)

* Update OTLP to 0.16.0

Removed LogRecord.Name field (was deprecated earlier).
  • Loading branch information
tigrannajaryan authored Apr 29, 2022
1 parent 2acc422 commit 4b811dc
Show file tree
Hide file tree
Showing 6 changed files with 64 additions and 153 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

- Remove deprecated model module, everything is available in `pdata` and `semconv`. (#5281)
- Old versions of the module are still available, but no new versions will be released.
- Remove deprecated LogRecord.Name field. (#5202)

### 🚩 Deprecations 🚩

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ gendependabot: $(eval SHELL:=/bin/bash)
OPENTELEMETRY_PROTO_SRC_DIR=pdata/internal/opentelemetry-proto

# The SHA matching the current version of the proto to use
OPENTELEMETRY_PROTO_VERSION=v0.15.0
OPENTELEMETRY_PROTO_VERSION=v0.16.0

# Find all .proto files.
OPENTELEMETRY_PROTO_FILES := $(subst $(OPENTELEMETRY_PROTO_SRC_DIR)/,,$(wildcard $(OPENTELEMETRY_PROTO_SRC_DIR)/opentelemetry/proto/*/v1/*.proto $(OPENTELEMETRY_PROTO_SRC_DIR)/opentelemetry/proto/collector/*/v1/*.proto))
Expand Down
8 changes: 0 additions & 8 deletions pdata/internal/cmd/pdatagen/internal/log_structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,14 +129,6 @@ var logRecord = &messageValueStruct{
defaultVal: `SeverityNumberUNDEFINED`,
testVal: `SeverityNumberINFO`,
},
&primitiveField{
extraComment: "Deprecated: [v0.50.0] it was removed from the data model.",
fieldName: "Name",
originFieldName: "Name",
returnType: "string",
defaultVal: `""`,
testVal: `"test_name"`,
},
bodyField,
attributes,
droppedAttributesCount,
Expand Down
182 changes: 62 additions & 120 deletions pdata/internal/data/protogen/logs/v1/logs.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 0 additions & 15 deletions pdata/internal/generated_plog.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 0 additions & 9 deletions pdata/internal/generated_plog_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4b811dc

Please sign in to comment.