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
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ add_subdirectory(container-apache-http-client-bundle)
add_subdirectory(container-disc)
add_subdirectory(container-messagebus)
add_subdirectory(container-onnxruntime)
add_subdirectory(container-opentelemetry)
add_subdirectory(container-llama)
add_subdirectory(container-search)
add_subdirectory(container-search-and-docproc)
Expand Down
1 change: 0 additions & 1 deletion config-model-api/abi-spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -1415,7 +1415,6 @@
"public double feedNiceness()",
"public int maxUnCommittedMemory()",
"public boolean containerDumpHeapOnShutdownTimeout()",
"public com.yahoo.config.provision.OpenTelemetryConfiguration opentelemetrySdk()",
"public int heapSizePercentage(java.util.Optional)",
"public java.util.List allowedAthenzProxyIdentities()",
"public int maxActivationInhibitedOutOfSyncGroups()",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import com.yahoo.config.provision.DockerImage;
import com.yahoo.config.provision.HostName;
import com.yahoo.config.provision.NodeResources.Architecture;
import com.yahoo.config.provision.OpenTelemetryConfiguration;
import com.yahoo.config.provision.SharedHosts;

import java.io.File;
Expand Down Expand Up @@ -97,7 +96,6 @@ interface FeatureFlags {
@ModelFeatureFlag(owners = {"hmusum"}) default double feedNiceness() { return 0.0; }
@ModelFeatureFlag(owners = {"hmusum"}) default int maxUnCommittedMemory() { return 130000; }
@ModelFeatureFlag(owners = {"bjorncs"}) default boolean containerDumpHeapOnShutdownTimeout() { return false; }
@ModelFeatureFlag(owners = {"onur"}) default OpenTelemetryConfiguration opentelemetrySdk() { return OpenTelemetryConfiguration.disabled(); }
@ModelFeatureFlag(owners = {"hmusum"}) default int heapSizePercentage(Optional<String> clusterId) { return 0;}
@ModelFeatureFlag(owners = {"bjorncs"}) default List<String> allowedAthenzProxyIdentities() { return List.of(); }
@ModelFeatureFlag(owners = {"vekterli"}) default int maxActivationInhibitedOutOfSyncGroups() { return 0; }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.model.container;

import ai.vespa.telemetry.TelemetryConfig;
import com.yahoo.cloud.config.ClusterInfoConfig;
import com.yahoo.cloud.config.ConfigserverConfig;
import com.yahoo.cloud.config.CuratorConfig;
Expand All @@ -14,7 +13,6 @@
import com.yahoo.config.model.producer.AnyConfigProducer;
import com.yahoo.config.model.producer.TreeConfigProducer;
import com.yahoo.config.provision.ClusterSpec;
import com.yahoo.config.provision.OpenTelemetryConfiguration;
import com.yahoo.config.provision.Zone;
import com.yahoo.container.ComponentsConfig;
import com.yahoo.container.QrSearchersConfig;
Expand Down Expand Up @@ -111,8 +109,7 @@ public abstract class ContainerCluster<CONTAINER extends Container>
ClusterInfoConfig.Producer,
ConfigserverConfig.Producer,
CuratorConfig.Producer,
SchemaInfoConfig.Producer,
TelemetryConfig.Producer
SchemaInfoConfig.Producer
{

/**
Expand Down Expand Up @@ -171,8 +168,6 @@ public abstract class ContainerCluster<CONTAINER extends Container>

private volatile boolean deferChangesUntilRestart = false;
private final boolean applyOnRestartForApplicationMetadataConfigEnabled;
private final OpenTelemetryConfiguration opentelemetrySdk;
private final Map<String, String> telemetryResourceAttributes;
private boolean clientsLegacyMode;
private List<Client> clients = List.of();

Expand All @@ -184,9 +179,7 @@ public ContainerCluster(TreeConfigProducer<?> parent, String configSubId, String
this.zooKeeperLocalhostAffinity = zooKeeperLocalhostAffinity;
this.compressionType = "zstd";
applyOnRestartForApplicationMetadataConfigEnabled = deployState.featureFlags().applyOnRestartForApplicationMetadataConfig();
opentelemetrySdk = deployState.featureFlags().opentelemetrySdk();
telemetryResourceAttributes = telemetryResourceAttributes(deployState, clusterId);


componentGroup = new ComponentGroup<>(this, "component");

addCommonVespaBundles();
Expand All @@ -206,8 +199,6 @@ public ContainerCluster(TreeConfigProducer<?> parent, String configSubId, String
addSimpleComponent(com.yahoo.container.handler.ClustersStatus.class.getName());
addSimpleComponent("com.yahoo.container.jdisc.DisabledConnectionLogProvider");
addSimpleComponent(com.yahoo.jdisc.http.server.jetty.Janitor.class);
// OpenTelemetry tracing provider: present in all container types; hands out a no-op instance unless enabled.
addSimpleComponent("com.yahoo.container.jdisc.telemetry.OpenTelemetryProvider");
}

protected abstract boolean messageBusEnabled();
Expand Down Expand Up @@ -575,32 +566,6 @@ public void getConfig(QrSearchersConfig.Builder builder) {
if (containerSearch != null) containerSearch.getConfig(builder);
}

@Override
public void getConfig(TelemetryConfig.Builder builder) {
builder.enabled(opentelemetrySdk.enabled())
.endpoint(opentelemetrySdk.endpoint())
.samplingRatio(opentelemetrySdk.samplingRatio());
builder.resourceAttribute.putAll(telemetryResourceAttributes);
}

/**
* Resource attributes describing this container service, filled from the deployment identity available
* in the model. Used by the OpenTelemetry provider to build the OTel {@code Resource}.
*/
private Map<String, String> telemetryResourceAttributes(DeployState deployState, String clusterId) {
var applicationId = deployState.getProperties().applicationId();

Map<String, String> attributes = new LinkedHashMap<>();
attributes.put("application", applicationId.application().value());
attributes.put("tenant", applicationId.tenant().value());
attributes.put("zone", this.zone.systemLocalValue());
attributes.put("environment", this.zone.environment().value());
attributes.put("cloud", this.zone.cloud().toString());
attributes.put("cluster.type", "container");
attributes.put("cluster.id", clusterId);
return attributes;
}

@Override
public void getConfig(QrStartConfig.Builder builder) {
builder.jvm
Expand Down

This file was deleted.

This file was deleted.

12 changes: 0 additions & 12 deletions configdefinitions/src/vespa/telemetry.def

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
import com.yahoo.config.provision.DockerImage;
import com.yahoo.config.provision.HostName;
import com.yahoo.config.provision.NodeResources.Architecture;
import com.yahoo.config.provision.OpenTelemetryConfiguration;
import com.yahoo.config.provision.SharedHosts;
import com.yahoo.vespa.flags.Flag;
import com.yahoo.vespa.flags.FlagSource;
Expand Down Expand Up @@ -224,7 +223,6 @@ private <T, F extends Flag<T, F>, U extends UnboundFlag<T, F, U>> ModelContext.F
@Override public double feedConcurrency() { return flag(PermanentFlags.FEED_CONCURRENCY).value(); }
@Override public double feedNiceness() { return flag(PermanentFlags.FEED_NICENESS).value(); }
@Override public int mbusNetworkThreads() { return flag(Flags.MBUS_NUM_NETWORK_THREADS).value(); }
@Override public OpenTelemetryConfiguration opentelemetrySdk() { return flag(Flags.OPENTELEMETRY_SDK).value(); }
@Override public List<String> allowedAthenzProxyIdentities() { return flag(PermanentFlags.ALLOWED_ATHENZ_PROXY_IDENTITIES).value(); }
@Override public int maxActivationInhibitedOutOfSyncGroups() { return flag(PermanentFlags.MAX_ACTIVATION_INHIBITED_OUT_OF_SYNC_GROUPS).value(); }
@Override public double resourceLimitDisk() { return flag(PermanentFlags.RESOURCE_LIMIT_DISK).value(); }
Expand Down
7 changes: 0 additions & 7 deletions container-dependency-versions/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,6 @@

<dependencyManagement>
<dependencies>
<dependency>
<groupId>io.opentelemetry</groupId>
<artifactId>opentelemetry-bom</artifactId>
<version>${opentelemetry.vespa.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>aopalliance</groupId>
<artifactId>aopalliance</artifactId>
Expand Down
8 changes: 0 additions & 8 deletions container-dev/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -187,14 +187,6 @@
<version>${project.version}</version>
<type>pom</type>
</dependency>
<!-- OpenTelemetry API only: this is what the in-process container test harness needs to instantiate the
(disabled, no-op) OpenTelemetryProvider, and all that 3rd-party container projects should compile
against. The SDK is loaded lazily by OpenTelemetrySdkBuilder and supplied at runtime by the
pre-installed container-opentelemetry bundle. -->
<dependency>
<groupId>io.opentelemetry</groupId>
<artifactId>opentelemetry-api</artifactId>
</dependency>
<dependency>
<groupId>com.yahoo.vespa</groupId>
<artifactId>vespajlib</artifactId>
Expand Down
24 changes: 0 additions & 24 deletions container-disc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -285,29 +285,6 @@
<!-- END JETTY embedded jars -->

<!-- PROVIDED scope dependencies -->
<!-- OpenTelemetry API/SDK: compiled against here, provided at runtime by container-opentelemetry -->
<dependency>
<groupId>io.opentelemetry</groupId>
<artifactId>opentelemetry-api</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>io.opentelemetry</groupId>
<artifactId>opentelemetry-sdk</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>io.opentelemetry</groupId>
<artifactId>opentelemetry-exporter-otlp</artifactId>
<scope>provided</scope>
<exclusions>
<!-- Sender is resolved at runtime from container-opentelemetry (jdk sender); never pull okhttp -->
<exclusion>
<groupId>io.opentelemetry</groupId>
<artifactId>opentelemetry-exporter-sender-okhttp</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.yahoo.vespa</groupId>
<artifactId>annotations</artifactId>
Expand Down Expand Up @@ -515,7 +492,6 @@
configdefinitions-jar-with-dependencies.jar,
hosted-zone-api-jar-with-dependencies.jar,
container-apache-http-client-bundle-jar-with-dependencies.jar,
container-opentelemetry-jar-with-dependencies.jar,
security-utils.jar,
bcprov-jdk18on-${bouncycastle.vespa.version}.jar, <!-- Used by security-utils -->
bcpkix-jdk18on-${bouncycastle.vespa.version}.jar, <!-- Used by security-utils -->
Expand Down

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions container-opentelemetry/CMakeLists.txt

This file was deleted.

Loading