ActivitySpanId Estrutura
Definição
public value class ActivitySpanId : IEquatable<System::Diagnostics::ActivitySpanId>
public struct ActivitySpanId : IEquatable<System.Diagnostics.ActivitySpanId>
type ActivitySpanId = struct
Public Structure ActivitySpanId
Implements IEquatable(Of ActivitySpanId)
- Herança
- Implementações
Comentários
A ActivitySpanId estrutura reflete o formato que o padrão W3C requer para a ID de um único span em um rastreamento.The ActivitySpanId structure reflects the format that the W3C standard requires for the ID of a single span in a trace. Ele consiste em 8 bytes, normalmente exibidos como 16 caracteres hexadecimais.It consists of 8 bytes, typically displayed as 16 hexadecimal characters. Um ActivitySpanId é retornado pelo SpanId para um Activity cujo Activity.IdFormat é W3C .An ActivitySpanId is returned by the SpanId for an Activity whose Activity.IdFormat is W3C.
Como um ActivitySpanId é uma estrutura que contém 8 bytes, ele pode ser passado por referência.Because an ActivitySpanId is a structure that contains 8 bytes, it can be passed by reference. ActivitySpanId contém métodos para converter de e para a representação de cadeia de caracteres hexadecimal, tenta evitar a alteração de formatos até que ele precise e armazena em cache sua representação de cadeia de caracteres após sua criação.ActivitySpanId contains methods for converting to and from hexadecimal string representation, tries to avoid changing formats until it has to, and caches its string representation after it is created. Ele é principalmente útil como um tipo de troca.It is mostly useful as an exchange type.
Métodos
| CopyTo(Span<Byte>) |
Copia os 8 bytes do ActivitySpanId atual para um intervalo especificado.Copies the 8 bytes of the current ActivitySpanId to a specified span. |
| CreateFromBytes(ReadOnlySpan<Byte>) |
Cria um valor ActivitySpanId com base em um intervalo somente leitura de 8 bytes.Creates a new ActivitySpanId value from a read-only span of eight bytes. |
| CreateFromString(ReadOnlySpan<Char>) |
Cria um valor ActivitySpanId com base em um intervalo somente leitura de 16 caracteres hexadecimais.Creates a new ActivitySpanId value from a read-only span of 16 hexadecimal characters. |
| CreateFromUtf8String(ReadOnlySpan<Byte>) |
Cria um valor ActivitySpanId com base em um intervalo somente leitura de bytes codificados por UTF8.Creates a new ActivitySpanId value from a read-only span of UTF8-encoded bytes. |
| CreateRandom() |
Cria um ActivitySpanId com base em um número aleatório (que muito provavelmente seja exclusivo).Creates a new ActivitySpanId based on a random number (that is very likely to be unique). |
| Equals(ActivitySpanId) |
Determina se essa instância e a instância de ActivitySpanId especificada têm o mesmo valor.Determines whether this instance and the specified ActivitySpanId instance have the same value. |
| Equals(Object) |
A instância atual e um objeto especificado, que também deve ser uma instância de ActivitySpanId, têm o mesmo valor.the current instance and a specified object, which also must be an ActivitySpanId instance, have the same value. |
| GetHashCode() |
Retorna o código hash do SpanId.Returns the hash code of the SpanId. |
| ToHexString() |
Retorna uma cadeia de 16 caracteres hexadecimais que representa a ID do intervalo.Returns a 16-character hexadecimal string that represents this span ID. |
| ToString() |
Retorna uma cadeia de 16 caracteres hexadecimais que representa a ID do intervalo.Returns a 16-character hexadecimal string that represents this span ID. |
Operadores
| Equality(ActivitySpanId, ActivitySpanId) |
Determina se duas instâncias de ActivitySpanId especificadas têm o mesmo valor.Determines whether two specified ActivitySpanId instances have the same value. |
| Inequality(ActivitySpanId, ActivitySpanId) |
Determina se duas instâncias de ActivitySpanId especificadas têm valores diferentes.Determine whether two specified ActivitySpanId instances have unequal values. |