Skip to content

Commit 8a7d7ea

Browse files
committed
fix: Fix Backward compatibility by using deprecated classes for OCSpan and Tracer
1 parent 71628df commit 8a7d7ea

File tree

2 files changed

+71
-0
lines changed

2 files changed

+71
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/*-
2+
* -\-\-
3+
* github-api
4+
* --
5+
* Copyright (C) 2016 - 2021 Spotify AB
6+
* --
7+
* Licensed under the Apache License, Version 2.0 (the "License");
8+
* you may not use this file except in compliance with the License.
9+
* You may obtain a copy of the License at
10+
*
11+
* http://www.apache.org/licenses/LICENSE-2.0
12+
*
13+
* Unless required by applicable law or agreed to in writing, software
14+
* distributed under the License is distributed on an "AS IS" BASIS,
15+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
* See the License for the specific language governing permissions and
17+
* limitations under the License.
18+
* -/-/-
19+
*/
20+
21+
package com.spotify.github.opencensus;
22+
23+
import io.opencensus.trace.Span;
24+
25+
/**
26+
* OpenCensusSpan is a wrapper around OpenCensus Span. This class is kept for backward
27+
* compatibility.
28+
*
29+
* @deprecated This class has been moved to the package com.spotify.github.tracing.opencensus.
30+
* Please use com.spotify.github.tracing.opencensus.OpenCensusSpan instead.
31+
*/
32+
@Deprecated
33+
public class OpenCensusSpan extends com.spotify.github.tracing.opencensus.OpenCensusSpan {
34+
public OpenCensusSpan(final Span span) {
35+
super(span);
36+
}
37+
// This class is kept for backward compatibility
38+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/*-
2+
* -\-\-
3+
* github-api
4+
* --
5+
* Copyright (C) 2016 - 2021 Spotify AB
6+
* --
7+
* Licensed under the Apache License, Version 2.0 (the "License");
8+
* you may not use this file except in compliance with the License.
9+
* You may obtain a copy of the License at
10+
*
11+
* http://www.apache.org/licenses/LICENSE-2.0
12+
*
13+
* Unless required by applicable law or agreed to in writing, software
14+
* distributed under the License is distributed on an "AS IS" BASIS,
15+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
* See the License for the specific language governing permissions and
17+
* limitations under the License.
18+
* -/-/-
19+
*/
20+
21+
package com.spotify.github.opencensus;
22+
23+
/**
24+
* OpenCensusTracer is a wrapper around OpenCensus Tracer. This class is kept for backward
25+
* compatibility.
26+
*
27+
* @deprecated This class has been moved to the package com.spotify.github.tracing.opencensus.
28+
* Please use com.spotify.github.tracing.opencensus.OpenCensusTracer instead.
29+
*/
30+
@Deprecated
31+
public class OpenCensusTracer extends com.spotify.github.tracing.opencensus.OpenCensusTracer {
32+
// This class is kept for backward compatibility
33+
}

0 commit comments

Comments
 (0)