diff options
| author | dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> | 2023-07-21 10:47:36 +0000 |
|---|---|---|
| committer | Taras Madan <tarasmadan@google.com> | 2023-07-24 06:22:17 +0000 |
| commit | 68162649cfb33009e4bbd0c7c5ca0dd17e375bff (patch) | |
| tree | 2f426fda07d4a26c21911b5b0f897b7099102198 | |
| parent | 27cbe77f4f2a8de98c3d540ef77796263555fe6b (diff) | |
mod: do: bump cloud.google.com/go/logging from 1.6.1 to 1.7.0
Bumps [cloud.google.com/go/logging](https://github.com/googleapis/google-cloud-go) from 1.6.1 to 1.7.0.
- [Release notes](https://github.com/googleapis/google-cloud-go/releases)
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/documentai/CHANGES.md)
- [Commits](https://github.com/googleapis/google-cloud-go/compare/iot/v1.6.1...dlp/v1.7.0)
---
updated-dependencies:
- dependency-name: cloud.google.com/go/logging
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
18 files changed, 81 insertions, 582 deletions
@@ -3,7 +3,7 @@ module github.com/google/syzkaller go 1.19 require ( - cloud.google.com/go/logging v1.6.1 + cloud.google.com/go/logging v1.7.0 cloud.google.com/go/profiler v0.3.1 cloud.google.com/go/pubsub v1.28.0 cloud.google.com/go/secretmanager v1.10.0 @@ -24,7 +24,7 @@ require ( golang.org/x/tools v0.9.3 google.golang.org/api v0.110.0 google.golang.org/appengine/v2 v2.0.2 - google.golang.org/genproto v0.0.0-20230221151758-ace64dc21148 + google.golang.org/genproto v0.0.0-20230222225845-10f96fb3dbec gopkg.in/yaml.v3 v3.0.1 ) @@ -39,8 +39,8 @@ cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1 cloud.google.com/go/iam v0.12.0 h1:DRtTY29b75ciH6Ov1PHb4/iat2CLCvrOm40Q0a6DFpE= cloud.google.com/go/iam v0.12.0/go.mod h1:knyHGviacl11zrtZUoDuYpDgLjvr28sLQaG0YB2GYAY= cloud.google.com/go/kms v1.6.0 h1:OWRZzrPmOZUzurjI2FBGtgY2mB1WaJkqhw6oIwSj0Yg= -cloud.google.com/go/logging v1.6.1 h1:ZBsZK+JG+oCDT+vaxwqF2egKNRjz8soXiS6Xv79benI= -cloud.google.com/go/logging v1.6.1/go.mod h1:5ZO0mHHbvm8gEmeEUHrmDlTDSu5imF6MUP9OfilNXBw= +cloud.google.com/go/logging v1.7.0 h1:CJYxlNNNNAMkHp9em/YEXcfJg+rPDg7YfwoRpMU+t5I= +cloud.google.com/go/logging v1.7.0/go.mod h1:3xjP2CjkM3ZkO73aj4ASA5wRPGGCRrPIAeNqVNkzY8M= cloud.google.com/go/longrunning v0.4.1 h1:v+yFJOfKC3yZdY6ZUI933pIYdhyhV8S3NpWrXWmg7jM= cloud.google.com/go/longrunning v0.4.1/go.mod h1:4iWDqhBZ70CvZ6BfETbvam3T8FMvLK+eFj0E6AaRQTo= cloud.google.com/go/profiler v0.3.1 h1:b5got9Be9Ia0HVvyt7PavWxXEht15B9lWnigdvHtxOc= @@ -1044,8 +1044,8 @@ google.golang.org/genproto v0.0.0-20201210142538-e3217bee35cc/go.mod h1:FWY/as6D google.golang.org/genproto v0.0.0-20201214200347-8c77b98c765d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20210108203827-ffc7fda8c3d7/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= google.golang.org/genproto v0.0.0-20210226172003-ab064af71705/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20230221151758-ace64dc21148 h1:muK+gVBJBfFb4SejshDBlN2/UgxCCOKH9Y34ljqEGOc= -google.golang.org/genproto v0.0.0-20230221151758-ace64dc21148/go.mod h1:3Dl5ZL0q0isWJt+FVcfpQyirqemEuLAK/iFvg1UP1Hw= +google.golang.org/genproto v0.0.0-20230222225845-10f96fb3dbec h1:6rwgChOSUfpzJF2/KnLgo+gMaxGpujStSkPWrbhXArU= +google.golang.org/genproto v0.0.0-20230222225845-10f96fb3dbec/go.mod h1:3Dl5ZL0q0isWJt+FVcfpQyirqemEuLAK/iFvg1UP1Hw= google.golang.org/grpc v0.0.0-20170208002647-2a6bf6142e96/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= diff --git a/vendor/cloud.google.com/go/logging/CHANGES.md b/vendor/cloud.google.com/go/logging/CHANGES.md index c62dd3cc7..a5c037c1c 100644 --- a/vendor/cloud.google.com/go/logging/CHANGES.md +++ b/vendor/cloud.google.com/go/logging/CHANGES.md @@ -1,5 +1,20 @@ # Changes +## [1.7.0](https://github.com/googleapis/google-cloud-go/compare/logging/v1.6.1...logging/v1.7.0) (2023-02-27) + + +### Features + +* **logging:** Add (*Logger). StandardLoggerFromTemplate() method. ([#7261](https://github.com/googleapis/google-cloud-go/issues/7261)) ([533ecbb](https://github.com/googleapis/google-cloud-go/commit/533ecbb19a2833e667ad139a6604fd40dfb43cdc)) +* **logging:** Add REST client ([06a54a1](https://github.com/googleapis/google-cloud-go/commit/06a54a16a5866cce966547c51e203b9e09a25bc0)) +* **logging:** Rewrite signatures and type in terms of new location ([620e6d8](https://github.com/googleapis/google-cloud-go/commit/620e6d828ad8641663ae351bfccfe46281e817ad)) + + +### Bug Fixes + +* **logging:** Correctly populate SourceLocation when logging via (*Logger).StandardLogger ([#7320](https://github.com/googleapis/google-cloud-go/issues/7320)) ([1a0bd13](https://github.com/googleapis/google-cloud-go/commit/1a0bd13b88569826f4ee6528e9cdb59fd26914fa)) +* **logging:** Fix typo in README.md ([#7297](https://github.com/googleapis/google-cloud-go/issues/7297)) ([82aa2ee](https://github.com/googleapis/google-cloud-go/commit/82aa2ee9381f793bd731f1b6789fc18e4b671bd7)) + ## [1.6.1](https://github.com/googleapis/google-cloud-go/compare/logging/v1.6.0...logging/v1.6.1) (2022-12-02) diff --git a/vendor/cloud.google.com/go/logging/README.md b/vendor/cloud.google.com/go/logging/README.md index 0de922f51..d1fb9ec28 100644 --- a/vendor/cloud.google.com/go/logging/README.md +++ b/vendor/cloud.google.com/go/logging/README.md @@ -60,6 +60,6 @@ Creating a Logger using `logging.Logger` accept configuration [LoggerOption](log | EntryByteLimit | `int` | Maximum size in bytes of the single write call to ingest log entries. If EntryByteLimit is smaller than EntryByteThreshold, the latter has no effect. The default is zero, meaning there is no limit. | | BufferedByteLimit | `int` | Maximum number of bytes that the Logger will keep in memory before returning ErrOverflow. This option limits the total memory consumption of the Logger (but note that each Logger has its own, separate limit). It is possible to reach BufferedByteLimit even if it is larger than EntryByteThreshold or EntryByteLimit, because calls triggered by the latter two options may be enqueued (and hence occupying memory) while new log entries are being added. | | ContextFunc | `func() (ctx context.Context, afterCall func())` | Callback function to be called to obtain `context.Context` during async log ingestion. | -| SourceLocationPopulation | One of `logging.DoNotPopulateSourceLocation`, `logging.PopulateSourceLocationForDebugEntries` or `logging.AlwaysPopulateSourceLocation` | Controls auto-population of the logging.Entry.SoourceLocation field when ingesting log entries. Allows to disable population of source location info, allowing it only for log entries at Debug severity or enable it for all log entries. Enabling it for all entries may result in degradation in performance. Use `logging_test.BenchmarkSourceLocationPopulation` to test performance with and without the option. The default is set to `logging.DoNotPopulateSourceLocation`. | +| SourceLocationPopulation | One of `logging.DoNotPopulateSourceLocation`, `logging.PopulateSourceLocationForDebugEntries` or `logging.AlwaysPopulateSourceLocation` | Controls auto-population of the logging.Entry.SourceLocation field when ingesting log entries. Allows to disable population of source location info, allowing it only for log entries at Debug severity or enable it for all log entries. Enabling it for all entries may result in degradation in performance. Use `logging_test.BenchmarkSourceLocationPopulation` to test performance with and without the option. The default is set to `logging.DoNotPopulateSourceLocation`. | | PartialSuccess | | Make each write call to Logging service with [partialSuccess flag](https://cloud.google.com/logging/docs/reference/v2/rest/v2/entries/write#body.request_body.FIELDS.partial_success) set. The default is to make calls without setting the flag. | | RedirectAsJSON | `io.Writer` | Converts log entries to Jsonified one line string according to the [structured logging format](https://cloud.google.com/logging/docs/structured-logging#special-payload-fields) and writes it to provided `io.Writer`. Users should use this option with `os.Stdout` and `os.Stderr` to leverage the out-of-process ingestion of logs using logging agents that are deployed in Cloud Logging environments. | diff --git a/vendor/cloud.google.com/go/logging/apiv2/config_client.go b/vendor/cloud.google.com/go/logging/apiv2/config_client.go index 14161ebda..64072dabf 100644 --- a/vendor/cloud.google.com/go/logging/apiv2/config_client.go +++ b/vendor/cloud.google.com/go/logging/apiv2/config_client.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -23,6 +23,7 @@ import ( "net/url" "time" + loggingpb "cloud.google.com/go/logging/apiv2/loggingpb" "cloud.google.com/go/longrunning" lroauto "cloud.google.com/go/longrunning/autogen" gax "github.com/googleapis/gax-go/v2" @@ -30,7 +31,6 @@ import ( "google.golang.org/api/option" "google.golang.org/api/option/internaloption" gtransport "google.golang.org/api/transport/grpc" - loggingpb "google.golang.org/genproto/googleapis/logging/v2" longrunningpb "google.golang.org/genproto/googleapis/longrunning" "google.golang.org/grpc" "google.golang.org/grpc/codes" diff --git a/vendor/cloud.google.com/go/logging/apiv2/doc.go b/vendor/cloud.google.com/go/logging/apiv2/doc.go index f748605c4..033fe01b0 100644 --- a/vendor/cloud.google.com/go/logging/apiv2/doc.go +++ b/vendor/cloud.google.com/go/logging/apiv2/doc.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -19,6 +19,11 @@ // // Writes log entries and manages your Cloud Logging configuration. // +// # General documentation +// +// For information about setting deadlines, reusing contexts, and more +// please visit https://pkg.go.dev/cloud.google.com/go. +// // # Example usage // // To get started with this package, create a client. @@ -57,7 +62,7 @@ // // req := &loggingpb.DeleteLogRequest{ // // TODO: Fill request struct fields. -// // See https://pkg.go.dev/google.golang.org/genproto/googleapis/logging/v2#DeleteLogRequest. +// // See https://pkg.go.dev/cloud.google.com/go/logging/apiv2/loggingpb#DeleteLogRequest. // } // err = c.DeleteLog(ctx, req) // if err != nil { @@ -71,9 +76,6 @@ // Individual methods on the client use the ctx given to them. // // To close the open connection, use the Close() method. -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. package logging // import "cloud.google.com/go/logging/apiv2" import ( diff --git a/vendor/cloud.google.com/go/logging/apiv2/logging_client.go b/vendor/cloud.google.com/go/logging/apiv2/logging_client.go index fe67949ea..d05aa0b95 100644 --- a/vendor/cloud.google.com/go/logging/apiv2/logging_client.go +++ b/vendor/cloud.google.com/go/logging/apiv2/logging_client.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -23,13 +23,13 @@ import ( "net/url" "time" + loggingpb "cloud.google.com/go/logging/apiv2/loggingpb" gax "github.com/googleapis/gax-go/v2" "google.golang.org/api/iterator" "google.golang.org/api/option" "google.golang.org/api/option/internaloption" gtransport "google.golang.org/api/transport/grpc" monitoredrespb "google.golang.org/genproto/googleapis/api/monitoredres" - loggingpb "google.golang.org/genproto/googleapis/logging/v2" "google.golang.org/grpc" "google.golang.org/grpc/codes" "google.golang.org/grpc/metadata" diff --git a/vendor/cloud.google.com/go/logging/apiv2/metrics_client.go b/vendor/cloud.google.com/go/logging/apiv2/metrics_client.go index ae5b6d426..79fcde1f9 100644 --- a/vendor/cloud.google.com/go/logging/apiv2/metrics_client.go +++ b/vendor/cloud.google.com/go/logging/apiv2/metrics_client.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -23,12 +23,12 @@ import ( "net/url" "time" + loggingpb "cloud.google.com/go/logging/apiv2/loggingpb" gax "github.com/googleapis/gax-go/v2" "google.golang.org/api/iterator" "google.golang.org/api/option" "google.golang.org/api/option/internaloption" gtransport "google.golang.org/api/transport/grpc" - loggingpb "google.golang.org/genproto/googleapis/logging/v2" "google.golang.org/grpc" "google.golang.org/grpc/codes" "google.golang.org/grpc/metadata" diff --git a/vendor/cloud.google.com/go/logging/apiv2/version.go b/vendor/cloud.google.com/go/logging/apiv2/version.go index 2de6c5463..da2bceec5 100644 --- a/vendor/cloud.google.com/go/logging/apiv2/version.go +++ b/vendor/cloud.google.com/go/logging/apiv2/version.go @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/vendor/cloud.google.com/go/logging/instrumentation.go b/vendor/cloud.google.com/go/logging/instrumentation.go index a377d5ccc..b8822e6d1 100644 --- a/vendor/cloud.google.com/go/logging/instrumentation.go +++ b/vendor/cloud.google.com/go/logging/instrumentation.go @@ -17,8 +17,8 @@ package logging import ( "strings" + logpb "cloud.google.com/go/logging/apiv2/loggingpb" "cloud.google.com/go/logging/internal" - logpb "google.golang.org/genproto/googleapis/logging/v2" ) const diagnosticLogID = "diagnostic-log" diff --git a/vendor/cloud.google.com/go/logging/internal/version.go b/vendor/cloud.google.com/go/logging/internal/version.go index b819fa786..7c251d994 100644 --- a/vendor/cloud.google.com/go/logging/internal/version.go +++ b/vendor/cloud.google.com/go/logging/internal/version.go @@ -15,4 +15,4 @@ package internal // Version is the current tagged release of the library. -const Version = "1.6.1" +const Version = "1.7.0" diff --git a/vendor/cloud.google.com/go/logging/logadmin/logadmin.go b/vendor/cloud.google.com/go/logging/logadmin/logadmin.go index 8753d8418..1ec2b4c22 100644 --- a/vendor/cloud.google.com/go/logging/logadmin/logadmin.go +++ b/vendor/cloud.google.com/go/logging/logadmin/logadmin.go @@ -35,6 +35,7 @@ import ( "cloud.google.com/go/logging" vkit "cloud.google.com/go/logging/apiv2" + logpb "cloud.google.com/go/logging/apiv2/loggingpb" "cloud.google.com/go/logging/internal" "github.com/golang/protobuf/ptypes" gax "github.com/googleapis/gax-go/v2" @@ -43,7 +44,6 @@ import ( _ "google.golang.org/genproto/googleapis/appengine/logging/v1" // Import the following so EntryIterator can unmarshal log protos. _ "google.golang.org/genproto/googleapis/cloud/audit" logtypepb "google.golang.org/genproto/googleapis/logging/type" - logpb "google.golang.org/genproto/googleapis/logging/v2" "google.golang.org/grpc/codes" ) diff --git a/vendor/cloud.google.com/go/logging/logadmin/metrics.go b/vendor/cloud.google.com/go/logging/logadmin/metrics.go index c6da68416..3db10d748 100644 --- a/vendor/cloud.google.com/go/logging/logadmin/metrics.go +++ b/vendor/cloud.google.com/go/logging/logadmin/metrics.go @@ -19,8 +19,8 @@ import ( "fmt" vkit "cloud.google.com/go/logging/apiv2" + logpb "cloud.google.com/go/logging/apiv2/loggingpb" "google.golang.org/api/iterator" - logpb "google.golang.org/genproto/googleapis/logging/v2" ) // Metric describes a logs-based metric. The value of the metric is the diff --git a/vendor/cloud.google.com/go/logging/logadmin/resources.go b/vendor/cloud.google.com/go/logging/logadmin/resources.go index 924dee1ad..7f153d21d 100644 --- a/vendor/cloud.google.com/go/logging/logadmin/resources.go +++ b/vendor/cloud.google.com/go/logging/logadmin/resources.go @@ -18,9 +18,9 @@ import ( "context" vkit "cloud.google.com/go/logging/apiv2" + logpb "cloud.google.com/go/logging/apiv2/loggingpb" "google.golang.org/api/iterator" mrpb "google.golang.org/genproto/googleapis/api/monitoredres" - logpb "google.golang.org/genproto/googleapis/logging/v2" ) // ResourceDescriptors returns a ResourceDescriptorIterator diff --git a/vendor/cloud.google.com/go/logging/logadmin/sinks.go b/vendor/cloud.google.com/go/logging/logadmin/sinks.go index c7d7a6bc7..0ce310654 100644 --- a/vendor/cloud.google.com/go/logging/logadmin/sinks.go +++ b/vendor/cloud.google.com/go/logging/logadmin/sinks.go @@ -20,8 +20,8 @@ import ( "fmt" vkit "cloud.google.com/go/logging/apiv2" + logpb "cloud.google.com/go/logging/apiv2/loggingpb" "google.golang.org/api/iterator" - logpb "google.golang.org/genproto/googleapis/logging/v2" maskpb "google.golang.org/genproto/protobuf/field_mask" ) diff --git a/vendor/cloud.google.com/go/logging/logging.go b/vendor/cloud.google.com/go/logging/logging.go index 7b7176ae1..0763640a1 100644 --- a/vendor/cloud.google.com/go/logging/logging.go +++ b/vendor/cloud.google.com/go/logging/logging.go @@ -42,6 +42,7 @@ import ( "unicode/utf8" vkit "cloud.google.com/go/logging/apiv2" + logpb "cloud.google.com/go/logging/apiv2/loggingpb" "cloud.google.com/go/logging/internal" "github.com/golang/protobuf/proto" "github.com/golang/protobuf/ptypes" @@ -50,7 +51,6 @@ import ( "google.golang.org/api/support/bundler" mrpb "google.golang.org/genproto/googleapis/api/monitoredres" logtypepb "google.golang.org/genproto/googleapis/logging/type" - logpb "google.golang.org/genproto/googleapis/logging/v2" "google.golang.org/protobuf/types/known/anypb" "google.golang.org/protobuf/types/known/timestamppb" ) @@ -96,7 +96,8 @@ var ( ErrRedirectProtoPayloadNotSupported = errors.New("printEntryToStdout: cannot find valid payload") // For testing: - now = time.Now + now = time.Now + toLogEntryInternal = toLogEntryInternalImpl // ErrOverflow signals that the number of buffered entries for a Logger // exceeds its BufferLimit. @@ -287,7 +288,8 @@ func (c *Client) Logger(logID string, opts ...LoggerOption) *Logger { } l.stdLoggers = map[Severity]*log.Logger{} for s := range severityName { - l.stdLoggers[s] = log.New(severityWriter{l, s}, "", 0) + e := Entry{Severity: s} + l.stdLoggers[s] = log.New(templateEntryWriter{l, &e}, "", 0) } c.loggers.Add(1) @@ -301,16 +303,20 @@ func (c *Client) Logger(logID string, opts ...LoggerOption) *Logger { return l } -type severityWriter struct { - l *Logger - s Severity +type templateEntryWriter struct { + l *Logger + template *Entry } -func (w severityWriter) Write(p []byte) (n int, err error) { - w.l.Log(Entry{ - Severity: w.s, - Payload: string(p), - }) +func (w templateEntryWriter) Write(p []byte) (n int, err error) { + e := *w.template + e.Payload = string(p) + // The second argument to logInternal() is how many frames to skip + // from the call stack when determining the source location. In the + // current implementation of log.Logger (i.e. Go's logging library) + // the Write() method is called 2 calls deep so we need to skip 3 + // frames to account for the call to logInternal() itself. + w.l.logInternal(e, 3) return len(p), nil } @@ -656,7 +662,11 @@ func (l *Logger) LogSync(ctx context.Context, e Entry) error { // Log buffers the Entry for output to the logging service. It never blocks. func (l *Logger) Log(e Entry) { - ent, err := toLogEntryInternal(e, l, l.client.parent, 1) + l.logInternal(e, 1) +} + +func (l *Logger) logInternal(e Entry, skipLevels int) { + ent, err := toLogEntryInternal(e, l, l.client.parent, skipLevels+1) if err != nil { l.client.error(err) return @@ -721,6 +731,20 @@ func (l *Logger) writeLogEntries(entries []*logpb.LogEntry) { // (for example by calling SetFlags or SetPrefix). func (l *Logger) StandardLogger(s Severity) *log.Logger { return l.stdLoggers[s] } +// StandardLoggerFromTemplate returns a Go Standard Logging API *log.Logger. +// +// The returned logger emits logs using logging.(*Logger).Log() with an entry +// constructed from the provided template Entry struct. +// +// The caller is responsible for ensuring that the template Entry struct +// does not change during the the lifetime of the returned *log.Logger. +// +// Prefer (*Logger).StandardLogger() which is more efficient if the template +// only sets Severity. +func (l *Logger) StandardLoggerFromTemplate(template *Entry) *log.Logger { + return log.New(templateEntryWriter{l, template}, "", 0) +} + func populateTraceInfo(e *Entry, req *http.Request) bool { if req == nil { if e.HTTPRequest != nil && e.HTTPRequest.Request != nil { @@ -834,7 +858,7 @@ func (l *Logger) ToLogEntry(e Entry, parent string) (*logpb.LogEntry, error) { return toLogEntryInternal(e, l, parent, 1) } -func toLogEntryInternal(e Entry, l *Logger, parent string, skipLevels int) (*logpb.LogEntry, error) { +func toLogEntryInternalImpl(e Entry, l *Logger, parent string, skipLevels int) (*logpb.LogEntry, error) { if e.LogName != "" { return nil, errors.New("logging: Entry.LogName should be not be set when writing") } diff --git a/vendor/google.golang.org/genproto/googleapis/logging/v2/alias.go b/vendor/google.golang.org/genproto/googleapis/logging/v2/alias.go deleted file mode 100644 index 859e33774..000000000 --- a/vendor/google.golang.org/genproto/googleapis/logging/v2/alias.go +++ /dev/null @@ -1,541 +0,0 @@ -// Copyright 2022 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Code generated by aliasgen. DO NOT EDIT. - -// Package logging aliases all exported identifiers in package -// "cloud.google.com/go/logging/apiv2/loggingpb". -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb. -// Please read https://github.com/googleapis/google-cloud-go/blob/main/migration.md -// for more details. -package logging - -import ( - src "cloud.google.com/go/logging/apiv2/loggingpb" - grpc "google.golang.org/grpc" -) - -// Deprecated: Please use consts in: cloud.google.com/go/logging/apiv2/loggingpb -const ( - LifecycleState_ACTIVE = src.LifecycleState_ACTIVE - LifecycleState_DELETE_REQUESTED = src.LifecycleState_DELETE_REQUESTED - LifecycleState_LIFECYCLE_STATE_UNSPECIFIED = src.LifecycleState_LIFECYCLE_STATE_UNSPECIFIED - LogMetric_V1 = src.LogMetric_V1 - LogMetric_V2 = src.LogMetric_V2 - LogSink_V1 = src.LogSink_V1 - LogSink_V2 = src.LogSink_V2 - LogSink_VERSION_FORMAT_UNSPECIFIED = src.LogSink_VERSION_FORMAT_UNSPECIFIED - OperationState_OPERATION_STATE_CANCELLED = src.OperationState_OPERATION_STATE_CANCELLED - OperationState_OPERATION_STATE_FAILED = src.OperationState_OPERATION_STATE_FAILED - OperationState_OPERATION_STATE_RUNNING = src.OperationState_OPERATION_STATE_RUNNING - OperationState_OPERATION_STATE_SCHEDULED = src.OperationState_OPERATION_STATE_SCHEDULED - OperationState_OPERATION_STATE_SUCCEEDED = src.OperationState_OPERATION_STATE_SUCCEEDED - OperationState_OPERATION_STATE_UNSPECIFIED = src.OperationState_OPERATION_STATE_UNSPECIFIED - OperationState_OPERATION_STATE_WAITING_FOR_PERMISSIONS = src.OperationState_OPERATION_STATE_WAITING_FOR_PERMISSIONS - TailLogEntriesResponse_SuppressionInfo_NOT_CONSUMED = src.TailLogEntriesResponse_SuppressionInfo_NOT_CONSUMED - TailLogEntriesResponse_SuppressionInfo_RATE_LIMIT = src.TailLogEntriesResponse_SuppressionInfo_RATE_LIMIT - TailLogEntriesResponse_SuppressionInfo_REASON_UNSPECIFIED = src.TailLogEntriesResponse_SuppressionInfo_REASON_UNSPECIFIED -) - -// Deprecated: Please use vars in: cloud.google.com/go/logging/apiv2/loggingpb -var ( - File_google_logging_v2_log_entry_proto = src.File_google_logging_v2_log_entry_proto - File_google_logging_v2_logging_config_proto = src.File_google_logging_v2_logging_config_proto - File_google_logging_v2_logging_metrics_proto = src.File_google_logging_v2_logging_metrics_proto - File_google_logging_v2_logging_proto = src.File_google_logging_v2_logging_proto - LifecycleState_name = src.LifecycleState_name - LifecycleState_value = src.LifecycleState_value - LogMetric_ApiVersion_name = src.LogMetric_ApiVersion_name - LogMetric_ApiVersion_value = src.LogMetric_ApiVersion_value - LogSink_VersionFormat_name = src.LogSink_VersionFormat_name - LogSink_VersionFormat_value = src.LogSink_VersionFormat_value - OperationState_name = src.OperationState_name - OperationState_value = src.OperationState_value - TailLogEntriesResponse_SuppressionInfo_Reason_name = src.TailLogEntriesResponse_SuppressionInfo_Reason_name - TailLogEntriesResponse_SuppressionInfo_Reason_value = src.TailLogEntriesResponse_SuppressionInfo_Reason_value -) - -// Options that change functionality of a sink exporting data to BigQuery. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type BigQueryOptions = src.BigQueryOptions - -// Describes the customer-managed encryption key (CMEK) settings associated -// with a project, folder, organization, billing account, or flexible resource. -// Note: CMEK for the Log Router can currently only be configured for Google -// Cloud organizations. Once configured, it applies to all projects and folders -// in the Google Cloud organization. See [Enabling CMEK for Log -// Router](https://cloud.google.com/logging/docs/routing/managed-encryption) -// for more information. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type CmekSettings = src.CmekSettings - -// ConfigServiceV2Client is the client API for ConfigServiceV2 service. For -// semantics around ctx use and closing/ending streaming RPCs, please refer to -// https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type ConfigServiceV2Client = src.ConfigServiceV2Client - -// ConfigServiceV2Server is the server API for ConfigServiceV2 service. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type ConfigServiceV2Server = src.ConfigServiceV2Server - -// Metadata for CopyLogEntries long running operations. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type CopyLogEntriesMetadata = src.CopyLogEntriesMetadata - -// The parameters to CopyLogEntries. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type CopyLogEntriesRequest = src.CopyLogEntriesRequest - -// Response type for CopyLogEntries long running operations. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type CopyLogEntriesResponse = src.CopyLogEntriesResponse - -// The parameters to `CreateBucket`. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type CreateBucketRequest = src.CreateBucketRequest - -// The parameters to `CreateExclusion`. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type CreateExclusionRequest = src.CreateExclusionRequest - -// The parameters to CreateLogMetric. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type CreateLogMetricRequest = src.CreateLogMetricRequest - -// The parameters to `CreateSink`. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type CreateSinkRequest = src.CreateSinkRequest - -// The parameters to `CreateView`. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type CreateViewRequest = src.CreateViewRequest - -// The parameters to `DeleteBucket`. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type DeleteBucketRequest = src.DeleteBucketRequest - -// The parameters to `DeleteExclusion`. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type DeleteExclusionRequest = src.DeleteExclusionRequest - -// The parameters to DeleteLogMetric. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type DeleteLogMetricRequest = src.DeleteLogMetricRequest - -// The parameters to DeleteLog. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type DeleteLogRequest = src.DeleteLogRequest - -// The parameters to `DeleteSink`. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type DeleteSinkRequest = src.DeleteSinkRequest - -// The parameters to `DeleteView`. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type DeleteViewRequest = src.DeleteViewRequest - -// The parameters to `GetBucket`. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type GetBucketRequest = src.GetBucketRequest - -// The parameters to -// [GetCmekSettings][google.logging.v2.ConfigServiceV2.GetCmekSettings]. See -// [Enabling CMEK for Log -// Router](https://cloud.google.com/logging/docs/routing/managed-encryption) -// for more information. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type GetCmekSettingsRequest = src.GetCmekSettingsRequest - -// The parameters to `GetExclusion`. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type GetExclusionRequest = src.GetExclusionRequest - -// The parameters to GetLogMetric. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type GetLogMetricRequest = src.GetLogMetricRequest - -// The parameters to -// [GetSettings][google.logging.v2.ConfigServiceV2.GetSettings]. See [Enabling -// CMEK for Log -// Router](https://cloud.google.com/logging/docs/routing/managed-encryption) -// for more information. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type GetSettingsRequest = src.GetSettingsRequest - -// The parameters to `GetSink`. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type GetSinkRequest = src.GetSinkRequest - -// The parameters to `GetView`. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type GetViewRequest = src.GetViewRequest - -// LogBucket lifecycle states. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type LifecycleState = src.LifecycleState - -// The parameters to `ListBuckets`. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type ListBucketsRequest = src.ListBucketsRequest - -// The response from ListBuckets. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type ListBucketsResponse = src.ListBucketsResponse - -// The parameters to `ListExclusions`. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type ListExclusionsRequest = src.ListExclusionsRequest - -// Result returned from `ListExclusions`. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type ListExclusionsResponse = src.ListExclusionsResponse - -// The parameters to `ListLogEntries`. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type ListLogEntriesRequest = src.ListLogEntriesRequest - -// Result returned from `ListLogEntries`. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type ListLogEntriesResponse = src.ListLogEntriesResponse - -// The parameters to ListLogMetrics. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type ListLogMetricsRequest = src.ListLogMetricsRequest - -// Result returned from ListLogMetrics. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type ListLogMetricsResponse = src.ListLogMetricsResponse - -// The parameters to ListLogs. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type ListLogsRequest = src.ListLogsRequest - -// Result returned from ListLogs. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type ListLogsResponse = src.ListLogsResponse - -// The parameters to ListMonitoredResourceDescriptors -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type ListMonitoredResourceDescriptorsRequest = src.ListMonitoredResourceDescriptorsRequest - -// Result returned from ListMonitoredResourceDescriptors. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type ListMonitoredResourceDescriptorsResponse = src.ListMonitoredResourceDescriptorsResponse - -// The parameters to `ListSinks`. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type ListSinksRequest = src.ListSinksRequest - -// Result returned from `ListSinks`. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type ListSinksResponse = src.ListSinksResponse - -// The parameters to `ListViews`. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type ListViewsRequest = src.ListViewsRequest - -// The response from ListViews. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type ListViewsResponse = src.ListViewsResponse - -// Describes a repository in which log entries are stored. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type LogBucket = src.LogBucket - -// An individual entry in a log. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type LogEntry = src.LogEntry - -// Additional information about a potentially long-running operation with -// which a log entry is associated. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type LogEntryOperation = src.LogEntryOperation - -// Additional information about the source code location that produced the log -// entry. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type LogEntrySourceLocation = src.LogEntrySourceLocation -type LogEntry_JsonPayload = src.LogEntry_JsonPayload -type LogEntry_ProtoPayload = src.LogEntry_ProtoPayload -type LogEntry_TextPayload = src.LogEntry_TextPayload - -// Specifies a set of log entries that are filtered out by a sink. If your -// Google Cloud resource receives a large volume of log entries, you can use -// exclusions to reduce your chargeable logs. Note that exclusions on -// organization-level and folder-level sinks don't apply to child resources. -// Note also that you cannot modify the _Required sink or exclude logs from it. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type LogExclusion = src.LogExclusion - -// Describes a logs-based metric. The value of the metric is the number of log -// entries that match a logs filter in a given time interval. Logs-based -// metrics can also be used to extract values from logs and create a -// distribution of the values. The distribution records the statistics of the -// extracted values along with an optional histogram of the values as specified -// by the bucket options. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type LogMetric = src.LogMetric - -// Logging API version. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type LogMetric_ApiVersion = src.LogMetric_ApiVersion - -// Describes a sink used to export log entries to one of the following -// destinations in any project: a Cloud Storage bucket, a BigQuery dataset, a -// Pub/Sub topic or a Cloud Logging log bucket. A logs filter controls which -// log entries are exported. The sink must be created within a project, -// organization, billing account, or folder. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type LogSink = src.LogSink -type LogSink_BigqueryOptions = src.LogSink_BigqueryOptions - -// Deprecated. This is unused. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type LogSink_VersionFormat = src.LogSink_VersionFormat - -// Additional information used to correlate multiple log entries. Used when a -// single LogEntry would exceed the Google Cloud Logging size limit and is -// split across multiple log entries. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type LogSplit = src.LogSplit - -// Describes a view over log entries in a bucket. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type LogView = src.LogView - -// LoggingServiceV2Client is the client API for LoggingServiceV2 service. For -// semantics around ctx use and closing/ending streaming RPCs, please refer to -// https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type LoggingServiceV2Client = src.LoggingServiceV2Client - -// LoggingServiceV2Server is the server API for LoggingServiceV2 service. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type LoggingServiceV2Server = src.LoggingServiceV2Server -type LoggingServiceV2_TailLogEntriesClient = src.LoggingServiceV2_TailLogEntriesClient -type LoggingServiceV2_TailLogEntriesServer = src.LoggingServiceV2_TailLogEntriesServer - -// MetricsServiceV2Client is the client API for MetricsServiceV2 service. For -// semantics around ctx use and closing/ending streaming RPCs, please refer to -// https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type MetricsServiceV2Client = src.MetricsServiceV2Client - -// MetricsServiceV2Server is the server API for MetricsServiceV2 service. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type MetricsServiceV2Server = src.MetricsServiceV2Server - -// List of different operation states. High level state of the operation. This -// is used to report the job's current state to the user. Once a long running -// operation is created, the current state of the operation can be queried even -// before the operation is finished and the final result is available. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type OperationState = src.OperationState - -// Describes the settings associated with a project, folder, organization, -// billing account, or flexible resource. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type Settings = src.Settings - -// The parameters to `TailLogEntries`. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type TailLogEntriesRequest = src.TailLogEntriesRequest - -// Result returned from `TailLogEntries`. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type TailLogEntriesResponse = src.TailLogEntriesResponse - -// Information about entries that were omitted from the session. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type TailLogEntriesResponse_SuppressionInfo = src.TailLogEntriesResponse_SuppressionInfo - -// An indicator of why entries were omitted. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type TailLogEntriesResponse_SuppressionInfo_Reason = src.TailLogEntriesResponse_SuppressionInfo_Reason - -// The parameters to `UndeleteBucket`. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type UndeleteBucketRequest = src.UndeleteBucketRequest - -// UnimplementedConfigServiceV2Server can be embedded to have forward -// compatible implementations. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type UnimplementedConfigServiceV2Server = src.UnimplementedConfigServiceV2Server - -// UnimplementedLoggingServiceV2Server can be embedded to have forward -// compatible implementations. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type UnimplementedLoggingServiceV2Server = src.UnimplementedLoggingServiceV2Server - -// UnimplementedMetricsServiceV2Server can be embedded to have forward -// compatible implementations. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type UnimplementedMetricsServiceV2Server = src.UnimplementedMetricsServiceV2Server - -// The parameters to `UpdateBucket`. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type UpdateBucketRequest = src.UpdateBucketRequest - -// The parameters to -// [UpdateCmekSettings][google.logging.v2.ConfigServiceV2.UpdateCmekSettings]. -// See [Enabling CMEK for Log -// Router](https://cloud.google.com/logging/docs/routing/managed-encryption) -// for more information. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type UpdateCmekSettingsRequest = src.UpdateCmekSettingsRequest - -// The parameters to `UpdateExclusion`. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type UpdateExclusionRequest = src.UpdateExclusionRequest - -// The parameters to UpdateLogMetric. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type UpdateLogMetricRequest = src.UpdateLogMetricRequest - -// The parameters to -// [UpdateSettings][google.logging.v2.ConfigServiceV2.UpdateSettings]. See -// [Enabling CMEK for Log -// Router](https://cloud.google.com/logging/docs/routing/managed-encryption) -// for more information. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type UpdateSettingsRequest = src.UpdateSettingsRequest - -// The parameters to `UpdateSink`. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type UpdateSinkRequest = src.UpdateSinkRequest - -// The parameters to `UpdateView`. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type UpdateViewRequest = src.UpdateViewRequest - -// Error details for WriteLogEntries with partial success. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type WriteLogEntriesPartialErrors = src.WriteLogEntriesPartialErrors - -// The parameters to WriteLogEntries. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type WriteLogEntriesRequest = src.WriteLogEntriesRequest - -// Result returned from WriteLogEntries. -// -// Deprecated: Please use types in: cloud.google.com/go/logging/apiv2/loggingpb -type WriteLogEntriesResponse = src.WriteLogEntriesResponse - -// Deprecated: Please use funcs in: cloud.google.com/go/logging/apiv2/loggingpb -func NewConfigServiceV2Client(cc grpc.ClientConnInterface) ConfigServiceV2Client { - return src.NewConfigServiceV2Client(cc) -} - -// Deprecated: Please use funcs in: cloud.google.com/go/logging/apiv2/loggingpb -func NewLoggingServiceV2Client(cc grpc.ClientConnInterface) LoggingServiceV2Client { - return src.NewLoggingServiceV2Client(cc) -} - -// Deprecated: Please use funcs in: cloud.google.com/go/logging/apiv2/loggingpb -func NewMetricsServiceV2Client(cc grpc.ClientConnInterface) MetricsServiceV2Client { - return src.NewMetricsServiceV2Client(cc) -} - -// Deprecated: Please use funcs in: cloud.google.com/go/logging/apiv2/loggingpb -func RegisterConfigServiceV2Server(s *grpc.Server, srv ConfigServiceV2Server) { - src.RegisterConfigServiceV2Server(s, srv) -} - -// Deprecated: Please use funcs in: cloud.google.com/go/logging/apiv2/loggingpb -func RegisterLoggingServiceV2Server(s *grpc.Server, srv LoggingServiceV2Server) { - src.RegisterLoggingServiceV2Server(s, srv) -} - -// Deprecated: Please use funcs in: cloud.google.com/go/logging/apiv2/loggingpb -func RegisterMetricsServiceV2Server(s *grpc.Server, srv MetricsServiceV2Server) { - src.RegisterMetricsServiceV2Server(s, srv) -} diff --git a/vendor/modules.txt b/vendor/modules.txt index a36d78268..8d8fec3af 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -22,7 +22,7 @@ cloud.google.com/go/compute/metadata ## explicit; go 1.19 cloud.google.com/go/iam cloud.google.com/go/iam/apiv1/iampb -# cloud.google.com/go/logging v1.6.1 +# cloud.google.com/go/logging v1.7.0 ## explicit; go 1.19 cloud.google.com/go/logging cloud.google.com/go/logging/apiv2 @@ -970,7 +970,7 @@ google.golang.org/appengine/v2/log google.golang.org/appengine/v2/mail google.golang.org/appengine/v2/memcache google.golang.org/appengine/v2/user -# google.golang.org/genproto v0.0.0-20230221151758-ace64dc21148 +# google.golang.org/genproto v0.0.0-20230222225845-10f96fb3dbec ## explicit; go 1.19 google.golang.org/genproto/googleapis/api google.golang.org/genproto/googleapis/api/annotations @@ -983,7 +983,6 @@ google.golang.org/genproto/googleapis/cloud/audit google.golang.org/genproto/googleapis/devtools/cloudprofiler/v2 google.golang.org/genproto/googleapis/iam/v1 google.golang.org/genproto/googleapis/logging/type -google.golang.org/genproto/googleapis/logging/v2 google.golang.org/genproto/googleapis/longrunning google.golang.org/genproto/googleapis/rpc/code google.golang.org/genproto/googleapis/rpc/context/attribute_context |
