-
Notifications
You must be signed in to change notification settings - Fork 896
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Motivation: armeria-brave was changed in a unique way in 1.27.1 to pin an old version of the library, even though there are no code compatibility issues. What happened was some folks at LINE have a metrics library, and instead of depending on zipkin-reporter, they relied on brave's indirect dependency version. In a rush to fix this quick, brave-armeria was reverted to 5.x and a new module was made for brave6. Another was also made for brave5 despite almost certainly no more released on that line of code. The problem is that a normal person would expect "armeria-brave" to have the more recent version of brave, and instead they will be pinned and not receive code updates. They will have no easy way to find this out because there is no code in "armeria-brave" to mark deprecated. This basically means people will unknowingly always stay at an old version. Another choice would have been to still make the separate modules, but make the main "armeria-brave" tactically set the old dependency it had before. This is better because it allows a migration without serious impact. This is what I believe would have been the choice if it wasn't rushed to stop a fire at LINE. I hope people can consider this and merge it with any modifications that keep LINE not having to manage versions, yet not pin the rest of the world to an old library. If not, I hope people can be transparent with who is making the decision and literally what the problem is, as this doesn't seem difficult to fix from how it was described in #5438. Maybe others who know the library like @kojilin can explain if somehow managing a dependency like this uniquely cannot work at LINE. I often promote armeria as a project for everyone, not just LINE, and hope we can turn this around. Modifications: - Remove `armeria-brave` module Result: - (Breaking) The `armeria-brave` module has been fully removed. Please switch to using `armeria-brave6` along with additional dependencies: - `zipkin-reporter` if you are utilizing `AsyncZipkinSpanHandler`. - `zipkin` if you are utilizing `ZipkinSpanHandler`. - Alternatively, use `armeria-brave5` if you wish to retain the previous module functionality. Co-authored-by: minux <songmw725@gmail.com>
- Loading branch information
1 parent
53d7cad
commit 7dc4c87
Showing
8 changed files
with
128 additions
and
13 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
brave/brave5/src/main/java/com/linecorp/armeria/client/brave/package-info.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
* Copyright 2019 LINE Corporation | ||
* | ||
* LINE Corporation 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: | ||
* | ||
* https://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. | ||
*/ | ||
|
||
/** | ||
* Distributed tracing services based on <a href="https://github.com/openzipkin/brave">Brave</a>, | ||
* a Java tracing library compatible with <a href="http://zipkin.io/">Zipkin</a>. | ||
* | ||
* @deprecated Use armeria-brave6 module. | ||
* See <a href="https://armeria.dev/release-notes/1.28.0#%EF%B8%8F-breaking-changes"> | ||
* 1.28 Breaking Changes</a> for more information. | ||
*/ | ||
@Deprecated | ||
@NonNullByDefault | ||
package com.linecorp.armeria.client.brave; | ||
|
||
import com.linecorp.armeria.common.annotation.NonNullByDefault; |
29 changes: 29 additions & 0 deletions
29
brave/brave5/src/main/java/com/linecorp/armeria/common/brave/package-info.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
* Copyright 2019 LINE Corporation | ||
* | ||
* LINE Corporation 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: | ||
* | ||
* https://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. | ||
*/ | ||
|
||
/** | ||
* Distributed tracing services based on <a href="https://github.com/openzipkin/brave">Brave</a>, | ||
* a Java tracing library compatible with <a href="http://zipkin.io/">Zipkin</a>. | ||
* | ||
* @deprecated Use armeria-brave6 module. | ||
* See <a href="https://armeria.dev/release-notes/1.28.0#%EF%B8%8F-breaking-changes"> | ||
* 1.28 Breaking Changes</a> for more information. | ||
*/ | ||
@Deprecated | ||
@NonNullByDefault | ||
package com.linecorp.armeria.common.brave; | ||
|
||
import com.linecorp.armeria.common.annotation.NonNullByDefault; |
29 changes: 29 additions & 0 deletions
29
brave/brave5/src/main/java/com/linecorp/armeria/internal/common/brave/package-info.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
* Copyright 2019 LINE Corporation | ||
* | ||
* LINE Corporation 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: | ||
* | ||
* https://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. | ||
*/ | ||
|
||
/** | ||
* Distributed tracing services based on <a href="https://github.com/openzipkin/brave">Brave</a>, | ||
* a Java tracing library compatible with <a href="http://zipkin.io/">Zipkin</a>. | ||
* | ||
* @deprecated Use armeria-brave6 module. | ||
* See <a href="https://armeria.dev/release-notes/1.28.0#%EF%B8%8F-breaking-changes"> | ||
* 1.28 Breaking Changes</a> for more information. | ||
*/ | ||
@Deprecated | ||
@NonNullByDefault | ||
package com.linecorp.armeria.internal.common.brave; | ||
|
||
import com.linecorp.armeria.common.annotation.NonNullByDefault; |
29 changes: 29 additions & 0 deletions
29
brave/brave5/src/main/java/com/linecorp/armeria/server/brave/package-info.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
* Copyright 2019 LINE Corporation | ||
* | ||
* LINE Corporation 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: | ||
* | ||
* https://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. | ||
*/ | ||
|
||
/** | ||
* Distributed tracing services based on <a href="https://github.com/openzipkin/brave">Brave</a>, | ||
* a Java tracing library compatible with <a href="http://zipkin.io/">Zipkin</a>. | ||
* | ||
* @deprecated Use armeria-brave6 module. | ||
* See <a href="https://armeria.dev/release-notes/1.28.0#%EF%B8%8F-breaking-changes"> | ||
* 1.28 Breaking Changes</a> for more information. | ||
*/ | ||
@Deprecated | ||
@NonNullByDefault | ||
package com.linecorp.armeria.server.brave; | ||
|
||
import com.linecorp.armeria.common.annotation.NonNullByDefault; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters