Skip to content

Commit

Permalink
Update OTLP to 0.16.0
Browse files Browse the repository at this point in the history
Removed LogRecord.Name field (was deprecated earlier)
  • Loading branch information
tigrannajaryan committed Apr 1, 2022
1 parent d2e5601 commit ad27942
Show file tree
Hide file tree
Showing 6 changed files with 63 additions and 152 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ gendependabot: $(eval SHELL:=/bin/bash)
OPENTELEMETRY_PROTO_SRC_DIR=model/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
1 change: 0 additions & 1 deletion internal/otlptext/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ func (textLogsMarshaler) MarshalLogs(ld pdata.Logs) ([]byte, error) {
lr := logs.At(k)
buf.logEntry("Timestamp: %s", lr.Timestamp())
buf.logEntry("Severity: %s", lr.SeverityText())
buf.logEntry("ShortName: %s", lr.Name())
buf.logEntry("Body: %s", attributeValueToString(lr.Body()))
buf.logAttributes("Attributes", lr.Attributes())
buf.logEntry("Trace ID: %s", lr.TraceID().HexString())
Expand Down
8 changes: 0 additions & 8 deletions model/internal/cmd/pdatagen/internal/log_structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,14 +121,6 @@ var logRecord = &messageValueStruct{
defaultVal: `SeverityNumberUNDEFINED`,
testVal: `SeverityNumberINFO`,
},
&primitiveField{
extraComment: "Deprecated: [v0.48.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 model/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.

13 changes: 0 additions & 13 deletions model/internal/pdata/generated_log.go

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

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

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

0 comments on commit ad27942

Please sign in to comment.