Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
709e1bf9
Unverified
Commit
709e1bf9
authored
Jan 14, 2025
by
Sebastian Stammler
Committed by
GitHub
Jan 14, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
op-node/rollup/derive: add info logging (#13753)
parent
f7ce7829
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
channel_assembler.go
op-node/rollup/derive/channel_assembler.go
+1
-0
channel_in_reader.go
op-node/rollup/derive/channel_in_reader.go
+2
-2
No files found.
op-node/rollup/derive/channel_assembler.go
View file @
709e1bf9
...
@@ -96,6 +96,7 @@ func (ca *ChannelAssembler) NextRawChannel(ctx context.Context) ([]byte, error)
...
@@ -96,6 +96,7 @@ func (ca *ChannelAssembler) NextRawChannel(ctx context.Context) ([]byte, error)
if
frame
.
FrameNumber
==
0
{
if
frame
.
FrameNumber
==
0
{
ca
.
metrics
.
RecordHeadChannelOpened
()
ca
.
metrics
.
RecordHeadChannelOpened
()
ca
.
channel
=
NewChannel
(
frame
.
ID
,
origin
,
true
)
ca
.
channel
=
NewChannel
(
frame
.
ID
,
origin
,
true
)
lgr
.
Info
(
"created new channel"
)
}
}
if
frame
.
FrameNumber
>
0
&&
ca
.
channel
==
nil
{
if
frame
.
FrameNumber
>
0
&&
ca
.
channel
==
nil
{
lgr
.
Warn
(
"dropping non-first frame without channel"
,
lgr
.
Warn
(
"dropping non-first frame without channel"
,
...
...
op-node/rollup/derive/channel_in_reader.go
View file @
709e1bf9
...
@@ -105,7 +105,7 @@ func (cr *ChannelInReader) NextBatch(ctx context.Context) (Batch, error) {
...
@@ -105,7 +105,7 @@ func (cr *ChannelInReader) NextBatch(ctx context.Context) (Batch, error) {
if
err
!=
nil
{
if
err
!=
nil
{
return
nil
,
err
return
nil
,
err
}
}
batch
.
LogContext
(
cr
.
log
)
.
Debug
(
"decoded singular batch from channel"
,
"stage_origin"
,
cr
.
Origin
())
batch
.
LogContext
(
cr
.
log
)
.
Info
(
"decoded singular batch from channel"
,
"stage_origin"
,
cr
.
Origin
())
cr
.
metrics
.
RecordDerivedBatches
(
"singular"
)
cr
.
metrics
.
RecordDerivedBatches
(
"singular"
)
return
batch
,
nil
return
batch
,
nil
case
SpanBatchType
:
case
SpanBatchType
:
...
@@ -119,7 +119,7 @@ func (cr *ChannelInReader) NextBatch(ctx context.Context) (Batch, error) {
...
@@ -119,7 +119,7 @@ func (cr *ChannelInReader) NextBatch(ctx context.Context) (Batch, error) {
if
err
!=
nil
{
if
err
!=
nil
{
return
nil
,
err
return
nil
,
err
}
}
batch
.
LogContext
(
cr
.
log
)
.
Debug
(
"decoded span batch from channel"
,
"stage_origin"
,
cr
.
Origin
())
batch
.
LogContext
(
cr
.
log
)
.
Info
(
"decoded span batch from channel"
,
"stage_origin"
,
cr
.
Origin
())
cr
.
metrics
.
RecordDerivedBatches
(
"span"
)
cr
.
metrics
.
RecordDerivedBatches
(
"span"
)
return
batch
,
nil
return
batch
,
nil
default
:
default
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment