pub struct Manager { /* private fields */ }Available on crate feature
management only.Expand description
Manager handles skywalking management operations, integrate with reporter.
Implementations§
Source§impl Manager
impl Manager
Sourcepub fn new(
service_name: impl Into<String>,
instance_name: impl Into<String>,
reporter: impl Report + Send + Sync + 'static,
) -> Self
pub fn new( service_name: impl Into<String>, instance_name: impl Into<String>, reporter: impl Report + Send + Sync + 'static, ) -> Self
New with service info and reporter.
Sourcepub fn service_name(&self) -> &str
pub fn service_name(&self) -> &str
Get service name.
Sourcepub fn instance_name(&self) -> &str
pub fn instance_name(&self) -> &str
Get instance name.
Sourcepub fn report_properties(&self, properties: Properties)
pub fn report_properties(&self, properties: Properties)
Report instance properties.
Sourcepub fn keep_alive(&self)
pub fn keep_alive(&self)
Do keep alive once.
Sourcepub fn report_and_keep_alive(
&self,
properties: impl Fn() -> Properties + Send + 'static,
heartbeat_period: Duration,
properties_report_period_factor: usize,
) -> ReportAndKeepAlive ⓘ
pub fn report_and_keep_alive( &self, properties: impl Fn() -> Properties + Send + 'static, heartbeat_period: Duration, properties_report_period_factor: usize, ) -> ReportAndKeepAlive ⓘ
Continuously report instance properties and keep alive. Run in background.
Parameter heartbeat_period represents agent heartbeat report period.
Parameter properties_report_period_factor represents agent sends the
instance properties to the backend every heartbeat_period *
properties_report_period_factor seconds.
Auto Trait Implementations§
impl Freeze for Manager
impl !RefUnwindSafe for Manager
impl Send for Manager
impl Sync for Manager
impl Unpin for Manager
impl !UnwindSafe for Manager
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request