Skip to content

Commit e9ca4ac

Browse files
authored
Merge pull request #35 from ligangty/o11y
Add two unit tests
2 parents bca82ea + 7b8d4c4 commit e9ca4ac

File tree

17 files changed

+291
-10
lines changed

17 files changed

+291
-10
lines changed

core-java/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@
6868
<groupId>org.apache.commons</groupId>
6969
<artifactId>commons-lang3</artifactId>
7070
</dependency>
71+
<dependency>
72+
<groupId>org.commonjava.util</groupId>
73+
<artifactId>http-testserver</artifactId>
74+
<scope>test</scope>
75+
</dependency>
7176
</dependencies>
7277

7378
</project>

core-java/src/main/java/org/commonjava/indy/client/core/o11y/metric/RequestContextHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright (C) 2024 Red Hat, Inc.
2+
* Copyright (C) 2023 Red Hat, Inc. (https://github.com/Commonjava/indy-client)
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

core-java/src/main/java/org/commonjava/indy/client/core/o11y/trace/NameUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright (C) 2024 Red Hat, Inc.
2+
* Copyright (C) 2023 Red Hat, Inc. (https://github.com/Commonjava/indy-client)
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

core-java/src/main/java/org/commonjava/indy/client/core/o11y/trace/OtelProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright (C) 2024 Red Hat, Inc.
2+
* Copyright (C) 2023 Red Hat, Inc. (https://github.com/Commonjava/indy-client)
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

core-java/src/main/java/org/commonjava/indy/client/core/o11y/trace/SpanClosingResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright (C) 2024 Red Hat, Inc.
2+
* Copyright (C) 2023 Red Hat, Inc. (https://github.com/Commonjava/indy-client)
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

core-java/src/main/java/org/commonjava/indy/client/core/o11y/trace/SpanProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright (C) 2024 Red Hat, Inc.
2+
* Copyright (C) 2023 Red Hat, Inc. (https://github.com/Commonjava/indy-client)
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

core-java/src/main/java/org/commonjava/indy/client/core/o11y/trace/SpanWrapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright (C) 2024 Red Hat, Inc.
2+
* Copyright (C) 2023 Red Hat, Inc. (https://github.com/Commonjava/indy-client)
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

core-java/src/main/java/org/commonjava/indy/client/core/o11y/trace/SpanningHttpFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright (C) 2024 Red Hat, Inc.
2+
* Copyright (C) 2023 Red Hat, Inc. (https://github.com/Commonjava/indy-client)
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

core-java/src/main/java/org/commonjava/indy/client/core/o11y/trace/TraceManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright (C) 2024 Red Hat, Inc.
2+
* Copyright (C) 2023 Red Hat, Inc. (https://github.com/Commonjava/indy-client)
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

core-java/src/main/java/org/commonjava/indy/client/core/o11y/trace/TracerHttpClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright (C) 2024 Red Hat, Inc.
2+
* Copyright (C) 2023 Red Hat, Inc. (https://github.com/Commonjava/indy-client)
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)