]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: add functionality of SetAttribute and AddEvent method in postRequest context
authorOmri Zeneva <ozeneva@redhat.com>
Wed, 11 May 2022 13:39:49 +0000 (09:39 -0400)
committerOmri Zeneva <ozeneva@redhat.com>
Mon, 13 Jun 2022 06:05:11 +0000 (02:05 -0400)
commit923f4542cffece28dbb797f8cf309f5a44a2789c
treee430af1743e7d184966f79063a17494f6694f899
parent6c46e1d842c5276fb81dd2bf9b7178bf4438ba88
rgw: add functionality of SetAttribute and AddEvent method in postRequest context

opentelemetry supports mainly string, int64, double and boolean for values of trace's Attributes,
so we should validate those types and static cast to the proper type, which is different than Lua types

SetAttribute Closure will be returned to lua only if the request's trace is real and not noop span or even null like what happens in preRequest Context

AddEvent method comes to give us the ability to record an event. the event can be a single string that represents the event, or event name and key-value pairs.

Signed-off-by: Omri Zeneva <ozeneva@redhat.com>
src/common/tracer.h
src/rgw/rgw_lua_request.cc