diff --git a/apm-agent-core/src/main/java/co/elastic/apm/agent/configuration/converter/WildcardMatcher.java b/apm-agent-core/src/main/java/co/elastic/apm/agent/configuration/converter/WildcardMatcher.java
index db6d3fb965..39c79f7928 100644
--- a/apm-agent-core/src/main/java/co/elastic/apm/agent/configuration/converter/WildcardMatcher.java
+++ b/apm-agent-core/src/main/java/co/elastic/apm/agent/configuration/converter/WildcardMatcher.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to Elasticsearch B.V. under one or more contributor
+ * license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright
+ * ownership. Elasticsearch B.V. licenses this file to you 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.
+ */
package co.elastic.apm.agent.configuration.converter;
import javax.annotation.Nullable;
diff --git a/apm-agent-core/src/main/java/co/elastic/apm/agent/impl/transaction/AbstractSpan.java b/apm-agent-core/src/main/java/co/elastic/apm/agent/impl/transaction/AbstractSpan.java
index 5e445458c8..35eb3d5b31 100644
--- a/apm-agent-core/src/main/java/co/elastic/apm/agent/impl/transaction/AbstractSpan.java
+++ b/apm-agent-core/src/main/java/co/elastic/apm/agent/impl/transaction/AbstractSpan.java
@@ -904,13 +904,6 @@ public void setHeader(String headerName, String headerValue, C carrier) {
@Override
public T withOutcome(co.elastic.apm.plugin.spi.Outcome outcome) {
- String name = outcome.name();
- if (name.equals(Outcome.FAILURE.name())) {
- return withOutcome(Outcome.FAILURE);
- } else if (name.equals(Outcome.SUCCESS.name())) {
- return withOutcome(Outcome.SUCCESS);
- } else {
- return withOutcome(Outcome.UNKNOWN);
- }
+ return withOutcome(Outcome.valueOf(outcome));
}
}
diff --git a/apm-agent-core/src/main/java/co/elastic/apm/agent/impl/transaction/BinaryHeaderGetterBridge.java b/apm-agent-core/src/main/java/co/elastic/apm/agent/impl/transaction/BinaryHeaderGetterBridge.java
index 8816f0e9e4..7a942a0a08 100644
--- a/apm-agent-core/src/main/java/co/elastic/apm/agent/impl/transaction/BinaryHeaderGetterBridge.java
+++ b/apm-agent-core/src/main/java/co/elastic/apm/agent/impl/transaction/BinaryHeaderGetterBridge.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to Elasticsearch B.V. under one or more contributor
+ * license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright
+ * ownership. Elasticsearch B.V. licenses this file to you 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.
+ */
package co.elastic.apm.agent.impl.transaction;
import co.elastic.apm.plugin.spi.HeaderGetter;
diff --git a/apm-agent-core/src/main/java/co/elastic/apm/agent/impl/transaction/HeaderConsumerBridge.java b/apm-agent-core/src/main/java/co/elastic/apm/agent/impl/transaction/HeaderConsumerBridge.java
index 012de10856..1510541ca1 100644
--- a/apm-agent-core/src/main/java/co/elastic/apm/agent/impl/transaction/HeaderConsumerBridge.java
+++ b/apm-agent-core/src/main/java/co/elastic/apm/agent/impl/transaction/HeaderConsumerBridge.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to Elasticsearch B.V. under one or more contributor
+ * license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright
+ * ownership. Elasticsearch B.V. licenses this file to you 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.
+ */
package co.elastic.apm.agent.impl.transaction;
import javax.annotation.Nullable;
diff --git a/apm-agent-core/src/main/java/co/elastic/apm/agent/impl/transaction/HeaderGetterBridge.java b/apm-agent-core/src/main/java/co/elastic/apm/agent/impl/transaction/HeaderGetterBridge.java
index 78cab4611d..e0cddaf5a5 100644
--- a/apm-agent-core/src/main/java/co/elastic/apm/agent/impl/transaction/HeaderGetterBridge.java
+++ b/apm-agent-core/src/main/java/co/elastic/apm/agent/impl/transaction/HeaderGetterBridge.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to Elasticsearch B.V. under one or more contributor
+ * license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright
+ * ownership. Elasticsearch B.V. licenses this file to you 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.
+ */
package co.elastic.apm.agent.impl.transaction;
import javax.annotation.Nullable;
diff --git a/apm-agent-core/src/main/java/co/elastic/apm/agent/impl/transaction/Outcome.java b/apm-agent-core/src/main/java/co/elastic/apm/agent/impl/transaction/Outcome.java
index bfdd846032..f9cce4c1d1 100644
--- a/apm-agent-core/src/main/java/co/elastic/apm/agent/impl/transaction/Outcome.java
+++ b/apm-agent-core/src/main/java/co/elastic/apm/agent/impl/transaction/Outcome.java
@@ -32,6 +32,16 @@ public enum Outcome implements co.elastic.apm.plugin.spi.Outcome {
this.stringValue = stringValue;
}
+ public static Outcome valueOf(co.elastic.apm.plugin.spi.Outcome outcome) {
+ if (outcome.name().equals(FAILURE.name())) {
+ return FAILURE;
+ } else if (outcome.name().equals(SUCCESS.name())) {
+ return SUCCESS;
+ } else {
+ return UNKNOWN;
+ }
+ }
+
@Override
public String toString() {
return stringValue;
diff --git a/apm-agent-core/src/main/java/co/elastic/apm/agent/impl/transaction/TextHeaderGetterBridge.java b/apm-agent-core/src/main/java/co/elastic/apm/agent/impl/transaction/TextHeaderGetterBridge.java
index c1a5828b11..7513f80fec 100644
--- a/apm-agent-core/src/main/java/co/elastic/apm/agent/impl/transaction/TextHeaderGetterBridge.java
+++ b/apm-agent-core/src/main/java/co/elastic/apm/agent/impl/transaction/TextHeaderGetterBridge.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to Elasticsearch B.V. under one or more contributor
+ * license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright
+ * ownership. Elasticsearch B.V. licenses this file to you 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.
+ */
package co.elastic.apm.agent.impl.transaction;
import javax.annotation.Nullable;
diff --git a/apm-agent-plugin-spi/pom.xml b/apm-agent-plugin-spi/pom.xml
index 112155d86c..cb4d787d01 100644
--- a/apm-agent-plugin-spi/pom.xml
+++ b/apm-agent-plugin-spi/pom.xml
@@ -10,5 +10,50 @@
apm-agent-plugin-spi
+ ${project.groupId}:${project.artifactId}
+
+
+ The Apache Software License, Version 2.0
+ http://www.apache.org/licenses/LICENSE-2.0.txt
+
+
+
+
+ ${project.basedir}/..
+
+
+
+
+ net.bytebuddy
+ byte-buddy-dep
+
+
+
+
+
+
+ maven-source-plugin
+
+
+ generate-source-jar
+ package
+
+ jar-no-fork
+
+
+
+
+
+ maven-jar-plugin
+
+
+
+ ${project.groupId}.pluginspi
+
+
+
+
+
+
diff --git a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/AbstractContext.java b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/AbstractContext.java
index 8455ffc648..bca8edeb5d 100644
--- a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/AbstractContext.java
+++ b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/AbstractContext.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to Elasticsearch B.V. under one or more contributor
+ * license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright
+ * ownership. Elasticsearch B.V. licenses this file to you 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.
+ */
package co.elastic.apm.plugin.spi;
public interface AbstractContext {
diff --git a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/AbstractSpan.java b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/AbstractSpan.java
index 4231446ce6..c2fc8a5a39 100644
--- a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/AbstractSpan.java
+++ b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/AbstractSpan.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to Elasticsearch B.V. under one or more contributor
+ * license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright
+ * ownership. Elasticsearch B.V. licenses this file to you 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.
+ */
package co.elastic.apm.plugin.spi;
import javax.annotation.Nullable;
diff --git a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/Allocator.java b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/Allocator.java
index 0b71cf27be..8fa66f8b9b 100644
--- a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/Allocator.java
+++ b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/Allocator.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to Elasticsearch B.V. under one or more contributor
+ * license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright
+ * ownership. Elasticsearch B.V. licenses this file to you 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.
+ */
package co.elastic.apm.plugin.spi;
public interface Allocator {
diff --git a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/BinaryHeaderGetter.java b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/BinaryHeaderGetter.java
index 97e40f827b..aa4ab6dc67 100644
--- a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/BinaryHeaderGetter.java
+++ b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/BinaryHeaderGetter.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to Elasticsearch B.V. under one or more contributor
+ * license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright
+ * ownership. Elasticsearch B.V. licenses this file to you 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.
+ */
package co.elastic.apm.plugin.spi;
public interface BinaryHeaderGetter extends HeaderGetter {
diff --git a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/BinaryHeaderSetter.java b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/BinaryHeaderSetter.java
index 5726da122e..87207af755 100644
--- a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/BinaryHeaderSetter.java
+++ b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/BinaryHeaderSetter.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to Elasticsearch B.V. under one or more contributor
+ * license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright
+ * ownership. Elasticsearch B.V. licenses this file to you 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.
+ */
package co.elastic.apm.plugin.spi;
import javax.annotation.Nullable;
diff --git a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/ChildContextCreator.java b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/ChildContextCreator.java
index 74a533927f..cd66e355fb 100644
--- a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/ChildContextCreator.java
+++ b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/ChildContextCreator.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to Elasticsearch B.V. under one or more contributor
+ * license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright
+ * ownership. Elasticsearch B.V. licenses this file to you 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.
+ */
package co.elastic.apm.plugin.spi;
public interface ChildContextCreator {
diff --git a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/Cloud.java b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/Cloud.java
index ab1584be40..8a1fb4be52 100644
--- a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/Cloud.java
+++ b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/Cloud.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to Elasticsearch B.V. under one or more contributor
+ * license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright
+ * ownership. Elasticsearch B.V. licenses this file to you 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.
+ */
package co.elastic.apm.plugin.spi;
import javax.annotation.Nullable;
diff --git a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/CloudOrigin.java b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/CloudOrigin.java
index 7bef6ca32c..0ab30cb9f5 100644
--- a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/CloudOrigin.java
+++ b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/CloudOrigin.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to Elasticsearch B.V. under one or more contributor
+ * license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright
+ * ownership. Elasticsearch B.V. licenses this file to you 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.
+ */
package co.elastic.apm.plugin.spi;
import javax.annotation.Nullable;
diff --git a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/CoreConfiguration.java b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/CoreConfiguration.java
index 4a1f675bd9..4d2aea899d 100644
--- a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/CoreConfiguration.java
+++ b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/CoreConfiguration.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to Elasticsearch B.V. under one or more contributor
+ * license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright
+ * ownership. Elasticsearch B.V. licenses this file to you 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.
+ */
package co.elastic.apm.plugin.spi;
import java.util.List;
diff --git a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/Db.java b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/Db.java
index 7d4aa26739..333be5cdf9 100644
--- a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/Db.java
+++ b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/Db.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to Elasticsearch B.V. under one or more contributor
+ * license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright
+ * ownership. Elasticsearch B.V. licenses this file to you 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.
+ */
package co.elastic.apm.plugin.spi;
import javax.annotation.Nullable;
diff --git a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/DefaultOutcome.java b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/DefaultOutcome.java
index f0bc3e0de3..6c6aea984f 100644
--- a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/DefaultOutcome.java
+++ b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/DefaultOutcome.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to Elasticsearch B.V. under one or more contributor
+ * license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright
+ * ownership. Elasticsearch B.V. licenses this file to you 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.
+ */
package co.elastic.apm.plugin.spi;
public enum DefaultOutcome implements Outcome {
diff --git a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/Destination.java b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/Destination.java
index 236b4d1a8c..5e8ac2c45a 100644
--- a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/Destination.java
+++ b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/Destination.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to Elasticsearch B.V. under one or more contributor
+ * license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright
+ * ownership. Elasticsearch B.V. licenses this file to you 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.
+ */
package co.elastic.apm.plugin.spi;
import javax.annotation.Nullable;
diff --git a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/DisabledObjectPool.java b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/DisabledObjectPool.java
index 2d63f251e3..f8ffaf7ec0 100644
--- a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/DisabledObjectPool.java
+++ b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/DisabledObjectPool.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to Elasticsearch B.V. under one or more contributor
+ * license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright
+ * ownership. Elasticsearch B.V. licenses this file to you 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.
+ */
package co.elastic.apm.plugin.spi;
public class DisabledObjectPool implements ObjectPool {
diff --git a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/DisabledObjectPoolFactory.java b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/DisabledObjectPoolFactory.java
index d0e442a214..208b398143 100644
--- a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/DisabledObjectPoolFactory.java
+++ b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/DisabledObjectPoolFactory.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to Elasticsearch B.V. under one or more contributor
+ * license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright
+ * ownership. Elasticsearch B.V. licenses this file to you 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.
+ */
package co.elastic.apm.plugin.spi;
public class DisabledObjectPoolFactory implements ObjectPoolFactory {
diff --git a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptyCloud.java b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptyCloud.java
index 5851341cff..2413c595aa 100644
--- a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptyCloud.java
+++ b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptyCloud.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to Elasticsearch B.V. under one or more contributor
+ * license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright
+ * ownership. Elasticsearch B.V. licenses this file to you 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.
+ */
package co.elastic.apm.plugin.spi;
import javax.annotation.Nullable;
diff --git a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptyCloudOrigin.java b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptyCloudOrigin.java
index f49070fdd4..87099f49b6 100644
--- a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptyCloudOrigin.java
+++ b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptyCloudOrigin.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to Elasticsearch B.V. under one or more contributor
+ * license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright
+ * ownership. Elasticsearch B.V. licenses this file to you 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.
+ */
package co.elastic.apm.plugin.spi;
import javax.annotation.Nullable;
diff --git a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptyCoreConfiguration.java b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptyCoreConfiguration.java
index 6c67d6d424..c7f30c7499 100644
--- a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptyCoreConfiguration.java
+++ b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptyCoreConfiguration.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to Elasticsearch B.V. under one or more contributor
+ * license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright
+ * ownership. Elasticsearch B.V. licenses this file to you 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.
+ */
package co.elastic.apm.plugin.spi;
import java.util.Collections;
diff --git a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptyDb.java b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptyDb.java
index 3c052e932f..cf87d55bc6 100644
--- a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptyDb.java
+++ b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptyDb.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to Elasticsearch B.V. under one or more contributor
+ * license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright
+ * ownership. Elasticsearch B.V. licenses this file to you 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.
+ */
package co.elastic.apm.plugin.spi;
import javax.annotation.Nullable;
diff --git a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptyDestination.java b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptyDestination.java
index 853e881b1b..21ac0778f9 100644
--- a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptyDestination.java
+++ b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptyDestination.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to Elasticsearch B.V. under one or more contributor
+ * license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright
+ * ownership. Elasticsearch B.V. licenses this file to you 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.
+ */
package co.elastic.apm.plugin.spi;
import javax.annotation.Nullable;
diff --git a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptyFaas.java b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptyFaas.java
index 980a2a1f5a..31aab11093 100644
--- a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptyFaas.java
+++ b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptyFaas.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to Elasticsearch B.V. under one or more contributor
+ * license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright
+ * ownership. Elasticsearch B.V. licenses this file to you 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.
+ */
package co.elastic.apm.plugin.spi;
import javax.annotation.Nullable;
diff --git a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptyHttp.java b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptyHttp.java
index 6c268b29e6..dd39b782bd 100644
--- a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptyHttp.java
+++ b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptyHttp.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to Elasticsearch B.V. under one or more contributor
+ * license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright
+ * ownership. Elasticsearch B.V. licenses this file to you 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.
+ */
package co.elastic.apm.plugin.spi;
import javax.annotation.Nullable;
diff --git a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptyMessage.java b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptyMessage.java
index 29b1e4ed21..acb25e9f6c 100644
--- a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptyMessage.java
+++ b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptyMessage.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to Elasticsearch B.V. under one or more contributor
+ * license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright
+ * ownership. Elasticsearch B.V. licenses this file to you 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.
+ */
package co.elastic.apm.plugin.spi;
import javax.annotation.Nullable;
diff --git a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptyMessagingConfiguration.java b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptyMessagingConfiguration.java
index a109322c23..be4ce5003d 100644
--- a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptyMessagingConfiguration.java
+++ b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptyMessagingConfiguration.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to Elasticsearch B.V. under one or more contributor
+ * license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright
+ * ownership. Elasticsearch B.V. licenses this file to you 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.
+ */
package co.elastic.apm.plugin.spi;
import java.util.Collection;
diff --git a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptyPotentiallyMultiValuedMap.java b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptyPotentiallyMultiValuedMap.java
index ed512e5e0a..ef7f43e4ac 100644
--- a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptyPotentiallyMultiValuedMap.java
+++ b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptyPotentiallyMultiValuedMap.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to Elasticsearch B.V. under one or more contributor
+ * license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright
+ * ownership. Elasticsearch B.V. licenses this file to you 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.
+ */
package co.elastic.apm.plugin.spi;
import javax.annotation.Nullable;
diff --git a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptyRequest.java b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptyRequest.java
index a40917dd36..4b45f775b3 100644
--- a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptyRequest.java
+++ b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptyRequest.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to Elasticsearch B.V. under one or more contributor
+ * license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright
+ * ownership. Elasticsearch B.V. licenses this file to you 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.
+ */
package co.elastic.apm.plugin.spi;
import javax.annotation.Nullable;
diff --git a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptyResponse.java b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptyResponse.java
index 9aaf2d6cbd..77a3ee59a4 100644
--- a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptyResponse.java
+++ b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptyResponse.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to Elasticsearch B.V. under one or more contributor
+ * license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright
+ * ownership. Elasticsearch B.V. licenses this file to you 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.
+ */
package co.elastic.apm.plugin.spi;
import javax.annotation.Nullable;
diff --git a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptySocket.java b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptySocket.java
index 142d845b19..95f4a2c09f 100644
--- a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptySocket.java
+++ b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptySocket.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to Elasticsearch B.V. under one or more contributor
+ * license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright
+ * ownership. Elasticsearch B.V. licenses this file to you 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.
+ */
package co.elastic.apm.plugin.spi;
import javax.annotation.Nullable;
diff --git a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptyStacktraceConfiguration.java b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptyStacktraceConfiguration.java
index 7bc5f0b972..dec386af82 100644
--- a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptyStacktraceConfiguration.java
+++ b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptyStacktraceConfiguration.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to Elasticsearch B.V. under one or more contributor
+ * license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright
+ * ownership. Elasticsearch B.V. licenses this file to you 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.
+ */
package co.elastic.apm.plugin.spi;
import java.util.Collection;
diff --git a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptyUrl.java b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptyUrl.java
index c64e60d471..508e86c1d6 100644
--- a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptyUrl.java
+++ b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptyUrl.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to Elasticsearch B.V. under one or more contributor
+ * license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright
+ * ownership. Elasticsearch B.V. licenses this file to you 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.
+ */
package co.elastic.apm.plugin.spi;
import javax.annotation.Nullable;
diff --git a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptyUser.java b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptyUser.java
index f8e5ba7207..761b461074 100644
--- a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptyUser.java
+++ b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptyUser.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to Elasticsearch B.V. under one or more contributor
+ * license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright
+ * ownership. Elasticsearch B.V. licenses this file to you 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.
+ */
package co.elastic.apm.plugin.spi;
import javax.annotation.Nullable;
diff --git a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptyWebConfiguration.java b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptyWebConfiguration.java
index be0455e242..fa86d1a0ac 100644
--- a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptyWebConfiguration.java
+++ b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/EmptyWebConfiguration.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to Elasticsearch B.V. under one or more contributor
+ * license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright
+ * ownership. Elasticsearch B.V. licenses this file to you 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.
+ */
package co.elastic.apm.plugin.spi;
import java.util.Collections;
diff --git a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/ErrorCapture.java b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/ErrorCapture.java
index 409008b815..1e2e848e4d 100644
--- a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/ErrorCapture.java
+++ b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/ErrorCapture.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to Elasticsearch B.V. under one or more contributor
+ * license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright
+ * ownership. Elasticsearch B.V. licenses this file to you 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.
+ */
package co.elastic.apm.plugin.spi;
public interface ErrorCapture {
diff --git a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/Faas.java b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/Faas.java
index f103c00b99..c5bee6dbad 100644
--- a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/Faas.java
+++ b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/Faas.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to Elasticsearch B.V. under one or more contributor
+ * license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright
+ * ownership. Elasticsearch B.V. licenses this file to you 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.
+ */
package co.elastic.apm.plugin.spi;
import javax.annotation.Nullable;
diff --git a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/HeaderChildContextCreator.java b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/HeaderChildContextCreator.java
index 4a31ddfc52..a432b3faa5 100644
--- a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/HeaderChildContextCreator.java
+++ b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/HeaderChildContextCreator.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to Elasticsearch B.V. under one or more contributor
+ * license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright
+ * ownership. Elasticsearch B.V. licenses this file to you 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.
+ */
package co.elastic.apm.plugin.spi;
import javax.annotation.Nullable;
diff --git a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/Http.java b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/Http.java
index 7e18fd580e..93e44614fb 100644
--- a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/Http.java
+++ b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/Http.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to Elasticsearch B.V. under one or more contributor
+ * license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright
+ * ownership. Elasticsearch B.V. licenses this file to you 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.
+ */
package co.elastic.apm.plugin.spi;
import javax.annotation.Nullable;
diff --git a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/Id.java b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/Id.java
index 7de610830e..27c5ee034a 100644
--- a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/Id.java
+++ b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/Id.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to Elasticsearch B.V. under one or more contributor
+ * license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright
+ * ownership. Elasticsearch B.V. licenses this file to you 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.
+ */
package co.elastic.apm.plugin.spi;
public interface Id {
diff --git a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/Message.java b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/Message.java
index 10ce40ad6c..1225556a0e 100644
--- a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/Message.java
+++ b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/Message.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to Elasticsearch B.V. under one or more contributor
+ * license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright
+ * ownership. Elasticsearch B.V. licenses this file to you 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.
+ */
package co.elastic.apm.plugin.spi;
import javax.annotation.Nullable;
diff --git a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/MessagingConfiguration.java b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/MessagingConfiguration.java
index 9354a52d76..a9c86d676d 100644
--- a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/MessagingConfiguration.java
+++ b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/MessagingConfiguration.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to Elasticsearch B.V. under one or more contributor
+ * license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright
+ * ownership. Elasticsearch B.V. licenses this file to you 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.
+ */
package co.elastic.apm.plugin.spi;
import java.util.Collection;
diff --git a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/NoopTracer.java b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/NoopTracer.java
index 3fb4f0511d..db600f139a 100644
--- a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/NoopTracer.java
+++ b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/NoopTracer.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to Elasticsearch B.V. under one or more contributor
+ * license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright
+ * ownership. Elasticsearch B.V. licenses this file to you 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.
+ */
package co.elastic.apm.plugin.spi;
import javax.annotation.Nullable;
diff --git a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/ObjectPoolFactory.java b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/ObjectPoolFactory.java
index 245c332ea4..a80fd6850b 100644
--- a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/ObjectPoolFactory.java
+++ b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/ObjectPoolFactory.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to Elasticsearch B.V. under one or more contributor
+ * license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright
+ * ownership. Elasticsearch B.V. licenses this file to you 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.
+ */
package co.elastic.apm.plugin.spi;
public interface ObjectPoolFactory {
diff --git a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/Recyclable.java b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/Recyclable.java
index e26c6c3338..47cccdaa85 100644
--- a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/Recyclable.java
+++ b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/Recyclable.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to Elasticsearch B.V. under one or more contributor
+ * license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright
+ * ownership. Elasticsearch B.V. licenses this file to you 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.
+ */
package co.elastic.apm.plugin.spi;
public interface Recyclable {
diff --git a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/Request.java b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/Request.java
index cf07dc3ec3..7b03c6be76 100644
--- a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/Request.java
+++ b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/Request.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to Elasticsearch B.V. under one or more contributor
+ * license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright
+ * ownership. Elasticsearch B.V. licenses this file to you 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.
+ */
package co.elastic.apm.plugin.spi;
import javax.annotation.Nullable;
diff --git a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/Response.java b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/Response.java
index 7eb26ba4ed..93db02a749 100644
--- a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/Response.java
+++ b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/Response.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to Elasticsearch B.V. under one or more contributor
+ * license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright
+ * ownership. Elasticsearch B.V. licenses this file to you 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.
+ */
package co.elastic.apm.plugin.spi;
import javax.annotation.Nullable;
diff --git a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/ServiceTarget.java b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/ServiceTarget.java
index 5baa307d67..9333a00ab9 100644
--- a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/ServiceTarget.java
+++ b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/ServiceTarget.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to Elasticsearch B.V. under one or more contributor
+ * license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright
+ * ownership. Elasticsearch B.V. licenses this file to you 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.
+ */
package co.elastic.apm.plugin.spi;
import javax.annotation.Nullable;
diff --git a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/Socket.java b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/Socket.java
index 81af77b129..fd74c752a3 100644
--- a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/Socket.java
+++ b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/Socket.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to Elasticsearch B.V. under one or more contributor
+ * license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright
+ * ownership. Elasticsearch B.V. licenses this file to you 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.
+ */
package co.elastic.apm.plugin.spi;
import javax.annotation.Nullable;
diff --git a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/Span.java b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/Span.java
index 2822c004c7..a2ba78bf49 100644
--- a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/Span.java
+++ b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/Span.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to Elasticsearch B.V. under one or more contributor
+ * license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright
+ * ownership. Elasticsearch B.V. licenses this file to you 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.
+ */
package co.elastic.apm.plugin.spi;
import javax.annotation.Nullable;
diff --git a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/SpanContext.java b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/SpanContext.java
index f41509fe60..2a203347b2 100644
--- a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/SpanContext.java
+++ b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/SpanContext.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to Elasticsearch B.V. under one or more contributor
+ * license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright
+ * ownership. Elasticsearch B.V. licenses this file to you 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.
+ */
package co.elastic.apm.plugin.spi;
public interface SpanContext extends AbstractContext {
diff --git a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/StacktraceConfiguration.java b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/StacktraceConfiguration.java
index e8d1fa0a53..d35965dafa 100644
--- a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/StacktraceConfiguration.java
+++ b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/StacktraceConfiguration.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to Elasticsearch B.V. under one or more contributor
+ * license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright
+ * ownership. Elasticsearch B.V. licenses this file to you 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.
+ */
package co.elastic.apm.plugin.spi;
import java.util.Collection;
diff --git a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/TextHeaderGetter.java b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/TextHeaderGetter.java
index 40481bc3ec..739fa8099f 100644
--- a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/TextHeaderGetter.java
+++ b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/TextHeaderGetter.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to Elasticsearch B.V. under one or more contributor
+ * license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright
+ * ownership. Elasticsearch B.V. licenses this file to you 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.
+ */
package co.elastic.apm.plugin.spi;
public interface TextHeaderGetter extends HeaderGetter {
diff --git a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/TraceContext.java b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/TraceContext.java
index 5863893795..966d9b0bd1 100644
--- a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/TraceContext.java
+++ b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/TraceContext.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to Elasticsearch B.V. under one or more contributor
+ * license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright
+ * ownership. Elasticsearch B.V. licenses this file to you 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.
+ */
package co.elastic.apm.plugin.spi;
import javax.annotation.Nullable;
diff --git a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/TraceContextUtil.java b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/TraceContextUtil.java
index c10df38d65..47a88f7004 100644
--- a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/TraceContextUtil.java
+++ b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/TraceContextUtil.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to Elasticsearch B.V. under one or more contributor
+ * license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright
+ * ownership. Elasticsearch B.V. licenses this file to you 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.
+ */
package co.elastic.apm.plugin.spi;
import javax.annotation.Nullable;
diff --git a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/Transaction.java b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/Transaction.java
index 98fc2b5de3..5abe5555cc 100644
--- a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/Transaction.java
+++ b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/Transaction.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to Elasticsearch B.V. under one or more contributor
+ * license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright
+ * ownership. Elasticsearch B.V. licenses this file to you 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.
+ */
package co.elastic.apm.plugin.spi;
import javax.annotation.Nullable;
diff --git a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/TransactionContext.java b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/TransactionContext.java
index 384c6786b7..f7809ed1f8 100644
--- a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/TransactionContext.java
+++ b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/TransactionContext.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to Elasticsearch B.V. under one or more contributor
+ * license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright
+ * ownership. Elasticsearch B.V. licenses this file to you 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.
+ */
package co.elastic.apm.plugin.spi;
public interface TransactionContext extends AbstractContext {
diff --git a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/Url.java b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/Url.java
index 406e71e295..f62ca22fe8 100644
--- a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/Url.java
+++ b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/Url.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to Elasticsearch B.V. under one or more contributor
+ * license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright
+ * ownership. Elasticsearch B.V. licenses this file to you 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.
+ */
package co.elastic.apm.plugin.spi;
import javax.annotation.Nullable;
diff --git a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/User.java b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/User.java
index 47517f538a..9516b447d9 100644
--- a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/User.java
+++ b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/User.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to Elasticsearch B.V. under one or more contributor
+ * license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright
+ * ownership. Elasticsearch B.V. licenses this file to you 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.
+ */
package co.elastic.apm.plugin.spi;
import javax.annotation.Nullable;
diff --git a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/WebConfiguration.java b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/WebConfiguration.java
index 9a2e77d1ca..fc55a99d67 100644
--- a/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/WebConfiguration.java
+++ b/apm-agent-plugin-spi/src/main/java/co/elastic/apm/plugin/spi/WebConfiguration.java
@@ -1,3 +1,21 @@
+/*
+ * Licensed to Elasticsearch B.V. under one or more contributor
+ * license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright
+ * ownership. Elasticsearch B.V. licenses this file to you 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.
+ */
package co.elastic.apm.plugin.spi;
import java.util.List;
diff --git a/apm-agent-plugins/apm-grpc/apm-grpc-plugin/src/test/java/specs/OutcomeGrpcStepsDefinitions.java b/apm-agent-plugins/apm-grpc/apm-grpc-plugin/src/test/java/specs/OutcomeGrpcStepsDefinitions.java
index 275fca7d9f..ee572d62b1 100644
--- a/apm-agent-plugins/apm-grpc/apm-grpc-plugin/src/test/java/specs/OutcomeGrpcStepsDefinitions.java
+++ b/apm-agent-plugins/apm-grpc/apm-grpc-plugin/src/test/java/specs/OutcomeGrpcStepsDefinitions.java
@@ -49,12 +49,12 @@ public void grpcTransaction(String grpcStatus) {
.withOutcome(getOutcome(grpcStatus, GrpcHelper::toServerOutcome));
}
- private static Outcome getOutcome(String grpcStatus, Function mapFunction) {
+ private static Outcome getOutcome(String grpcStatus, Function mapFunction) {
Status status = null;
if (!"n/a".equals(grpcStatus)) {
status = Status.fromCode(Status.Code.valueOf(grpcStatus));
}
- return mapFunction.apply(status);
+ return Outcome.valueOf(mapFunction.apply(status));
}