Skip to content

Commit e4b5240

Browse files
committed
Add support for setting MetricsScope
Signed-off-by: Greg Haskins <[email protected]>
1 parent 5684e5f commit e4b5240

38 files changed

+70
-48
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Pull requests are welcome. Please include a [DCO](https://en.wikipedia.org/wiki
4141

4242
## License
4343

44-
Copyright (C) 2022 Manetu, Inc. All Rights Reserved.
44+
Copyright (C) Manetu, Inc. All Rights Reserved.
4545

4646
Licensed under the Apache License, Version 2.0 (the "License");
4747
you may not use this material except in compliance with the License.

dev-resources/user.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
;; Copyright © 2022 Manetu, Inc. All rights reserved
1+
;; Copyright © Manetu, Inc. All rights reserved
22

33
(ns user
44
(:require [clojure.tools.namespace.repl :refer [refresh]]

project.clj

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
:url "https://github.com/manetu/temporal-clojure-sdk"
44
:license {:name "Apache License 2.0"
55
:url "https://www.apache.org/licenses/LICENSE-2.0"
6-
:year 2022
6+
:year 2023
77
:key "apache-2.0"}
88
:plugins [[lein-cljfmt "0.9.0"]
99
[lein-kibit "0.1.8"]
@@ -12,12 +12,12 @@
1212
[jonase/eastwood "1.3.0"]
1313
[lein-codox "0.10.8"]]
1414
:dependencies [[org.clojure/clojure "1.11.1"]
15-
[org.clojure/core.async "1.6.673"]
16-
[io.temporal/temporal-sdk "1.19.1"]
17-
[io.temporal/temporal-testing "1.19.1"]
18-
[com.taoensso/encore "3.59.0"]
19-
[com.taoensso/timbre "6.1.0"]
20-
[com.taoensso/nippy "3.2.0"]
15+
[org.clojure/core.async "1.6.681"]
16+
[io.temporal/temporal-sdk "1.22.3"]
17+
[io.temporal/temporal-testing "1.22.3"]
18+
[com.taoensso/encore "3.74.0"]
19+
[com.taoensso/timbre "6.3.1"]
20+
[com.taoensso/nippy "3.3.0"]
2121
[funcool/promesa "9.2.542"]
2222
[medley "1.4.0"]]
2323
:repl-options {:init-ns user}

src/temporal/client/core.clj

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
;; Copyright © 2022 Manetu, Inc. All rights reserved
1+
;; Copyright © Manetu, Inc. All rights reserved
22

33
(ns temporal.client.core
44
"Methods for client interaction with Temporal"
@@ -25,7 +25,8 @@
2525
:enable-keepalive #(.setEnableKeepAlive ^WorkflowServiceStubsOptions$Builder %1 %2)
2626
:keepalive-time #(.setKeepAliveTime ^WorkflowServiceStubsOptions$Builder %1 %2)
2727
:keepalive-timeout #(.setKeepAliveTimeout ^WorkflowServiceStubsOptions$Builder %1 %2)
28-
:keepalive-without-stream #(.setKeepAlivePermitWithoutStream ^WorkflowServiceStubsOptions$Builder %1 %2)})
28+
:keepalive-without-stream #(.setKeepAlivePermitWithoutStream ^WorkflowServiceStubsOptions$Builder %1 %2)
29+
:metrics-scope #(.setMetricsScope ^WorkflowServiceStubsOptions$Builder %1 %2)})
2930

3031
(defn ^:no-doc stub-options->
3132
^WorkflowServiceStubsOptions [params]
@@ -72,6 +73,7 @@ Arguments:
7273
| :keepalive-time | Set the keep alive time | [Duration](https://docs.oracle.com/javase/8/docs/api//java/time/Duration.html) | |
7374
| :keepalive-timeout | Set the keep alive timeout | [Duration](https://docs.oracle.com/javase/8/docs/api//java/time/Duration.html) | |
7475
| :keepalive-without-stream | Set if client sends keepalive pings even with no active RPCs | boolean | false |
76+
| :metrics-scope | The scope to be used for metrics reporting | [Scope](https://github.com/uber-java/tally/blob/master/core/src/main/java/com/uber/m3/tally/Scope.java) | |
7577
7678
"
7779
([] (create-client {}))

src/temporal/client/worker.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
;; Copyright © 2022 Manetu, Inc. All rights reserved
1+
;; Copyright © Manetu, Inc. All rights reserved
22

33
(ns temporal.client.worker
44
"Methods for managing a Temporal worker instance"

src/temporal/codec.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
;; Copyright © 2022 Manetu, Inc. All rights reserved
1+
;; Copyright © Manetu, Inc. All rights reserved
22

33
(ns temporal.codec
44
"Methods for managing codecs between a client and the Temporal backend"

src/temporal/common.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
;; Copyright © 2022 Manetu, Inc. All rights reserved
1+
;; Copyright © Manetu, Inc. All rights reserved
22

33
(ns temporal.common
44
(:require [temporal.internal.utils :as u])

src/temporal/internal/activity.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
;; Copyright © 2022 Manetu, Inc. All rights reserved
1+
;; Copyright © Manetu, Inc. All rights reserved
22

33
(ns ^:no-doc temporal.internal.activity
44
(:require [clojure.core.protocols :as p]

src/temporal/internal/promise.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
;; Copyright © 2022 Manetu, Inc. All rights reserved
1+
;; Copyright © Manetu, Inc. All rights reserved
22

33
(ns ^:no-doc temporal.internal.promise
44
(:require [taoensso.timbre :as log]

src/temporal/internal/signals.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
;; Copyright © 2022 Manetu, Inc. All rights reserved
1+
;; Copyright © Manetu, Inc. All rights reserved
22

33
(ns ^:no-doc temporal.internal.signals
44
(:require [taoensso.timbre :as log]

0 commit comments

Comments
 (0)