Skip to content

Commit e1e4cb5

Browse files
authored
Rename crate name skywalking_rust to skywalking? (#23)
* Rename crate name skywalking_rust to skywalking. * Bump to 0.2.0.
1 parent 25e4f28 commit e1e4cb5

File tree

10 files changed

+34
-34
lines changed

10 files changed

+34
-34
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
#
1818

1919
[package]
20-
name = "skywalking_rust"
21-
version = "0.1.0"
20+
name = "skywalking"
21+
version = "0.2.0"
2222
authors = ["Apache SkyWalking Developers (dev@skywalking.apache.org)"]
2323
edition = "2021"
2424
description = "Apache SkyWalking Rust Agent"

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ context after the span finished.
3333
# Example
3434

3535
```rust
36-
use skywalking_rust::context::trace_context::TracingContext;
37-
use skywalking_rust::reporter::grpc::Reporter;
36+
use skywalking::context::trace_context::TracingContext;
37+
use skywalking::reporter::grpc::Reporter;
3838
use tokio;
3939

4040
async fn handle_request(reporter: ContextReporter) {
@@ -69,10 +69,10 @@ async fn main() {
6969
```
7070

7171
# How to compile?
72-
If you have `skywalking-rust-(VERSION).crate`, you can unpack it with the way as follows:
72+
If you have `skywalking-(VERSION).crate`, you can unpack it with the way as follows:
7373

7474
```
75-
tar -xvzf skywalking-rust-(VERSION).crate
75+
tar -xvzf skywalking-(VERSION).crate
7676
```
7777

7878
Using `cargo build` generates a library. If you'd like to verify the behavior, we recommend to use `cargo run --example simple_trace_report`

e2e/Cargo.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

e2e/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@
1717
#
1818
[package]
1919
name = "e2e"
20-
version = "0.1.0"
20+
version = "0.2.0"
2121
authors = ["Shikugawa <Shikugawa@gmail.com>"]
2222
edition = "2021"
2323
publish = false
2424

2525
[dependencies]
26-
skywalking_rust = { path = ".." }
26+
skywalking = { path = ".." }
2727
hyper = { version = "0.14", features = ["full"] }
2828
tokio = { version = "1", features = ["full"] }
2929
structopt = "0.3"

e2e/src/main.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
use hyper::client::HttpConnector;
1919
use hyper::service::{make_service_fn, service_fn};
2020
use hyper::{Body, Client, Method, Request, Response, Server, StatusCode};
21-
use skywalking_rust::context::propagation::context::SKYWALKING_HTTP_CONTEXT_HEADER_KEY;
22-
use skywalking_rust::context::propagation::decoder::decode_propagation;
23-
use skywalking_rust::context::propagation::encoder::encode_propagation;
24-
use skywalking_rust::context::trace_context::TracingContext;
25-
use skywalking_rust::reporter::grpc::Reporter;
21+
use skywalking::context::propagation::context::SKYWALKING_HTTP_CONTEXT_HEADER_KEY;
22+
use skywalking::context::propagation::decoder::decode_propagation;
23+
use skywalking::context::propagation::encoder::encode_propagation;
24+
use skywalking::context::trace_context::TracingContext;
25+
use skywalking::reporter::grpc::Reporter;
2626
use std::convert::Infallible;
2727
use std::error::Error;
2828
use std::net::SocketAddr;

examples/simple_trace_report.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
//
1818
use std::error::Error;
1919

20-
use skywalking_rust::context::trace_context::TracingContext;
21-
use skywalking_rust::reporter::grpc::Reporter;
20+
use skywalking::context::trace_context::TracingContext;
21+
use skywalking::reporter::grpc::Reporter;
2222

2323
#[tokio::main]
2424
async fn main() -> Result<(), Box<dyn Error>> {

src/context/trace_context.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ use super::system_time::UnixTimeStampFetcher;
3434
/// # Example
3535
///
3636
/// ```
37-
/// use skywalking_rust::context::trace_context::TracingContext;
37+
/// use skywalking::context::trace_context::TracingContext;
3838
///
3939
/// async fn handle_request() {
4040
/// let mut ctx = TracingContext::default("svc", "ins");
@@ -206,7 +206,7 @@ impl TracingContext {
206206

207207
/// Generate a new trace context using the propagated context.
208208
/// They should be propagated on `sw8` header in HTTP request with encoded form.
209-
/// You can retrieve decoded context with `skywalking_rust::context::propagation::encoder::encode_propagation`
209+
/// You can retrieve decoded context with `skywalking::context::propagation::encoder::encode_propagation`
210210
pub fn from_propagation_context(
211211
service_name: &str,
212212
instance_name: &str,

src/reporter/grpc.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ impl Reporter {
5252
///
5353
/// use tokio;
5454
///
55-
/// use skywalking_rust::context::trace_context::TracingContext;
56-
/// use skywalking_rust::reporter::grpc::Reporter;
55+
/// use skywalking::context::trace_context::TracingContext;
56+
/// use skywalking::reporter::grpc::Reporter;
5757
///
5858
/// #[tokio::main]
5959
/// async fn main () -> Result<(), Box<dyn Error>> {

tests/propagation.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
//
1616

1717
#![allow(unused_imports)]
18-
use skywalking_rust::common::time::TimeFetcher;
19-
use skywalking_rust::context::propagation::context::PropagationContext;
20-
use skywalking_rust::context::propagation::decoder::decode_propagation;
21-
use skywalking_rust::context::propagation::encoder::encode_propagation;
22-
use skywalking_rust::context::trace_context::TracingContext;
18+
use skywalking::common::time::TimeFetcher;
19+
use skywalking::context::propagation::context::PropagationContext;
20+
use skywalking::context::propagation::decoder::decode_propagation;
21+
use skywalking::context::propagation::encoder::encode_propagation;
22+
use skywalking::context::trace_context::TracingContext;
2323
use std::sync::Arc;
2424

2525
struct MockTimeFetcher {}

tests/trace_context.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
#![allow(unused_imports)]
1818

1919
use prost::Message;
20-
use skywalking_rust::common::time::TimeFetcher;
21-
use skywalking_rust::context::propagation::context::PropagationContext;
22-
use skywalking_rust::context::propagation::decoder::decode_propagation;
23-
use skywalking_rust::context::propagation::encoder::encode_propagation;
24-
use skywalking_rust::context::trace_context::TracingContext;
25-
use skywalking_rust::skywalking_proto::v3::{
20+
use skywalking::common::time::TimeFetcher;
21+
use skywalking::context::propagation::context::PropagationContext;
22+
use skywalking::context::propagation::decoder::decode_propagation;
23+
use skywalking::context::propagation::encoder::encode_propagation;
24+
use skywalking::context::trace_context::TracingContext;
25+
use skywalking::skywalking_proto::v3::{
2626
KeyStringValuePair, Log, RefType, SegmentObject, SegmentReference, SpanLayer, SpanObject,
2727
SpanType,
2828
};

0 commit comments

Comments
 (0)