Skip to content

Commit 18f408e

Browse files
authored
Remove trailing semicolons from python code on README (#29)
Python does not require lines to end with a semicolon
1 parent a878b55 commit 18f408e

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

README.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Requirements:
6767
Examples:
6868

6969
```py
70-
put_metric("Latency", 200, "Milliseconds");
70+
put_metric("Latency", 200, "Milliseconds")
7171
```
7272

7373
- **set_property**(key: str, value: Any) -> MetricsLogger
@@ -81,13 +81,13 @@ Requirements:
8181
Examples:
8282

8383
```py
84-
set_property("RequestId", "422b1569-16f6-4a03-b8f0-fe3fd9b100f8");
85-
set_property("InstanceId", "i-1234567890");
84+
set_property("RequestId", "422b1569-16f6-4a03-b8f0-fe3fd9b100f8")
85+
set_property("InstanceId", "i-1234567890")
8686
set_property("Device", {
8787
"Id": "61270781-c6ac-46f1-baf7-22c808af8162",
8888
"Name": "Transducer",
8989
"Model": "PT-1234"
90-
});
90+
})
9191
```
9292

9393
- **put_dimensions**(dimensions: Dict[str, str]) -> MetricsLogger
@@ -106,8 +106,8 @@ Requirements:
106106
Examples:
107107

108108
```py
109-
put_dimensions({ "Operation": "Aggregator" });
110-
put_dimensions({ "Operation": "Aggregator", "DeviceType": "Actuator" });
109+
put_dimensions({ "Operation": "Aggregator" })
110+
put_dimensions({ "Operation": "Aggregator", "DeviceType": "Actuator" })
111111
```
112112

113113
- **set_dimensions**(\*dimensions: Dict[str, str]) -> MetricsLogger
@@ -129,7 +129,7 @@ Examples:
129129
set_dimensions(
130130
{ "Operation": "Aggregator" },
131131
{ "Operation": "Aggregator", "DeviceType": "Actuator" }
132-
);
132+
)
133133
```
134134

135135
- **set_namespace**(value: str) -> MetricsLogger
@@ -144,7 +144,7 @@ Requirements:
144144
Examples:
145145

146146
```py
147-
set_namespace("MyApplication");
147+
set_namespace("MyApplication")
148148
```
149149

150150
- **flush**()
@@ -168,10 +168,10 @@ Example:
168168
# in process
169169
from aws_embedded_metrics.config import get_config
170170
Config = get_config()
171-
Config.service_name = "MyApp";
171+
Config.service_name = "MyApp"
172172

173173
# environment
174-
AWS_EMF_SERVICE_NAME = MyApp;
174+
AWS_EMF_SERVICE_NAME = MyApp
175175
```
176176

177177
**ServiceType**: Overrides the type of the service. For services where the type cannot be inferred (e.g. Java process running on EC2), a default value of Unknown will be used if not explicitly set.
@@ -187,10 +187,10 @@ Example:
187187
# in process
188188
from aws_embedded_metrics.config import get_config
189189
Config = get_config()
190-
Config.service_type = "NodeJSWebApp";
190+
Config.service_type = "NodeJSWebApp"
191191

192192
# environment
193-
AWS_EMF_SERVICE_TYPE = NodeJSWebApp;
193+
AWS_EMF_SERVICE_TYPE = NodeJSWebApp
194194
```
195195

196196
**LogGroupName**: For agent-based platforms, you may optionally configure the destination log group that metrics should be delivered to. This value will be passed from the library to the agent in the Embedded Metric payload. If a LogGroup is not provided, the default value will be derived from the service name: <service-name>-metrics
@@ -206,10 +206,10 @@ Example:
206206
# in process
207207
from aws_embedded_metrics.config import get_config
208208
Config = get_config()
209-
Config.log_group_name = "LogGroupName";
209+
Config.log_group_name = "LogGroupName"
210210

211211
# environment
212-
AWS_EMF_LOG_GROUP_NAME = LogGroupName;
212+
AWS_EMF_LOG_GROUP_NAME = LogGroupName
213213
```
214214

215215
**LogStreamName**: For agent-based platforms, you may optionally configure the destination log stream that metrics should be delivered to. This value will be passed from the library to the agent in the Embedded Metric payload. If a LogGroup is not provided, the default value will be derived by the agent (this will likely be the hostname).
@@ -225,10 +225,10 @@ Example:
225225
# in process
226226
from aws_embedded_metrics.config import get_config
227227
Config = get_config()
228-
Config.log_stream_name = "LogStreamName";
228+
Config.log_stream_name = "LogStreamName"
229229

230230
# environment
231-
AWS_EMF_LOG_STREAM_NAME = LogStreamName;
231+
AWS_EMF_LOG_STREAM_NAME = LogStreamName
232232
```
233233

234234
**NameSpace**: Overrides the CloudWatch [namespace](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#Namespace). If not set, a default value of aws-embedded-metrics will be used.
@@ -244,10 +244,10 @@ Example:
244244
# in process
245245
from aws_embedded_metrics.config import get_config
246246
Config = get_config()
247-
Config.namespace = "MyApplication";
247+
Config.namespace = "MyApplication"
248248

249249
# environment
250-
AWS_EMF_NAMESPACE = MyApplication;
250+
AWS_EMF_NAMESPACE = MyApplication
251251
```
252252

253253
## Examples

0 commit comments

Comments
 (0)