クライアント側のトレースでは、RPC を実行して収集され、クライアントからのリクエストごとにいくつかの情報を提供します。たとえば、クライアントが RPC リクエストを送信した時点やクライアントが RPC レスポンスを受信した時点のタイムスタンプを含むスパンが含まれます。スパンに含まれるのは、ネットワークとクライアント システムによって発生するレイテンシです。
クライアントサイドのトレースには、次の情報を設定できます。
スパンのメタデータ
| スパン ID | このスパンの一意の ID |
| 親スパン ID | 親スパンの ID(ルートスパンには設定されません) |
| プロジェクト ID | Google Cloud トレースを取り込んだプロジェクト ID |
| 開始時刻 | スパンの開始時間 |
| 終了時刻 | スパンの終了時間 |
スパン属性
| クライアントのバージョン | |
|---|---|
| otel.scope.version | 文字列 |
| クライアント環境 | |
| gcp.datastore.memory_utilization | double型(パーセント) |
| クライアント接続プロパティ | |
| gcp.datastore.settings.channel.needs_credentials | ブール値 |
| gcp.datastore.settings.channel.needs_endpoint | ブール値 |
| gcp.datastore.settings.channel.needs_headers | ブール値 |
| gcp.datastore.settings.channel.should_auto_close | ブール値 |
| gcp.datastore.settings.channel.transport_name | 文字列の例: 「grpc」 |
| gcp.datastore.settings.credentials.authentication_type | 文字列の例: 「OAuth2」 |
| gcp.datastore.settings.host | 文字列の例: "datastore.googleapis.com:443" |
| データベースのプロパティ | |
| gcp.datastore.settings.project_id | 文字列 Datastore データベースを含むGoogle Cloud プロジェクト ID |
| gcp.datastore.settings.database_id | 文字列 データベースの外部 ID(名前) |
| クライアント RPC の再試行設定 | |
| gcp.datastore.settings.retrySettings.initial_retry_delay | 文字列 実行時間(秒) 例:0.01s |
| gcp.datastore.settings.retrySettings.initial_rpc_timeout | |
| gcp.datastore.settings.retrySettings.max_attempts | 整数(数) |
| gcp.datastore.settings.retrySettings.max_retry_delay | 文字列 実行時間(秒) 例:0.1s |
| gcp.datastore.settings.retrySettings.max_rpc_timeout | |
| gcp.datastore.settings.retrySettings.retry_delay_multiplier | double |
| gcp.datastore.settings.retrySettings.rpc_timeout_multiplier | double |
| gcp.datastore.settings.retrySettings.total_timeout | 文字列 実行時間(秒) |
| OpenTelemetry の構成 | |
| otel.scope.name | 文字列の例: "com.google.cloud.datastore" |
| service.name | Sparky |
| telemetry.sdk.language | 文字列の例: "java" |
| telemetry.sdk.name | opentelemetry |
| telemetry.sdk.version | 例: 1.29.0 |
ログとイベント
クライアントサイド トレースでは、次のログとイベントが提供されます。
ルックアップ イベント
| イベント: 「Lookup complete」 「Transaction.Lookup complete」 |
|
|---|---|
| 受信 | Integer |
| 見つからない | Integer |
| 保留中 | Integer |
| transactional | ブール値 |
| transaction_id | 文字列 |
コミット イベント
| イベント: 「Commit complete」 「Transaction.Commit complete」 |
|
|---|---|
| doc_count | 整数 |
| transactional | ブール値 |
| transaction_id | 文字列 |
RunQuery イベント
| イベント: 「RunQuery complete」 「Transaction.RunQuery complete」 |
|
|---|---|
| doc_count | 整数 |
| transactional | ブール値 |
| transaction_id | 文字列 |
| read_conistencey | STRONG または EVENTUAL |
| more_results | 次のいずれか:
|