Skip to content

Commit

Permalink
update canton to 20240910.12237.0.v1f685566/2.10.0-snapshot.20240910.…
Browse files Browse the repository at this point in the history
…12237.0.v1f685566 in main-2.x (#19910)

tell-slack: canton

Co-authored-by: Azure Pipelines Daml Build <support@digitalasset.com>
  • Loading branch information
azure-pipelines[bot] and Azure Pipelines Daml Build authored Sep 11, 2024
1 parent 7e22471 commit 02eab57
Show file tree
Hide file tree
Showing 77 changed files with 93 additions and 4,238 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ object DomainManagerStatus {
active = status.active,
topologyQueue = status.topologyQueue,
components = status.components,
version = Some(ReleaseVersion.current),
version = status.version,
protocolVersion = protocolVersion.some,
)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ object DomainNodeStatus {
sequencer = sequencer,
topologyQueue = status.topologyQueue,
components = status.components,
version = Some(ReleaseVersion.current),
version = status.version,
protocolVersion = protocolVersion.some,
)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ object MediatorStatus {
active = status.active,
topologyQueue = status.topologyQueue,
components = status.components,
version = Some(ReleaseVersion.current),
version = status.version,
protocolVersion = protocolVersion.some,
)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ object ParticipantStatus {
active = status.active,
status.topologyQueue,
status.components,
Some(ReleaseVersion.current),
status.version,
Some(supportedProtocolVersions),
)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ object SequencerStatus {
connectedParticipants = participants,
topologyQueue = status.topologyQueue,
components = status.components,
version = Some(ReleaseVersion.current),
version = status.version,
protocolVersion = protocolVersion.some,
domainId = domainId,
sequencer = sequencer,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

package com.digitalasset.canton.ledger.api

import com.daml.ledger.api.v2.reassignment.Reassignment
import com.daml.ledger.api.v2.transaction.{Transaction, TransactionTree}
import com.daml.tracing.SpanAttribute

Expand Down Expand Up @@ -40,20 +39,4 @@ object TraceIdentifiers {

attributes.result()
}

/** Extract identifiers from a reassignment message.
*/
def fromReassignment(reassignment: Reassignment): Map[SpanAttribute, String] = {
val attributes = Map.newBuilder[SpanAttribute, String]

def setIfNotEmpty(attribute: SpanAttribute, value: String): Unit =
if (!value.isEmpty) attributes += attribute -> value

setIfNotEmpty(SpanAttribute.Offset, reassignment.offset)
setIfNotEmpty(SpanAttribute.CommandId, reassignment.commandId)
setIfNotEmpty(SpanAttribute.TransactionId, reassignment.updateId)
setIfNotEmpty(SpanAttribute.WorkflowId, reassignment.workflowId)

attributes.result()
}
}

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 02eab57

Please sign in to comment.