diff --git a/src/metabase/api/dashboard.clj b/src/metabase/api/dashboard.clj index bec5bc9eab426743d0ea6d96ef3bec6a176a1321..bc9a2a56dc47836267a32d350c3ccdbe29d98b42 100644 --- a/src/metabase/api/dashboard.clj +++ b/src/metabase/api/dashboard.clj @@ -374,10 +374,7 @@ [id] {id ms/PositiveInt} (let [dashboard (get-dashboard id)] - (span/with-span! - {:name "publish-event!.dashboard-read" - :attributes {:dashboard/id id}} - (events/publish-event! :event/dashboard-read {:object dashboard :user-id api/*current-user-id*})) + (events/publish-event! :event/dashboard-read {:object dashboard :user-id api/*current-user-id*}) (last-edit/with-last-edit-info dashboard :dashboard))) (defn- check-allowed-to-change-embedding diff --git a/src/metabase/events.clj b/src/metabase/events.clj index feb2eb2165d17f2f7501e3c7c9e070a67f9e8010..e662f51dd453219f3f36b3486faaeff93f352683 100644 --- a/src/metabase/events.clj +++ b/src/metabase/events.clj @@ -134,11 +134,8 @@ (assert (map? event) (format "Invalid event %s: event must be a map." (pr-str event)))) (try - (span/with-span! - {:name "publish-event!.schema-validation" - :attributes {}} - (when-let [schema (events.schema/topic->schema topic)] - (mu/validate-throw schema event))) + (when-let [schema (events.schema/topic->schema topic)] + (mu/validate-throw schema event)) (span/with-span! {:name "publish-event!.next-method" :attributes {}}