Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ coverage:
ignore:
- "linkerd/app/integration/src/**"
- "**/src/gen/**"
- "tools/**"

precision: 2
round: down
Expand All @@ -18,7 +17,6 @@ coverage:
paths:
- "!linkerd/app/integration/src/**"
- "!**/src/gen/**"
- "!tools/**"

patch:
default:
Expand Down
1 change: 0 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
Cargo.lock linguist-generated=false
linkerd/transport-header/src/gen/* linguist-generated=true
opencensus-proto/src/gen/* linguist-generated=true
4 changes: 2 additions & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ jobs:
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
- uses: Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0
- run: cargo tarpaulin --locked --workspace --exclude=linkerd2-proxy --exclude=linkerd-transport-header --exclude=opencensus-proto --exclude=spire-proto --no-run
- run: cargo tarpaulin --locked --workspace --exclude=linkerd2-proxy --exclude=linkerd-transport-header --exclude=opencensus-proto --exclude=spire-proto --skip-clean --ignore-tests --no-fail-fast --out=Xml
- run: cargo tarpaulin --locked --workspace --exclude=linkerd2-proxy --exclude=linkerd-transport-header --exclude=spire-proto --no-run
- run: cargo tarpaulin --locked --workspace --exclude=linkerd2-proxy --exclude=linkerd-transport-header --exclude=spire-proto --skip-clean --ignore-tests --no-fail-fast --out=Xml
# Some tests are especially flakey in coverage tests. That's fine. We
# only really care to measure how much of our codebase is covered.
continue-on-error: true
Expand Down
28 changes: 0 additions & 28 deletions Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1374,7 +1374,6 @@ dependencies = [
"linkerd-app-inbound",
"linkerd-app-outbound",
"linkerd-error",
"linkerd-opencensus",
"linkerd-opentelemetry",
"linkerd-tonic-stream",
"linkerd-workers",
Expand Down Expand Up @@ -1436,7 +1435,6 @@ dependencies = [
"linkerd-meshtls",
"linkerd-metrics",
"linkerd-mock-http-body",
"linkerd-opencensus",
"linkerd-opentelemetry",
"linkerd-proxy-api-resolve",
"linkerd-proxy-balance",
Expand Down Expand Up @@ -2061,22 +2059,6 @@ dependencies = [
name = "linkerd-opaq-route"
version = "0.1.0"

[[package]]
name = "linkerd-opencensus"
version = "0.1.0"
dependencies = [
"futures",
"http-body",
"linkerd-error",
"linkerd-metrics",
"linkerd-trace-context",
"opencensus-proto",
"tokio",
"tokio-stream",
"tonic",
"tracing",
]

[[package]]
name = "linkerd-opentelemetry"
version = "0.1.0"
Expand Down Expand Up @@ -2930,16 +2912,6 @@ dependencies = [
"portable-atomic",
]

[[package]]
name = "opencensus-proto"
version = "0.1.0"
dependencies = [
"prost 0.13.5",
"prost-types 0.13.5",
"tonic",
"tonic-build",
]

[[package]]
name = "opentelemetry"
version = "0.30.0"
Expand Down
3 changes: 0 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ members = [
"linkerd/metrics",
"linkerd/mock/http-body",
"linkerd/opaq-route",
"linkerd/opencensus",
"linkerd/opentelemetry",
"linkerd/pool",
"linkerd/pool/mock",
Expand Down Expand Up @@ -85,9 +84,7 @@ members = [
"linkerd/transport-metrics",
"linkerd/workers",
"linkerd2-proxy",
"opencensus-proto",
"spiffe-proto",
"tools",
]

[profile.release]
Expand Down
1 change: 0 additions & 1 deletion linkerd/app/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ linkerd-app-gateway = { path = "./gateway" }
linkerd-app-inbound = { path = "./inbound" }
linkerd-app-outbound = { path = "./outbound" }
linkerd-error = { path = "../error" }
linkerd-opencensus = { path = "../opencensus" }
linkerd-opentelemetry = { path = "../opentelemetry" }
linkerd-tonic-stream = { path = "../tonic-stream" }
linkerd-workers = { path = "../workers" }
Expand Down
1 change: 0 additions & 1 deletion linkerd/app/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ linkerd-idle-cache = { path = "../../idle-cache" }
linkerd-io = { path = "../../io" }
linkerd-meshtls = { path = "../../meshtls", default-features = false }
linkerd-metrics = { path = "../../metrics", features = ["process", "stack"] }
linkerd-opencensus = { path = "../../opencensus" }
linkerd-opentelemetry = { path = "../../opentelemetry" }
linkerd-proxy-api-resolve = { path = "../../proxy/api-resolve" }
linkerd-proxy-balance = { path = "../../proxy/balance" }
Expand Down
5 changes: 1 addition & 4 deletions linkerd/app/core/src/http_tracing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,14 @@ use tokio::sync::mpsc;
#[derive(Debug, Copy, Clone, Default)]
pub enum CollectorProtocol {
#[default]
OpenCensus,
OpenTelemetry,
}

impl FromStr for CollectorProtocol {
type Err = ();

fn from_str(s: &str) -> Result<Self, Self::Err> {
if s.eq_ignore_ascii_case("opencensus") {
Ok(Self::OpenCensus)
} else if s.eq_ignore_ascii_case("opentelemetry") {
if s.eq_ignore_ascii_case("opentelemetry") {
Ok(Self::OpenTelemetry)
} else {
Err(())
Expand Down
1 change: 0 additions & 1 deletion linkerd/app/core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ pub use linkerd_exp_backoff as exp_backoff;
pub use linkerd_http_metrics as http_metrics;
pub use linkerd_idle_cache as idle_cache;
pub use linkerd_io as io;
pub use linkerd_opencensus as opencensus;
pub use linkerd_opentelemetry as opentelemetry;
pub use linkerd_service_profiles as profiles;
pub use linkerd_stack_metrics as stack_metrics;
Expand Down
6 changes: 1 addition & 5 deletions linkerd/app/core/src/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
pub use crate::transport::labels::{TargetAddr, TlsAccept};
use crate::{
classify::Class,
control, http_metrics, opencensus, opentelemetry, profiles, proxy, stack_metrics, svc, tls,
control, http_metrics, opentelemetry, profiles, proxy, stack_metrics, svc, tls,
transport::{self, labels::TlsConnect},
};
use linkerd_addr::Addr;
Expand Down Expand Up @@ -37,7 +37,6 @@ pub type Stack = stack_metrics::Registry<StackLabels>;
pub struct Metrics {
pub proxy: Proxy,
pub control: ControlHttp,
pub opencensus: opencensus::metrics::Registry,
pub opentelemetry: opentelemetry::metrics::Registry,
}

Expand Down Expand Up @@ -213,13 +212,11 @@ impl Metrics {
transport,
};

let (opencensus, opencensus_report) = opencensus::metrics::new();
let (opentelemetry, opentelemetry_report) = opentelemetry::metrics::new();

let metrics = Metrics {
proxy,
control,
opencensus,
opentelemetry,
};

Expand All @@ -230,7 +227,6 @@ impl Metrics {
.and_report(actual_report)
.and_report(control_report)
.and_report(transport_report)
.and_report(opencensus_report)
.and_report(opentelemetry_report)
.and_report(stack);

Expand Down
10 changes: 1 addition & 9 deletions linkerd/app/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,16 +206,8 @@ impl Config {
let dns = dns.resolver("trace_collector");
let client_metrics = metrics.control.clone();
let otel_metrics = metrics.opentelemetry;
let oc_metrics = metrics.opencensus;
info_span!("tracing").in_scope(|| {
trace_collector.build(
identity,
dns,
oc_metrics,
otel_metrics,
control_metrics,
client_metrics,
)
trace_collector.build(identity, dns, otel_metrics, control_metrics, client_metrics)
})
}?;

Expand Down
13 changes: 1 addition & 12 deletions linkerd/app/src/trace_collector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@ use linkerd_app_core::{
http_tracing::{CollectorProtocol, SpanSink},
identity,
metrics::ControlHttp as HttpMetrics,
opencensus, opentelemetry,
opentelemetry,
svc::NewService,
};
use linkerd_error::Error;
use otel_collector::OtelCollectorAttributes;
use std::{collections::HashMap, future::Future, pin::Pin};

pub mod oc_collector;
pub mod otel_collector;

const SPAN_BUFFER_CAPACITY: usize = 100;
Expand Down Expand Up @@ -59,7 +58,6 @@ impl Config {
match self {
Config::Disabled => None,
Config::Enabled(config) => match config.kind {
CollectorProtocol::OpenCensus => Some("opencensus"),
CollectorProtocol::OpenTelemetry => Some("opentelemetry"),
},
}
Expand All @@ -69,7 +67,6 @@ impl Config {
self,
identity: identity::NewClient,
dns: dns::Resolver,
legacy_oc_metrics: opencensus::metrics::Registry,
legacy_otel_metrics: opentelemetry::metrics::Registry,
control_metrics: control::Metrics,
client_metrics: HttpMetrics,
Expand All @@ -87,14 +84,6 @@ impl Config {
.unwrap_or_else(|| SERVICE_NAME.to_string());

let collector = match inner.kind {
CollectorProtocol::OpenCensus => oc_collector::create_collector(
addr.clone(),
inner.hostname,
svc_name,
inner.attributes,
svc,
legacy_oc_metrics,
),
CollectorProtocol::OpenTelemetry => {
let attributes = OtelCollectorAttributes {
hostname: inner.hostname,
Expand Down
57 changes: 0 additions & 57 deletions linkerd/app/src/trace_collector/oc_collector.rs

This file was deleted.

22 changes: 0 additions & 22 deletions linkerd/opencensus/Cargo.toml

This file was deleted.

Loading
Loading