opencensus: delete opencensus tracer (#37508)
Additional Description: This has been deprecated for several releases, and the upstream dependency is no longer maintained. Risk Level: Low; this was marked as deprecated in 1.28 and was supposed to be removed in 1.30 Fixes #9958 Progress on #11816 --------- Signed-off-by: Greg Greenway <ggreenway@apple.com> Co-authored-by: Ryan Northey <ryan@synca.io> Mirrored from https://github.com/envoyproxy/envoy @ e456b9ba7683a09cea7a7f2af6d3a5a5c2ac10a6main
parent
1207d88398
commit
040c2d83e8
20 changed files with 0 additions and 450 deletions
@ -1,93 +0,0 @@ |
||||
syntax = "proto3"; |
||||
|
||||
package envoy.config.trace.v2; |
||||
|
||||
import "envoy/api/v2/core/grpc_service.proto"; |
||||
|
||||
import "opencensus/proto/trace/v1/trace_config.proto"; |
||||
|
||||
import "udpa/annotations/status.proto"; |
||||
|
||||
option java_package = "io.envoyproxy.envoy.config.trace.v2"; |
||||
option java_outer_classname = "OpencensusProto"; |
||||
option java_multiple_files = true; |
||||
option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/trace/v2;tracev2"; |
||||
option (udpa.annotations.file_status).package_version_status = FROZEN; |
||||
|
||||
// [#protodoc-title: OpenCensus tracer] |
||||
|
||||
// Configuration for the OpenCensus tracer. |
||||
// [#next-free-field: 15] |
||||
// [#extension: envoy.tracers.opencensus] |
||||
message OpenCensusConfig { |
||||
enum TraceContext { |
||||
// No-op default, no trace context is utilized. |
||||
NONE = 0; |
||||
|
||||
// W3C Trace-Context format "traceparent:" header. |
||||
TRACE_CONTEXT = 1; |
||||
|
||||
// Binary "grpc-trace-bin:" header. |
||||
GRPC_TRACE_BIN = 2; |
||||
|
||||
// "X-Cloud-Trace-Context:" header. |
||||
CLOUD_TRACE_CONTEXT = 3; |
||||
|
||||
// X-B3-* headers. |
||||
B3 = 4; |
||||
} |
||||
|
||||
reserved 7; |
||||
|
||||
// Configures tracing, e.g. the sampler, max number of annotations, etc. |
||||
opencensus.proto.trace.v1.TraceConfig trace_config = 1; |
||||
|
||||
// Enables the stdout exporter if set to true. This is intended for debugging |
||||
// purposes. |
||||
bool stdout_exporter_enabled = 2; |
||||
|
||||
// Enables the Stackdriver exporter if set to true. The project_id must also |
||||
// be set. |
||||
bool stackdriver_exporter_enabled = 3; |
||||
|
||||
// The Cloud project_id to use for Stackdriver tracing. |
||||
string stackdriver_project_id = 4; |
||||
|
||||
// (optional) By default, the Stackdriver exporter will connect to production |
||||
// Stackdriver. If stackdriver_address is non-empty, it will instead connect |
||||
// to this address, which is in the gRPC format: |
||||
// https://github.com/grpc/grpc/blob/master/doc/naming.md |
||||
string stackdriver_address = 10; |
||||
|
||||
// (optional) The gRPC server that hosts Stackdriver tracing service. Only |
||||
// Google gRPC is supported. If :ref:`target_uri <envoy_v3_api_field_config.core.v3.GrpcService.GoogleGrpc.target_uri>` |
||||
// is not provided, the default production Stackdriver address will be used. |
||||
api.v2.core.GrpcService stackdriver_grpc_service = 13; |
||||
|
||||
// Enables the Zipkin exporter if set to true. The url and service name must |
||||
// also be set. |
||||
bool zipkin_exporter_enabled = 5; |
||||
|
||||
// The URL to Zipkin, e.g. "http://127.0.0.1:9411/api/v2/spans" |
||||
string zipkin_url = 6; |
||||
|
||||
// Enables the OpenCensus Agent exporter if set to true. The ocagent_address or |
||||
// ocagent_grpc_service must also be set. |
||||
bool ocagent_exporter_enabled = 11; |
||||
|
||||
// The address of the OpenCensus Agent, if its exporter is enabled, in gRPC |
||||
// format: https://github.com/grpc/grpc/blob/master/doc/naming.md |
||||
// [#comment:TODO: deprecate this field] |
||||
string ocagent_address = 12; |
||||
|
||||
// (optional) The gRPC server hosted by the OpenCensus Agent. Only Google gRPC is supported. |
||||
// This is only used if the ocagent_address is left empty. |
||||
api.v2.core.GrpcService ocagent_grpc_service = 14; |
||||
|
||||
// List of incoming trace context headers we will accept. First one found |
||||
// wins. |
||||
repeated TraceContext incoming_trace_context = 8; |
||||
|
||||
// List of outgoing trace context headers we will produce. |
||||
repeated TraceContext outgoing_trace_context = 9; |
||||
} |
@ -1,156 +0,0 @@ |
||||
syntax = "proto3"; |
||||
|
||||
package envoy.config.trace.v3; |
||||
|
||||
import "envoy/config/core/v3/grpc_service.proto"; |
||||
|
||||
import "opencensus/proto/trace/v1/trace_config.proto"; |
||||
|
||||
import "envoy/annotations/deprecation.proto"; |
||||
import "udpa/annotations/migrate.proto"; |
||||
import "udpa/annotations/status.proto"; |
||||
import "udpa/annotations/versioning.proto"; |
||||
|
||||
option java_package = "io.envoyproxy.envoy.config.trace.v3"; |
||||
option java_outer_classname = "OpencensusProto"; |
||||
option java_multiple_files = true; |
||||
option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/trace/v3;tracev3"; |
||||
option (udpa.annotations.file_migrate).move_to_package = |
||||
"envoy.extensions.tracers.opencensus.v4alpha"; |
||||
option (udpa.annotations.file_status).package_version_status = ACTIVE; |
||||
|
||||
// [#protodoc-title: OpenCensus tracer] |
||||
|
||||
// Configuration for the OpenCensus tracer. |
||||
// [#next-free-field: 15] |
||||
// [#extension: envoy.tracers.opencensus] |
||||
message OpenCensusConfig { |
||||
option (udpa.annotations.versioning).previous_message_type = |
||||
"envoy.config.trace.v2.OpenCensusConfig"; |
||||
|
||||
enum TraceContext { |
||||
// No-op default, no trace context is utilized. |
||||
NONE = 0; |
||||
|
||||
// W3C Trace-Context format "traceparent:" header. |
||||
TRACE_CONTEXT = 1; |
||||
|
||||
// Binary "grpc-trace-bin:" header. |
||||
GRPC_TRACE_BIN = 2; |
||||
|
||||
// "X-Cloud-Trace-Context:" header. |
||||
CLOUD_TRACE_CONTEXT = 3; |
||||
|
||||
// X-B3-* headers. |
||||
B3 = 4; |
||||
} |
||||
|
||||
reserved 7; |
||||
|
||||
// Configures tracing, e.g. the sampler, max number of annotations, etc. |
||||
opencensus.proto.trace.v1.TraceConfig trace_config = 1 [ |
||||
deprecated = true, |
||||
(envoy.annotations.deprecated_at_minor_version) = "3.0", |
||||
(envoy.annotations.disallowed_by_default) = true |
||||
]; |
||||
|
||||
// Enables the stdout exporter if set to true. This is intended for debugging |
||||
// purposes. |
||||
bool stdout_exporter_enabled = 2 [ |
||||
deprecated = true, |
||||
(envoy.annotations.deprecated_at_minor_version) = "3.0", |
||||
(envoy.annotations.disallowed_by_default) = true |
||||
]; |
||||
|
||||
// Enables the Stackdriver exporter if set to true. The project_id must also |
||||
// be set. |
||||
bool stackdriver_exporter_enabled = 3 [ |
||||
deprecated = true, |
||||
(envoy.annotations.deprecated_at_minor_version) = "3.0", |
||||
(envoy.annotations.disallowed_by_default) = true |
||||
]; |
||||
|
||||
// The Cloud project_id to use for Stackdriver tracing. |
||||
string stackdriver_project_id = 4 [ |
||||
deprecated = true, |
||||
(envoy.annotations.deprecated_at_minor_version) = "3.0", |
||||
(envoy.annotations.disallowed_by_default) = true |
||||
]; |
||||
|
||||
// (optional) By default, the Stackdriver exporter will connect to production |
||||
// Stackdriver. If stackdriver_address is non-empty, it will instead connect |
||||
// to this address, which is in the gRPC format: |
||||
// https://github.com/grpc/grpc/blob/master/doc/naming.md |
||||
string stackdriver_address = 10 [ |
||||
deprecated = true, |
||||
(envoy.annotations.deprecated_at_minor_version) = "3.0", |
||||
(envoy.annotations.disallowed_by_default) = true |
||||
]; |
||||
|
||||
// (optional) The gRPC server that hosts Stackdriver tracing service. Only |
||||
// Google gRPC is supported. If :ref:`target_uri <envoy_v3_api_field_config.core.v3.GrpcService.GoogleGrpc.target_uri>` |
||||
// is not provided, the default production Stackdriver address will be used. |
||||
core.v3.GrpcService stackdriver_grpc_service = 13 [ |
||||
deprecated = true, |
||||
(envoy.annotations.deprecated_at_minor_version) = "3.0", |
||||
(envoy.annotations.disallowed_by_default) = true |
||||
]; |
||||
|
||||
// Enables the Zipkin exporter if set to true. The url and service name must |
||||
// also be set. This is deprecated, prefer to use Envoy's :ref:`native Zipkin |
||||
// tracer <envoy_v3_api_msg_config.trace.v3.ZipkinConfig>`. |
||||
bool zipkin_exporter_enabled = 5 [ |
||||
deprecated = true, |
||||
(envoy.annotations.deprecated_at_minor_version) = "3.0", |
||||
(envoy.annotations.disallowed_by_default) = true |
||||
]; |
||||
|
||||
// The URL to Zipkin, e.g. "http://127.0.0.1:9411/api/v2/spans". This is |
||||
// deprecated, prefer to use Envoy's :ref:`native Zipkin tracer |
||||
// <envoy_v3_api_msg_config.trace.v3.ZipkinConfig>`. |
||||
string zipkin_url = 6 [ |
||||
deprecated = true, |
||||
(envoy.annotations.deprecated_at_minor_version) = "3.0", |
||||
(envoy.annotations.disallowed_by_default) = true |
||||
]; |
||||
|
||||
// Enables the OpenCensus Agent exporter if set to true. The ocagent_address or |
||||
// ocagent_grpc_service must also be set. |
||||
bool ocagent_exporter_enabled = 11 [ |
||||
deprecated = true, |
||||
(envoy.annotations.deprecated_at_minor_version) = "3.0", |
||||
(envoy.annotations.disallowed_by_default) = true |
||||
]; |
||||
|
||||
// The address of the OpenCensus Agent, if its exporter is enabled, in gRPC |
||||
// format: https://github.com/grpc/grpc/blob/master/doc/naming.md |
||||
// [#comment:TODO: deprecate this field] |
||||
string ocagent_address = 12 [ |
||||
deprecated = true, |
||||
(envoy.annotations.deprecated_at_minor_version) = "3.0", |
||||
(envoy.annotations.disallowed_by_default) = true |
||||
]; |
||||
|
||||
// (optional) The gRPC server hosted by the OpenCensus Agent. Only Google gRPC is supported. |
||||
// This is only used if the ocagent_address is left empty. |
||||
core.v3.GrpcService ocagent_grpc_service = 14 [ |
||||
deprecated = true, |
||||
(envoy.annotations.deprecated_at_minor_version) = "3.0", |
||||
(envoy.annotations.disallowed_by_default) = true |
||||
]; |
||||
|
||||
// List of incoming trace context headers we will accept. First one found |
||||
// wins. |
||||
repeated TraceContext incoming_trace_context = 8 [ |
||||
deprecated = true, |
||||
(envoy.annotations.deprecated_at_minor_version) = "3.0", |
||||
(envoy.annotations.disallowed_by_default) = true |
||||
]; |
||||
|
||||
// List of outgoing trace context headers we will produce. |
||||
repeated TraceContext outgoing_trace_context = 9 [ |
||||
deprecated = true, |
||||
(envoy.annotations.deprecated_at_minor_version) = "3.0", |
||||
(envoy.annotations.disallowed_by_default) = true |
||||
]; |
||||
} |
@ -1,14 +0,0 @@ |
||||
# DO NOT EDIT. This file is generated by tools/proto_format/proto_sync.py. |
||||
|
||||
load("@envoy_api//bazel:api_build_system.bzl", "api_proto_package") |
||||
|
||||
licenses(["notice"]) # Apache 2 |
||||
|
||||
api_proto_package( |
||||
has_services = True, |
||||
deps = [ |
||||
"//envoy/api/v2/core:pkg", |
||||
"@com_github_cncf_xds//udpa/annotations:pkg", |
||||
"@opencensus_proto//opencensus/proto/trace/v1:trace_proto", |
||||
], |
||||
) |
@ -1,46 +0,0 @@ |
||||
syntax = "proto3"; |
||||
|
||||
package envoy.service.trace.v2; |
||||
|
||||
import "envoy/api/v2/core/base.proto"; |
||||
|
||||
import "opencensus/proto/trace/v1/trace.proto"; |
||||
|
||||
import "udpa/annotations/status.proto"; |
||||
import "validate/validate.proto"; |
||||
|
||||
option java_package = "io.envoyproxy.envoy.service.trace.v2"; |
||||
option java_outer_classname = "TraceServiceProto"; |
||||
option java_multiple_files = true; |
||||
option go_package = "github.com/envoyproxy/go-control-plane/envoy/service/trace/v2;tracev2"; |
||||
option (udpa.annotations.file_status).package_version_status = FROZEN; |
||||
|
||||
// [#protodoc-title: Trace service] |
||||
|
||||
// Service for streaming traces to server that consumes the trace data. It |
||||
// uses OpenCensus data model as a standard to represent trace information. |
||||
service TraceService { |
||||
// Envoy will connect and send StreamTracesMessage messages forever. It does |
||||
// not expect any response to be sent as nothing would be done in the case |
||||
// of failure. |
||||
rpc StreamTraces(stream StreamTracesMessage) returns (StreamTracesResponse) { |
||||
} |
||||
} |
||||
|
||||
message StreamTracesResponse { |
||||
} |
||||
|
||||
message StreamTracesMessage { |
||||
message Identifier { |
||||
// The node sending the access log messages over the stream. |
||||
api.v2.core.Node node = 1 [(validate.rules).message = {required: true}]; |
||||
} |
||||
|
||||
// Identifier data effectively is a structured metadata. |
||||
// As a performance optimization this will only be sent in the first message |
||||
// on the stream. |
||||
Identifier identifier = 1; |
||||
|
||||
// A list of Span entries |
||||
repeated opencensus.proto.trace.v1.Span spans = 2; |
||||
} |
@ -1,14 +0,0 @@ |
||||
# DO NOT EDIT. This file is generated by tools/proto_format/proto_sync.py. |
||||
|
||||
load("@envoy_api//bazel:api_build_system.bzl", "api_proto_package") |
||||
|
||||
licenses(["notice"]) # Apache 2 |
||||
|
||||
api_proto_package( |
||||
has_services = True, |
||||
deps = [ |
||||
"//envoy/config/core/v3:pkg", |
||||
"@com_github_cncf_xds//udpa/annotations:pkg", |
||||
"@opencensus_proto//opencensus/proto/trace/v1:trace_proto", |
||||
], |
||||
) |
@ -1,55 +0,0 @@ |
||||
syntax = "proto3"; |
||||
|
||||
package envoy.service.trace.v3; |
||||
|
||||
import "envoy/config/core/v3/base.proto"; |
||||
|
||||
import "opencensus/proto/trace/v1/trace.proto"; |
||||
|
||||
import "udpa/annotations/status.proto"; |
||||
import "udpa/annotations/versioning.proto"; |
||||
import "validate/validate.proto"; |
||||
|
||||
option java_package = "io.envoyproxy.envoy.service.trace.v3"; |
||||
option java_outer_classname = "TraceServiceProto"; |
||||
option java_multiple_files = true; |
||||
option go_package = "github.com/envoyproxy/go-control-plane/envoy/service/trace/v3;tracev3"; |
||||
option (udpa.annotations.file_status).package_version_status = ACTIVE; |
||||
|
||||
// [#protodoc-title: Trace service] |
||||
|
||||
// Service for streaming traces to server that consumes the trace data. It |
||||
// uses OpenCensus data model as a standard to represent trace information. |
||||
service TraceService { |
||||
// Envoy will connect and send StreamTracesMessage messages forever. It does |
||||
// not expect any response to be sent as nothing would be done in the case |
||||
// of failure. |
||||
rpc StreamTraces(stream StreamTracesMessage) returns (StreamTracesResponse) { |
||||
} |
||||
} |
||||
|
||||
message StreamTracesResponse { |
||||
option (udpa.annotations.versioning).previous_message_type = |
||||
"envoy.service.trace.v2.StreamTracesResponse"; |
||||
} |
||||
|
||||
message StreamTracesMessage { |
||||
option (udpa.annotations.versioning).previous_message_type = |
||||
"envoy.service.trace.v2.StreamTracesMessage"; |
||||
|
||||
message Identifier { |
||||
option (udpa.annotations.versioning).previous_message_type = |
||||
"envoy.service.trace.v2.StreamTracesMessage.Identifier"; |
||||
|
||||
// The node sending the access log messages over the stream. |
||||
config.core.v3.Node node = 1 [(validate.rules).message = {required: true}]; |
||||
} |
||||
|
||||
// Identifier data effectively is a structured metadata. |
||||
// As a performance optimization this will only be sent in the first message |
||||
// on the stream. |
||||
Identifier identifier = 1; |
||||
|
||||
// A list of Span entries |
||||
repeated opencensus.proto.trace.v1.Span spans = 2; |
||||
} |
Loading…
Reference in new issue