blkin: remove blkin trace submodule and cleanup#48971
blkin: remove blkin trace submodule and cleanup#48971
Conversation
this commit includes all commits of PR ceph#47457 once it will be merged the commit will be deleted from this PR Signed-off-by: Omri Zeneva <ozeneva@redhat.com>
Signed-off-by: Omri Zeneva <ozeneva@redhat.com>
Signed-off-by: Omri Zeneva <ozeneva@redhat.com>
this commit remove the tracer initialization from common init, and also related config options Signed-off-by: Omri Zeneva <ozeneva@redhat.com>
we create a static default span context for funcitons that do not have trace info, but must pass it forward. so with this object we won't create and copy the context each time Signed-off-by: Omri Zeneva <ozeneva@redhat.com>
this commit replaces blkin structs by opentelemetry span context. it also remove the tracer endpoint initialization, and everything that related to blkin trace all of the functions that gets a blkin trace info, now gets an opentelemetry one Signed-off-by: Omri Zeneva <ozeneva@redhat.com>
Signed-off-by: Omri Zeneva <ozeneva@redhat.com>
this commit replaces the blkin param from librados api methods by opentelemetry span context Signed-off-by: Omri Zeneva <ozeneva@redhat.com>
instead of blkin trace info that passes with messages, we replace it with o-tel trace info we must support backward compatibility so we need to keep decode the old trace info, but new messages will have o-tel trace, so version increase is mandatory Signed-off-by: Omri Zeneva <ozeneva@redhat.com>
since we removed the blkin submodule, we can't use it in file/bluestore also Signed-off-by: Omri Zeneva <ozeneva@redhat.com>
| const rgw_bucket_entry_ver& ver, RGWPendingState state, uint64_t index_ver, | ||
| string& max_marker, uint16_t bilog_flags, string *owner, string *owner_display_name, rgw_zone_set *zones_trace) | ||
| string& max_marker, uint16_t bilog_flags, string *owner, string *owner_display_name, rgw_zone_set *zones_trace, | ||
| const jspan_context* bilog_trace = nullptr) |
There was a problem hiding this comment.
the bilog trace change seems unrelated to the blkin cleanup
There was a problem hiding this comment.
Indeed. It's part of the previous PR, which we depend on.
There was a problem hiding this comment.
added DNM tag, as this PR will have to wait until thew other is merged.
| } | ||
|
|
||
| jspan Tracer::add_span(opentelemetry::nostd::string_view span_name, const jspan_context& parent_ctx) { | ||
| if (is_enabled() && parent_ctx.IsValid()) { |
There was a problem hiding this comment.
changes in this file seem unrelated to the blkin cleanup
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
| #include "common/Readahead.h" | ||
| #include "common/snap_types.h" | ||
| #include "common/zipkin_trace.h" | ||
| #include "common/tracer.h" |
There was a problem hiding this comment.
do you really need this header here?
| #include "include/Context.h" | ||
| #include "common/snap_types.h" | ||
| #include "common/zipkin_trace.h" | ||
| #include "common/tracer.h" |
| io::ReadExtents* extents; | ||
| IOContext io_context; | ||
| const ZTracer::Trace parent_trace; | ||
| const jspan_context parent_trace{false, false}; |
There was a problem hiding this comment.
why did you create the trace here, and not just passed the null trace (as in the previous examples)?
| virtual ~ImageRequest() { | ||
| m_trace.event("finish"); | ||
| } | ||
| virtual ~ImageRequest() {} |
There was a problem hiding this comment.
nit:
| virtual ~ImageRequest() {} | |
| virtual ~ImageRequest() = default; |
it is a followup PR to: #52114 |
|
This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. |
|
lets keep it opened for now |
|
This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. |
|
unstale please |
|
This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. |
|
unstale please |
|
would be great to land this and #52114 for squid! |
|
This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. |
unstale please |
|
This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. |
|
unstale please |
|
@yuvalif Is this something we still need? I thought the new tracing obsoleted blkn. |
|
Wait, never mind, this is removing blkn. |
|
#55499 added this release note for squid:
i'd support removing this for T if someone's willing to work through the rebase |
|
Closing in favor of #59365 , but thank you for getting everything started and doing so much work! |
This PR comes to remove the blkin trace submodule, and all of its usages
including librados API methods and tests that used it.
since the opentelemetry tracing infrastructure becomes mature in ceph, and the blkin is out of use, we can safely remove/replace it
this cleanup also changes some of the messages that were carrying that blkin trace info,
so now those messages carries the o-tel trace info instead of blkin - but for backward compatibility we still support decode of blkin struct for old messages
Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume toxjenkins test windows