Skip to content

Commit a996747

Browse files
peter-jerry-yevados-cosmonic
authored andcommitted
fix: update dependency
Signed-off-by: zihang <yezihang@idea.edu.cn>
1 parent 2cdf600 commit a996747

File tree

5 files changed

+14
-9
lines changed

5 files changed

+14
-9
lines changed

examples/rust/providers/custom-template/Cargo.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ status = "actively-developed"
1414
[dependencies]
1515
anyhow = "1.0.82"
1616
async-nats = "0.33.0"
17-
serde = { version = "1.0.197" , features = ["derive"] }
17+
serde = { version = "1.0.197", features = ["derive"] }
1818
serde_json = "1.0.115"
19-
tokio = { version = "1.37.0", features = [ "full" ] }
19+
tokio = { version = "1.37.0", features = ["full"] }
2020
tracing = "0.1"
21-
wasmcloud-provider-sdk = "0.9.1"
22-
wit-bindgen-wrpc = "0.6.3"
21+
wasmcloud-provider-sdk = { version = "0.11.0", features = ["otel"] }
22+
wit-bindgen-wrpc = "0.7.0"

examples/rust/providers/custom-template/component/wit/deps.lock

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ sha256 = "3af8ebbb348273a8a541440c4fbad2c739d03257903ab172d6722c68a694f86c"
44
sha512 = "2d83b11fd3ac592c4ed87a05feefae1d26803b626f5a425a109202196b6d951bfb407cb4f97c6209891ef70aeb3b86b8b8338c880d46fc1976fa7a9b5ca7201b"
55

66
[logging]
7-
url = "https://github.com/WebAssembly/wasi-logging/archive/3293e84de91a1ead98a1b4362f95ac8af5a16ddd.tar.gz"
8-
sha256 = "9676b482485bb0fd2751a390374c1108865a096b7037f4b5dbe524f066bfb06e"
9-
sha512 = "30a621a6d48a0175e8047c062e618523a85f69c45a7c31918da2b888f7527fce1aca67fa132552222725d0f6cdcaed95be7f16c28488d9468c0fad00cb7450b9"
7+
url = "https://github.com/WebAssembly/wasi-logging/archive/d31c41d0d9eed81aabe02333d0025d42acf3fb75.tar.gz"
8+
sha256 = "ad81d8b7f7a8ceb729cf551f1d24586f0de9560a43eea57a9bb031d2175804e1"
9+
sha512 = "1687ad9a02ab3e689443e67d1a0605f58fc5dea828d2e4d2c7825c6002714fac9bd4289b1a68b61a37dcca6c3b421f4c8ed4b1e6cc29f6460e0913cf1bf11c04"
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
custom = "../../wit"
2-
logging = "https://github.com/WebAssembly/wasi-logging/archive/3293e84de91a1ead98a1b4362f95ac8af5a16ddd.tar.gz"
2+
logging = "https://github.com/WebAssembly/wasi-logging/archive/d31c41d0d9eed81aabe02333d0025d42acf3fb75.tar.gz"

examples/rust/providers/custom-template/component/wit/deps/logging/world.wit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wasi:logging;
1+
package wasi:logging@0.1.0-draft;
22

33
world imports {
44
import logging;

examples/rust/providers/custom-template/src/provider.rs

+5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ use std::sync::Arc;
44
use anyhow::Context as _;
55
use tokio::sync::RwLock;
66
use tracing::{debug, error, info};
7+
use wasmcloud_provider_sdk::initialize_observability;
78
use wasmcloud_provider_sdk::{
89
run_provider, serve_provider_exports, Context, LinkConfig, LinkDeleteInfo, Provider,
910
ProviderInitConfig,
@@ -48,6 +49,10 @@ impl CustomTemplateProvider {
4849
///
4950
/// This step is essentially the same for every provider, and you shouldn't need to modify this function.
5051
pub async fn run() -> anyhow::Result<()> {
52+
initialize_observability!(
53+
Self::name(),
54+
std::env::var_os("PROVIDER_CUSTOM_TEMPLATE_FLAMEGRAPH_PATH")
55+
);
5156
let provider = Self::default();
5257
let shutdown = run_provider(provider.clone(), CustomTemplateProvider::name())
5358
.await

0 commit comments

Comments
 (0)