Skip to content

OTEL logs#194

Open
WWWcool wants to merge 12 commits intoepic/otel_logsfrom
otel_logs
Open

OTEL logs#194
WWWcool wants to merge 12 commits intoepic/otel_logsfrom
otel_logs

Conversation

@WWWcool
Copy link
Contributor

@WWWcool WWWcool commented Feb 14, 2026

No description provided.

- Updated `rebar.config` to format dependencies for better readability.
- Enhanced `ensure_otel_log_handler` function in `hellgate.erl` to allow dynamic log level configuration.
- Simplified log report formatting in `hg_otel_log_filter.erl`.
- Streamlined test suite in `hg_log_delivery_tests_SUITE.erl` to focus on OTel log delivery.
- Added `otel_log_level` configuration in `sys.config` for improved log level management.
@WWWcool WWWcool requested a review from nanodirijabl February 16, 2026 07:57
@WWWcool WWWcool changed the base branch from master to epic/otel_logs February 24, 2026 16:16
Comment on lines +143 to +146
case SpanCtx of
undefined -> ok;
_ -> _ = otel_span:end_span(SpanCtx, undefined)
end,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Кажется что можно без кейса. end_span/2 вроде принимает произвольный терм и сам сопоставляет с ожидаемым рекордом если спан-контекст передан аргументом.

Comment on lines +150 to +157
mk_span_name('ProcessSignal', NS) ->
iolist_to_binary(["hellgate signal ", ns_to_binary(NS)]);
mk_span_name('ProcessCall', NS) ->
iolist_to_binary(["hellgate call ", ns_to_binary(NS)]);
mk_span_name('ProcessRepair', NS) ->
iolist_to_binary(["hellgate repair ", ns_to_binary(NS)]);
mk_span_name(Func, NS) ->
iolist_to_binary(["hellgate ", atom_to_binary(Func), " ", ns_to_binary(NS)]).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Префикс "hellgate " для имён спанов кажется лишним, ведь экспортироваться он будет уже от имени соответствующего сервиса.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants