You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,7 +53,7 @@ The event entity describes an occurred event at one specific moment.
53
53
### Creating the entities
54
54
There are two factories created to facilitate the creation of the entities, both allow the creation of the entities and provide default data and tags for them in one step
55
55
56
-
-**MetricFactory**: Allows the creation of metrics with default tags
56
+
-**MetricFactory**: Allows the creation of metrics with default tags and prefixes
57
57
-**EventFactory**: Allow the creation of Event entities with default host and tags
58
58
59
59
*NOTE:* Both factories allow to add more default tags after they are instantiated using the method:
@@ -179,7 +179,7 @@ For using the monitor the typical steps are:
179
179
This code is a simplified demonstration of the setup process without the object dependencies.
180
180
```php
181
181
// Build the metric factory with your choosen default tags
182
-
$metricFactory = new MetricFactory(['environment' => 'dev', 'mode' => 'production']);
182
+
$metricFactory = new MetricFactory(['environment' => 'dev', 'mode' => 'production'], 'myapp-prefix.');
183
183
184
184
// Build the event factory with the host name and your choosen default tags
0 commit comments