Skip to content

Commit e6ba3ce

Browse files
committed
fixed namespaces in README
1 parent 614d772 commit e6ba3ce

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,12 @@ make install
8787

8888
## Getting started
8989
### Monitoring instance
90-
The recommended way of getting (`unique_ptr` to) monitoring instance is `Get`ing it from `MonitoringFactory` by passing `URI(s)` as a parameter (comma seperated if more than one).
90+
The recommended way of getting (`unique_ptr` to) monitoring instance is `Get`ing it from `MonitoringFactory` by passing backend URI(s) as a parameter (comma seperated if more than one).
91+
The library is accessible from `o2::monitoring` namespace.
92+
9193
```cpp
92-
AliceO2::Monitoring::MonitoringFactory::Get("backend[-protocol]://host:port[?query]");
94+
using namespace o2::monitoring;
95+
MonitoringFactory::Get("backend[-protocol]://host:port[?query]");
9396
```
9497
See table below to find out how to create `URI` for each backend:
9598

examples/1-Basic.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55

66
#include "Monitoring/MonitoringFactory.h"
77

8-
using Monitoring = o2::monitoring::MonitoringFactory;
8+
using namespace o2::monitoring;
99

1010
int main() {
1111
// Configure monitoring
1212
// Pass string with list of URLs as parameter
13-
auto monitoring = Monitoring::Get("infologger://");
13+
auto monitoring = MonitoringFactory::Get("infologger://");
1414

1515
// now send an application specific metric
1616
// 10 is the value

0 commit comments

Comments
 (0)