mirror of
https://github.com/kubernetes/node-problem-detector.git
synced 2026-08-28 01:47:20 +00:00
Update dependencies
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Copyright 2024 Google LLC
|
||||
// Copyright 2025 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
@@ -0,0 +1,19 @@
|
||||
// Copyright 2025 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
|
||||
//
|
||||
// https://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 protoc-gen-go_gapic. DO NOT EDIT.
|
||||
|
||||
//go:build go1.23
|
||||
|
||||
package trace
|
||||
+3
-42
@@ -1,4 +1,4 @@
|
||||
// Copyright 2024 Google LLC
|
||||
// Copyright 2025 Google LLC
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
@@ -41,6 +41,7 @@
|
||||
//
|
||||
// To get started with this package, create a client.
|
||||
//
|
||||
// // go get cloud.google.com/go/trace/apiv2@latest
|
||||
// ctx := context.Background()
|
||||
// // This snippet has been automatically generated and should be regarded as a code template only.
|
||||
// // It will require modifications to work:
|
||||
@@ -59,19 +60,7 @@
|
||||
//
|
||||
// # Using the Client
|
||||
//
|
||||
// The following is an example of making an API call with the newly created client.
|
||||
//
|
||||
// ctx := context.Background()
|
||||
// // This snippet has been automatically generated and should be regarded as a code template only.
|
||||
// // It will require modifications to work:
|
||||
// // - It may require correct/in-range values for request initialization.
|
||||
// // - It may require specifying regional endpoints when creating the service client as shown in:
|
||||
// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
|
||||
// c, err := trace.NewClient(ctx)
|
||||
// if err != nil {
|
||||
// // TODO: Handle error.
|
||||
// }
|
||||
// defer c.Close()
|
||||
// The following is an example of making an API call with the newly created client, mentioned above.
|
||||
//
|
||||
// req := &tracepb.BatchWriteSpansRequest{
|
||||
// // TODO: Fill request struct fields.
|
||||
@@ -96,31 +85,3 @@
|
||||
// [Debugging Client Libraries]: https://pkg.go.dev/cloud.google.com/go#hdr-Debugging
|
||||
// [Inspecting errors]: https://pkg.go.dev/cloud.google.com/go#hdr-Inspecting_errors
|
||||
package trace // import "cloud.google.com/go/trace/apiv2"
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"google.golang.org/api/option"
|
||||
)
|
||||
|
||||
// For more information on implementing a client constructor hook, see
|
||||
// https://github.com/googleapis/google-cloud-go/wiki/Customizing-constructors.
|
||||
type clientHookParams struct{}
|
||||
type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error)
|
||||
|
||||
var versionClient string
|
||||
|
||||
func getVersionClient() string {
|
||||
if versionClient == "" {
|
||||
return "UNKNOWN"
|
||||
}
|
||||
return versionClient
|
||||
}
|
||||
|
||||
// DefaultAuthScopes reports the default set of authentication scopes to use with this package.
|
||||
func DefaultAuthScopes() []string {
|
||||
return []string{
|
||||
"https://www.googleapis.com/auth/cloud-platform",
|
||||
"https://www.googleapis.com/auth/trace.append",
|
||||
}
|
||||
}
|
||||
|
||||
+102
@@ -0,0 +1,102 @@
|
||||
// Copyright 2025 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
|
||||
//
|
||||
// https://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 protoc-gen-go_gapic. DO NOT EDIT.
|
||||
|
||||
package trace
|
||||
|
||||
import (
|
||||
"context"
|
||||
"io"
|
||||
"log/slog"
|
||||
"net/http"
|
||||
|
||||
"github.com/googleapis/gax-go/v2/internallog"
|
||||
"github.com/googleapis/gax-go/v2/internallog/grpclog"
|
||||
"google.golang.org/api/googleapi"
|
||||
"google.golang.org/api/option"
|
||||
"google.golang.org/grpc"
|
||||
"google.golang.org/protobuf/proto"
|
||||
)
|
||||
|
||||
const serviceName = "cloudtrace.googleapis.com"
|
||||
|
||||
// For more information on implementing a client constructor hook, see
|
||||
// https://github.com/googleapis/google-cloud-go/wiki/Customizing-constructors.
|
||||
type clientHookParams struct{}
|
||||
type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error)
|
||||
|
||||
var versionClient string
|
||||
|
||||
func getVersionClient() string {
|
||||
if versionClient == "" {
|
||||
return "UNKNOWN"
|
||||
}
|
||||
return versionClient
|
||||
}
|
||||
|
||||
// DefaultAuthScopes reports the default set of authentication scopes to use with this package.
|
||||
func DefaultAuthScopes() []string {
|
||||
return []string{
|
||||
"https://www.googleapis.com/auth/cloud-platform",
|
||||
"https://www.googleapis.com/auth/trace.append",
|
||||
}
|
||||
}
|
||||
|
||||
func executeHTTPRequestWithResponse(ctx context.Context, client *http.Client, req *http.Request, logger *slog.Logger, body []byte, rpc string) ([]byte, *http.Response, error) {
|
||||
logger.DebugContext(ctx, "api request", "serviceName", serviceName, "rpcName", rpc, "request", internallog.HTTPRequest(req, body))
|
||||
resp, err := client.Do(req)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
defer resp.Body.Close()
|
||||
buf, err := io.ReadAll(resp.Body)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
logger.DebugContext(ctx, "api response", "serviceName", serviceName, "rpcName", rpc, "response", internallog.HTTPResponse(resp, buf))
|
||||
if err = googleapi.CheckResponseWithBody(resp, buf); err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
return buf, resp, nil
|
||||
}
|
||||
|
||||
func executeHTTPRequest(ctx context.Context, client *http.Client, req *http.Request, logger *slog.Logger, body []byte, rpc string) ([]byte, error) {
|
||||
buf, _, err := executeHTTPRequestWithResponse(ctx, client, req, logger, body, rpc)
|
||||
return buf, err
|
||||
}
|
||||
|
||||
func executeStreamingHTTPRequest(ctx context.Context, client *http.Client, req *http.Request, logger *slog.Logger, body []byte, rpc string) (*http.Response, error) {
|
||||
logger.DebugContext(ctx, "api request", "serviceName", serviceName, "rpcName", rpc, "request", internallog.HTTPRequest(req, body))
|
||||
resp, err := client.Do(req)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
logger.DebugContext(ctx, "api response", "serviceName", serviceName, "rpcName", rpc, "response", internallog.HTTPResponse(resp, nil))
|
||||
if err = googleapi.CheckResponse(resp); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return resp, nil
|
||||
}
|
||||
|
||||
func executeRPC[I proto.Message, O proto.Message](ctx context.Context, fn func(context.Context, I, ...grpc.CallOption) (O, error), req I, opts []grpc.CallOption, logger *slog.Logger, rpc string) (O, error) {
|
||||
var zero O
|
||||
logger.DebugContext(ctx, "api request", "serviceName", serviceName, "rpcName", rpc, "request", grpclog.ProtoMessageRequest(ctx, req))
|
||||
resp, err := fn(ctx, req, opts...)
|
||||
if err != nil {
|
||||
return zero, err
|
||||
}
|
||||
logger.DebugContext(ctx, "api response", "serviceName", serviceName, "rpcName", rpc, "response", grpclog.ProtoMessageResponse(resp))
|
||||
return resp, err
|
||||
}
|
||||
+13
-25
@@ -1,4 +1,4 @@
|
||||
// Copyright 2024 Google LLC
|
||||
// Copyright 2025 Google LLC
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
@@ -20,7 +20,7 @@ import (
|
||||
"bytes"
|
||||
"context"
|
||||
"fmt"
|
||||
"io"
|
||||
"log/slog"
|
||||
"math"
|
||||
"net/http"
|
||||
"net/url"
|
||||
@@ -28,7 +28,6 @@ import (
|
||||
|
||||
tracepb "cloud.google.com/go/trace/apiv2/tracepb"
|
||||
gax "github.com/googleapis/gax-go/v2"
|
||||
"google.golang.org/api/googleapi"
|
||||
"google.golang.org/api/option"
|
||||
"google.golang.org/api/option/internaloption"
|
||||
gtransport "google.golang.org/api/transport/grpc"
|
||||
@@ -197,6 +196,8 @@ type gRPCClient struct {
|
||||
|
||||
// The x-goog-* metadata to be sent with each request.
|
||||
xGoogHeaders []string
|
||||
|
||||
logger *slog.Logger
|
||||
}
|
||||
|
||||
// NewClient creates a new trace service client based on gRPC.
|
||||
@@ -229,6 +230,7 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error
|
||||
connPool: connPool,
|
||||
client: tracepb.NewTraceServiceClient(connPool),
|
||||
CallOptions: &client.CallOptions,
|
||||
logger: internaloption.GetLogger(opts),
|
||||
}
|
||||
c.setGoogleClientInfo()
|
||||
|
||||
@@ -275,6 +277,8 @@ type restClient struct {
|
||||
|
||||
// Points back to the CallOptions field of the containing Client
|
||||
CallOptions **CallOptions
|
||||
|
||||
logger *slog.Logger
|
||||
}
|
||||
|
||||
// NewRESTClient creates a new trace service rest client.
|
||||
@@ -298,6 +302,7 @@ func NewRESTClient(ctx context.Context, opts ...option.ClientOption) (*Client, e
|
||||
endpoint: endpoint,
|
||||
httpClient: httpClient,
|
||||
CallOptions: &callOpts,
|
||||
logger: internaloption.GetLogger(opts),
|
||||
}
|
||||
c.setGoogleClientInfo()
|
||||
|
||||
@@ -349,7 +354,7 @@ func (c *gRPCClient) BatchWriteSpans(ctx context.Context, req *tracepb.BatchWrit
|
||||
opts = append((*c.CallOptions).BatchWriteSpans[0:len((*c.CallOptions).BatchWriteSpans):len((*c.CallOptions).BatchWriteSpans)], opts...)
|
||||
err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error {
|
||||
var err error
|
||||
_, err = c.client.BatchWriteSpans(ctx, req, settings.GRPC...)
|
||||
_, err = executeRPC(ctx, c.client.BatchWriteSpans, req, settings.GRPC, c.logger, "BatchWriteSpans")
|
||||
return err
|
||||
}, opts...)
|
||||
return err
|
||||
@@ -364,7 +369,7 @@ func (c *gRPCClient) CreateSpan(ctx context.Context, req *tracepb.Span, opts ...
|
||||
var resp *tracepb.Span
|
||||
err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error {
|
||||
var err error
|
||||
resp, err = c.client.CreateSpan(ctx, req, settings.GRPC...)
|
||||
resp, err = executeRPC(ctx, c.client.CreateSpan, req, settings.GRPC, c.logger, "CreateSpan")
|
||||
return err
|
||||
}, opts...)
|
||||
if err != nil {
|
||||
@@ -410,15 +415,8 @@ func (c *restClient) BatchWriteSpans(ctx context.Context, req *tracepb.BatchWrit
|
||||
httpReq = httpReq.WithContext(ctx)
|
||||
httpReq.Header = headers
|
||||
|
||||
httpRsp, err := c.httpClient.Do(httpReq)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer httpRsp.Body.Close()
|
||||
|
||||
// Returns nil if there is no error, otherwise wraps
|
||||
// the response code and body into a non-nil error
|
||||
return googleapi.CheckResponse(httpRsp)
|
||||
_, err = executeHTTPRequest(ctx, c.httpClient, httpReq, c.logger, jsonReq, "BatchWriteSpans")
|
||||
return err
|
||||
}, opts...)
|
||||
}
|
||||
|
||||
@@ -461,17 +459,7 @@ func (c *restClient) CreateSpan(ctx context.Context, req *tracepb.Span, opts ...
|
||||
httpReq = httpReq.WithContext(ctx)
|
||||
httpReq.Header = headers
|
||||
|
||||
httpRsp, err := c.httpClient.Do(httpReq)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer httpRsp.Body.Close()
|
||||
|
||||
if err = googleapi.CheckResponse(httpRsp); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
buf, err := io.ReadAll(httpRsp.Body)
|
||||
buf, err := executeHTTPRequest(ctx, c.httpClient, httpReq, c.logger, jsonReq, "CreateSpan")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
+58
-256
@@ -1,4 +1,4 @@
|
||||
// Copyright 2024 Google LLC
|
||||
// Copyright 2025 Google LLC
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.34.2
|
||||
// protoc-gen-go v1.35.2
|
||||
// protoc v4.25.3
|
||||
// source: google/devtools/cloudtrace/v2/trace.proto
|
||||
|
||||
@@ -296,11 +296,9 @@ type Span struct {
|
||||
|
||||
func (x *Span) Reset() {
|
||||
*x = Span{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *Span) String() string {
|
||||
@@ -311,7 +309,7 @@ func (*Span) ProtoMessage() {}
|
||||
|
||||
func (x *Span) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[0]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -442,11 +440,9 @@ type AttributeValue struct {
|
||||
|
||||
func (x *AttributeValue) Reset() {
|
||||
*x = AttributeValue{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *AttributeValue) String() string {
|
||||
@@ -457,7 +453,7 @@ func (*AttributeValue) ProtoMessage() {}
|
||||
|
||||
func (x *AttributeValue) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[1]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -547,11 +543,9 @@ type StackTrace struct {
|
||||
|
||||
func (x *StackTrace) Reset() {
|
||||
*x = StackTrace{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *StackTrace) String() string {
|
||||
@@ -562,7 +556,7 @@ func (*StackTrace) ProtoMessage() {}
|
||||
|
||||
func (x *StackTrace) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[2]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -607,11 +601,9 @@ type Module struct {
|
||||
|
||||
func (x *Module) Reset() {
|
||||
*x = Module{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *Module) String() string {
|
||||
@@ -622,7 +614,7 @@ func (*Module) ProtoMessage() {}
|
||||
|
||||
func (x *Module) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[3]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -672,11 +664,9 @@ type TruncatableString struct {
|
||||
|
||||
func (x *TruncatableString) Reset() {
|
||||
*x = TruncatableString{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[4]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[4]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *TruncatableString) String() string {
|
||||
@@ -687,7 +677,7 @@ func (*TruncatableString) ProtoMessage() {}
|
||||
|
||||
func (x *TruncatableString) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[4]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -738,11 +728,9 @@ type Span_Attributes struct {
|
||||
|
||||
func (x *Span_Attributes) Reset() {
|
||||
*x = Span_Attributes{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[5]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[5]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *Span_Attributes) String() string {
|
||||
@@ -753,7 +741,7 @@ func (*Span_Attributes) ProtoMessage() {}
|
||||
|
||||
func (x *Span_Attributes) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[5]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -802,11 +790,9 @@ type Span_TimeEvent struct {
|
||||
|
||||
func (x *Span_TimeEvent) Reset() {
|
||||
*x = Span_TimeEvent{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[6]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[6]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *Span_TimeEvent) String() string {
|
||||
@@ -817,7 +803,7 @@ func (*Span_TimeEvent) ProtoMessage() {}
|
||||
|
||||
func (x *Span_TimeEvent) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[6]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -898,11 +884,9 @@ type Span_TimeEvents struct {
|
||||
|
||||
func (x *Span_TimeEvents) Reset() {
|
||||
*x = Span_TimeEvents{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[7]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[7]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *Span_TimeEvents) String() string {
|
||||
@@ -913,7 +897,7 @@ func (*Span_TimeEvents) ProtoMessage() {}
|
||||
|
||||
func (x *Span_TimeEvents) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[7]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -971,11 +955,9 @@ type Span_Link struct {
|
||||
|
||||
func (x *Span_Link) Reset() {
|
||||
*x = Span_Link{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[8]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[8]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *Span_Link) String() string {
|
||||
@@ -986,7 +968,7 @@ func (*Span_Link) ProtoMessage() {}
|
||||
|
||||
func (x *Span_Link) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[8]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -1045,11 +1027,9 @@ type Span_Links struct {
|
||||
|
||||
func (x *Span_Links) Reset() {
|
||||
*x = Span_Links{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[9]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[9]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *Span_Links) String() string {
|
||||
@@ -1060,7 +1040,7 @@ func (*Span_Links) ProtoMessage() {}
|
||||
|
||||
func (x *Span_Links) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[9]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -1105,11 +1085,9 @@ type Span_TimeEvent_Annotation struct {
|
||||
|
||||
func (x *Span_TimeEvent_Annotation) Reset() {
|
||||
*x = Span_TimeEvent_Annotation{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[11]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[11]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *Span_TimeEvent_Annotation) String() string {
|
||||
@@ -1120,7 +1098,7 @@ func (*Span_TimeEvent_Annotation) ProtoMessage() {}
|
||||
|
||||
func (x *Span_TimeEvent_Annotation) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[11]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -1171,11 +1149,9 @@ type Span_TimeEvent_MessageEvent struct {
|
||||
|
||||
func (x *Span_TimeEvent_MessageEvent) Reset() {
|
||||
*x = Span_TimeEvent_MessageEvent{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[12]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[12]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *Span_TimeEvent_MessageEvent) String() string {
|
||||
@@ -1186,7 +1162,7 @@ func (*Span_TimeEvent_MessageEvent) ProtoMessage() {}
|
||||
|
||||
func (x *Span_TimeEvent_MessageEvent) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[12]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -1259,11 +1235,9 @@ type StackTrace_StackFrame struct {
|
||||
|
||||
func (x *StackTrace_StackFrame) Reset() {
|
||||
*x = StackTrace_StackFrame{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[13]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[13]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *StackTrace_StackFrame) String() string {
|
||||
@@ -1274,7 +1248,7 @@ func (*StackTrace_StackFrame) ProtoMessage() {}
|
||||
|
||||
func (x *StackTrace_StackFrame) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[13]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -1354,11 +1328,9 @@ type StackTrace_StackFrames struct {
|
||||
|
||||
func (x *StackTrace_StackFrames) Reset() {
|
||||
*x = StackTrace_StackFrames{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[14]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[14]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *StackTrace_StackFrames) String() string {
|
||||
@@ -1369,7 +1341,7 @@ func (*StackTrace_StackFrames) ProtoMessage() {}
|
||||
|
||||
func (x *StackTrace_StackFrames) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[14]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -1762,176 +1734,6 @@ func file_google_devtools_cloudtrace_v2_trace_proto_init() {
|
||||
if File_google_devtools_cloudtrace_v2_trace_proto != nil {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*Span); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[1].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*AttributeValue); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[2].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*StackTrace); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[3].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*Module); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[4].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*TruncatableString); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[5].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*Span_Attributes); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[6].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*Span_TimeEvent); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[7].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*Span_TimeEvents); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[8].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*Span_Link); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[9].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*Span_Links); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[11].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*Span_TimeEvent_Annotation); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[12].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*Span_TimeEvent_MessageEvent); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[13].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*StackTrace_StackFrame); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[14].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*StackTrace_StackFrames); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
file_google_devtools_cloudtrace_v2_trace_proto_msgTypes[1].OneofWrappers = []any{
|
||||
(*AttributeValue_StringValue)(nil),
|
||||
(*AttributeValue_IntValue)(nil),
|
||||
|
||||
+6
-22
@@ -1,4 +1,4 @@
|
||||
// Copyright 2024 Google LLC
|
||||
// Copyright 2025 Google LLC
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.34.2
|
||||
// protoc-gen-go v1.35.2
|
||||
// protoc v4.25.3
|
||||
// source: google/devtools/cloudtrace/v2/tracing.proto
|
||||
|
||||
@@ -57,11 +57,9 @@ type BatchWriteSpansRequest struct {
|
||||
|
||||
func (x *BatchWriteSpansRequest) Reset() {
|
||||
*x = BatchWriteSpansRequest{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_google_devtools_cloudtrace_v2_tracing_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_google_devtools_cloudtrace_v2_tracing_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *BatchWriteSpansRequest) String() string {
|
||||
@@ -72,7 +70,7 @@ func (*BatchWriteSpansRequest) ProtoMessage() {}
|
||||
|
||||
func (x *BatchWriteSpansRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_google_devtools_cloudtrace_v2_tracing_proto_msgTypes[0]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -210,20 +208,6 @@ func file_google_devtools_cloudtrace_v2_tracing_proto_init() {
|
||||
return
|
||||
}
|
||||
file_google_devtools_cloudtrace_v2_trace_proto_init()
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_google_devtools_cloudtrace_v2_tracing_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*BatchWriteSpansRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
|
||||
+1
-1
@@ -15,4 +15,4 @@
|
||||
package internal
|
||||
|
||||
// Version is the current tagged release of the library.
|
||||
const Version = "1.10.10"
|
||||
const Version = "1.11.6"
|
||||
|
||||
Reference in New Issue
Block a user