Skip to content

Commit

Permalink
Updated goccy/go-yaml to v1.41.1
Browse files Browse the repository at this point in the history
  • Loading branch information
XuechunHou committed Nov 15, 2024
1 parent b595fdb commit a01e19a
Show file tree
Hide file tree
Showing 17 changed files with 65 additions and 69 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[15:1] unknown field "logs"
12 | # See the License for the specific language governing permissions and
[16:13] value is not allowed in this context
13 | # limitations under the License.
14 |
> 15 | logs:
^
16 | files: "b"c
15 | logs:
> 16 | files: "b"c
^
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[15:1] unknown field "logs"
12 | # See the License for the specific language governing permissions and
[16:13] value is not allowed in this context
13 | # limitations under the License.
14 |
> 15 | logs:
^
16 | files: "b"c
15 | logs:
> 16 | files: "b"c
^
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[15:1] unknown field "logs"
12 | # See the License for the specific language governing permissions and
[16:13] value is not allowed in this context
13 | # limitations under the License.
14 |
> 15 | logs:
^
16 | files: "b"c
15 | logs:
> 16 | files: "b"c
^
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[15:1] unknown field "logs"
12 | # See the License for the specific language governing permissions and
[16:13] value is not allowed in this context
13 | # limitations under the License.
14 |
> 15 | logs:
^
16 | files: "b"c
15 | logs:
> 16 | files: "b"c
^
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
19 | collection_interval: 60s
> 20 | endpoint: tcp://localhost:8080
^
22 |
23 | service:
24 | pipelines:
22 | service:
23 | pipelines:
24 | elasticsearch:
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
19 | collection_interval: 60s
> 20 | endpoint: tcp://localhost:8080
^
22 |
23 | service:
24 | pipelines:
22 | service:
23 | pipelines:
24 | elasticsearch:
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
19 | collection_interval: 60s
> 20 | endpoint: tcp://localhost:8080
^
22 |
23 | service:
24 | pipelines:
22 | service:
23 | pipelines:
24 | elasticsearch:
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
19 | collection_interval: 60s
> 20 | endpoint: tcp://localhost:8080
^
22 |
23 | service:
24 | pipelines:
22 | service:
23 | pipelines:
24 | elasticsearch:
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
19 | collection_interval: 60s
> 20 | endpoint: localhost:8080
^
22 |
23 | service:
24 | pipelines:
22 | service:
23 | pipelines:
24 | elasticsearch:
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
19 | collection_interval: 60s
> 20 | endpoint: localhost:8080
^
22 |
23 | service:
24 | pipelines:
22 | service:
23 | pipelines:
24 | elasticsearch:
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
19 | collection_interval: 60s
> 20 | endpoint: localhost:8080
^
22 |
23 | service:
24 | pipelines:
22 | service:
23 | pipelines:
24 | elasticsearch:
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
19 | collection_interval: 60s
> 20 | endpoint: localhost:8080
^
22 |
23 | service:
24 | pipelines:
22 | service:
23 | pipelines:
24 | elasticsearch:
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ require (
github.com/blang/semver v3.5.1+incompatible
github.com/cenkalti/backoff/v4 v4.3.0
github.com/go-playground/validator/v10 v10.11.1
github.com/goccy/go-yaml v1.11.2
github.com/goccy/go-yaml v1.14.1
github.com/google/go-cmp v0.6.0
github.com/google/uuid v1.6.0
github.com/googleapis/gax-go/v2 v2.13.0
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,8 @@ github.com/go-zookeeper/zk v1.0.3 h1:7M2kwOsc//9VeeFiPtf+uSJlVpU66x9Ba5+8XK7/TDg
github.com/go-zookeeper/zk v1.0.3/go.mod h1:nOB03cncLtlp4t+UAkGSV+9beXP/akpekBwL+UX1Qcw=
github.com/goccy/go-yaml v1.11.2 h1:joq77SxuyIs9zzxEjgyLBugMQ9NEgTWxXfz2wVqwAaQ=
github.com/goccy/go-yaml v1.11.2/go.mod h1:wKnAMd44+9JAAnGQpWVEgBzGt3YuTaQ4uXoHvE4m7WU=
github.com/goccy/go-yaml v1.14.1 h1:NJ9Ch49K/WichY7pAtSvIJbvGjmBDjHVQxuWBbPSOPg=
github.com/goccy/go-yaml v1.14.1/go.mod h1:XBurs7gK8ATbW4ZPGKgcbrY1Br56PdM69F7LkFRi1kA=
github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ=
github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q=
github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q=
Expand Down
2 changes: 1 addition & 1 deletion integration_test/metadata/integration_metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func UnmarshalAndValidate(fullPath string, data []byte, i interface{}) error {
v := NewIntegrationMetadataValidator()
// Note: Unmarshaler does not protect when only the key being declared.
// https://github.com/goccy/go-yaml/issues/313
if err := yaml.UnmarshalWithOptions(data, i, yaml.DisallowUnknownField(), yaml.DisallowDuplicateKey(), yaml.Validator(v)); err != nil {
if err := yaml.UnmarshalWithOptions(data, i, yaml.DisallowUnknownField(), yaml.Validator(v)); err != nil {
return fmt.Errorf("%s%w", fullPath, err)
}
return nil
Expand Down
Original file line number Diff line number Diff line change
@@ -1,47 +1,45 @@
- collector_errors:
- caller: internal/base_exporter.go:130
- caller: exporterhelper/common.go:296
error: "could not process attribute gcp.source_location: json: cannot unmarshal string into Go struct field LogEntrySourceLocation.line of type int64"
level: error
msg: Exporting failed. Rejecting data. Try enabling sending_queue to survive temporary failures.
rejected_items: 1.0
stacktrace: |-
go.opentelemetry.io/collector/exporter/exporterhelper/internal.(*BaseExporter).Send
go.opentelemetry.io/collector/exporter@v0.112.0/exporterhelper/internal/base_exporter.go:130
go.opentelemetry.io/collector/exporter/exporterhelper.NewLogsRequest.func1
go.opentelemetry.io/collector/exporter@v0.112.0/exporterhelper/logs.go:138
go.opentelemetry.io/collector/exporter/exporterhelper.(*baseExporter).send
go.opentelemetry.io/collector/exporter@v0.102.0/exporterhelper/common.go:296
go.opentelemetry.io/collector/exporter/exporterhelper.NewLogsRequestExporter.func1
go.opentelemetry.io/collector/exporter@v0.102.0/exporterhelper/logs.go:134
go.opentelemetry.io/collector/consumer.ConsumeLogsFunc.ConsumeLogs
go.opentelemetry.io/collector/[email protected]/logs.go:26
go.opentelemetry.io/collector/internal/fanoutconsumer.(*logsConsumer).ConsumeLogs
go.opentelemetry.io/[email protected]/internal/fanoutconsumer/logs.go:62
go.opentelemetry.io/collector/processor/processorhelper.NewLogs.func1
go.opentelemetry.io/collector/[email protected]/processorhelper/logs.go:66
go.opentelemetry.io/collector/[email protected]/logs.go:25
go.opentelemetry.io/collector/processor/processorhelper.NewLogsProcessor.func1
go.opentelemetry.io/collector/[email protected]/processorhelper/logs.go:56
go.opentelemetry.io/collector/consumer.ConsumeLogsFunc.ConsumeLogs
go.opentelemetry.io/collector/consumer@v0.112.0/logs.go:26
go.opentelemetry.io/collector/processor/processorhelper.NewLogs.func1
go.opentelemetry.io/collector/processor@v0.112.0/processorhelper/logs.go:66
go.opentelemetry.io/collector/consumer@v0.102.1/logs.go:25
go.opentelemetry.io/collector/processor/processorhelper.NewLogsProcessor.func1
go.opentelemetry.io/collector/processor@v0.102.0/processorhelper/logs.go:56
go.opentelemetry.io/collector/consumer.ConsumeLogsFunc.ConsumeLogs
go.opentelemetry.io/collector/consumer@v0.112.0/logs.go:26
go.opentelemetry.io/collector/consumer@v0.102.1/logs.go:25
go.opentelemetry.io/collector/consumer.ConsumeLogsFunc.ConsumeLogs
go.opentelemetry.io/collector/consumer@v0.112.0/logs.go:26
go.opentelemetry.io/collector/consumer@v0.102.1/logs.go:25
go.opentelemetry.io/collector/internal/fanoutconsumer.(*logsConsumer).ConsumeLogs
go.opentelemetry.io/collector@v0.112.0/internal/fanoutconsumer/logs.go:62
go.opentelemetry.io/collector@v0.102.1/internal/fanoutconsumer/logs.go:62
github.com/open-telemetry/opentelemetry-collector-contrib/internal/coreinternal/consumerretry.(*logsConsumer).ConsumeLogs
github.com/open-telemetry/opentelemetry-collector-contrib/internal/coreinternal@v0.112.0/consumerretry/logs.go:37
github.com/open-telemetry/opentelemetry-collector-contrib/internal/coreinternal@v0.102.0/consumerretry/logs.go:37
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/stanza/adapter.(*receiver).consumerLoop
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/stanza@v0.112.0/adapter/receiver.go:110
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/stanza@v0.102.0/adapter/receiver.go:126
- caller: consumerretry/logs.go:39
error: "could not process attribute gcp.source_location: json: cannot unmarshal string into Go struct field LogEntrySourceLocation.line of type int64"
level: error
msg: ConsumeLogs() failed. Enable retry_on_failure to slow down reading logs and avoid dropping.
stacktrace: |-
github.com/open-telemetry/opentelemetry-collector-contrib/internal/coreinternal/consumerretry.(*logsConsumer).ConsumeLogs
github.com/open-telemetry/opentelemetry-collector-contrib/internal/coreinternal@v0.112.0/consumerretry/logs.go:39
github.com/open-telemetry/opentelemetry-collector-contrib/internal/coreinternal@v0.102.0/consumerretry/logs.go:39
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/stanza/adapter.(*receiver).consumerLoop
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/stanza@v0.112.0/adapter/receiver.go:110
- caller: adapter/receiver.go:112
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/stanza@v0.102.0/adapter/receiver.go:126
- caller: adapter/receiver.go:128
error: "could not process attribute gcp.source_location: json: cannot unmarshal string into Go struct field LogEntrySourceLocation.line of type int64"
level: error
msg: ConsumeLogs() failed
stacktrace: |-
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/stanza/adapter.(*receiver).consumerLoop
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/stanza@v0.112.0/adapter/receiver.go:112
github.com/open-telemetry/opentelemetry-collector-contrib/pkg/stanza@v0.102.0/adapter/receiver.go:128
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
timestamp: now
partialSuccess: true
- collector_errors:
- caller: ottl@v0.112.0/parser.go:292
- caller: ottl@v0.102.0/parser.go:273
error: "parsing time \"unparsable time\" as \"2006-01-02T15:04\": cannot parse \"unparsable time\" as \"2006\""
level: warn
msg: failed to execute statement
Expand Down

0 comments on commit a01e19a

Please sign in to comment.