Skip to content

Commit

Permalink
chnaged the types of key value pair
Browse files Browse the repository at this point in the history
  • Loading branch information
Rhitam02 committed Apr 1, 2024
1 parent 4d502df commit a5bee4d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,11 @@ class PollyExtension extends PluginExtensionPoint {
* Using @Function annotation we allow this function can be imported from the pipeline script
*/
@Function
void reportMetric(String key, String value) {
void reportMetric(var key, var value) {
// logger.info("Starting PutRecord Producer");
String streamName = "pravaah-dev-user-defined-metrics-events-v1";
String partitionKey = "12345";
Map<String, String> keyValuePairs = Map.of(key, value);
Map<Object, Object> keyValuePairs = Map.of(key, value);
try {
byte[] data = new ObjectMapper().writeValueAsBytes(Map.of("metricfromTest5", keyValuePairs));
KinesisClient client = KinesisClient.builder().build();
Expand Down

0 comments on commit a5bee4d

Please sign in to comment.