Liking cljdoc? Tell your friends :D

clj-honeycomb.middleware.ring

Ring middleware to turn every request/response into a Honeycomb event.

Ring middleware to turn every request/response into a Honeycomb event.
raw docstring

with-honeycomb-eventclj

(with-honeycomb-event handler)
(with-honeycomb-event options handler)

Ring middleware to turn every request/response into a Honeycomb event. By default every item in the request map and the status and headers from the response map are included in the event. If you have sensitive data in your request or response maps you may wish to implement your own :extract-request-fields or :extract-response-fields functions to prevent them from leaking to Honeycomb.

options A map with any of the following items:

     :extract-request-fields  A function which takes one argument, the
                              Ring request map and returns a map of data
                              to be added to the event.
     :extract-response-fields A function which takes one argument, the
                              Ring response map and returns a map of data
                              to be added to the event.
     :honeycomb-event-data    Fields to be added to the event regardless
                              of request or response. Will be overridden
                              by anything added by extract-request-fields
                              or extract-response-fields.
     :honeycomb-event-options Options to be passed to
                              clj-honeycomb.core/send as the options
                              argument. See that function for full
                              documentation as to what's supported.

handler The Ring handler function.

Ring middleware to turn every request/response into a Honeycomb event. By
default every item in the request map and the status and headers from the
response map are included in the event. If you have sensitive data in your
request or response maps you may wish to implement your own
:extract-request-fields or :extract-response-fields functions to prevent them
from leaking to Honeycomb.

options  A map with any of the following items:

         :extract-request-fields  A function which takes one argument, the
                                  Ring request map and returns a map of data
                                  to be added to the event.
         :extract-response-fields A function which takes one argument, the
                                  Ring response map and returns a map of data
                                  to be added to the event.
         :honeycomb-event-data    Fields to be added to the event regardless
                                  of request or response. Will be overridden
                                  by anything added by extract-request-fields
                                  or extract-response-fields.
         :honeycomb-event-options Options to be passed to
                                  clj-honeycomb.core/send as the options
                                  argument. See that function for full
                                  documentation as to what's supported.
handler  The Ring handler function.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close