@@ -363,7 +363,7 @@ impl PyroscopeAgent {
363363 /// # Example
364364 /// ```ignore
365365 /// let agent = PyroscopeAgent::builder("http://localhost:8080", "my-app").build().unwrap();
366- /// agent.start().unwrap() ;
366+ /// agent.start();
367367 /// // Expensive operation
368368 /// agent.stop();
369369 /// ```
@@ -378,11 +378,11 @@ impl PyroscopeAgent {
378378 /// # Example
379379 /// ```ignore
380380 /// let agent = PyroscopeAgent::builder("http://localhost:8080", "my-app").build().unwrap();
381- /// agent.start().unwrap() ;
381+ /// agent.start();
382382 /// // Expensive operation
383- /// agent.add_tags(vec!["tag", "value"]).unwrap();
383+ /// agent.add_tags(vec![( "tag", "value") ]).unwrap();
384384 /// // Tagged operation
385- /// agent.stop().unwrap() ;
385+ /// agent.stop();
386386 /// ```
387387 pub fn add_tags ( & mut self , tags : & [ ( & str , & str ) ] ) -> Result < ( ) > {
388388 log:: debug!( "PyroscopeAgent - Adding tags" ) ;
@@ -416,11 +416,11 @@ impl PyroscopeAgent {
416416 /// let agent = PyroscopeAgent::builder("http://localhost:8080", "my-app")
417417 /// .tags(vec![("tag", "value")])
418418 /// .build().unwrap();
419- /// agent.start().unwrap() ;
419+ /// agent.start();
420420 /// // Expensive operation
421421 /// agent.remove_tags(vec!["tag"]).unwrap();
422422 /// // Un-Tagged operation
423- /// agent.stop().unwrap() ;
423+ /// agent.stop();
424424 pub fn remove_tags ( & mut self , tags : & [ & str ] ) -> Result < ( ) > {
425425 log:: debug!( "PyroscopeAgent - Removing tags" ) ;
426426
0 commit comments