(::Array<::Google::Cloud::Trace::V2::Span>) — Required. A list of new spans. The span names must not match existing
spans, otherwise the results are undefined.
value (::Array<::Google::Cloud::Trace::V2::Span>) — Required. A list of new spans. The span names must not match existing
spans, otherwise the results are undefined.
Returns
(::Array<::Google::Cloud::Trace::V2::Span>) — Required. A list of new spans. The span names must not match existing
spans, otherwise the results are undefined.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Cloud Trace V2 API - Class Google::Cloud::Trace::V2::BatchWriteSpansRequest (v1.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.3.0 (latest)](/ruby/docs/reference/google-cloud-trace-v2/latest/Google-Cloud-Trace-V2-BatchWriteSpansRequest)\n- [1.2.1](/ruby/docs/reference/google-cloud-trace-v2/1.2.1/Google-Cloud-Trace-V2-BatchWriteSpansRequest)\n- [1.1.0](/ruby/docs/reference/google-cloud-trace-v2/1.1.0/Google-Cloud-Trace-V2-BatchWriteSpansRequest)\n- [1.0.1](/ruby/docs/reference/google-cloud-trace-v2/1.0.1/Google-Cloud-Trace-V2-BatchWriteSpansRequest)\n- [0.9.0](/ruby/docs/reference/google-cloud-trace-v2/0.9.0/Google-Cloud-Trace-V2-BatchWriteSpansRequest)\n- [0.8.2](/ruby/docs/reference/google-cloud-trace-v2/0.8.2/Google-Cloud-Trace-V2-BatchWriteSpansRequest)\n- [0.7.0](/ruby/docs/reference/google-cloud-trace-v2/0.7.0/Google-Cloud-Trace-V2-BatchWriteSpansRequest)\n- [0.6.1](/ruby/docs/reference/google-cloud-trace-v2/0.6.1/Google-Cloud-Trace-V2-BatchWriteSpansRequest)\n- [0.5.0](/ruby/docs/reference/google-cloud-trace-v2/0.5.0/Google-Cloud-Trace-V2-BatchWriteSpansRequest)\n- [0.4.1](/ruby/docs/reference/google-cloud-trace-v2/0.4.1/Google-Cloud-Trace-V2-BatchWriteSpansRequest)\n- [0.3.5](/ruby/docs/reference/google-cloud-trace-v2/0.3.5/Google-Cloud-Trace-V2-BatchWriteSpansRequest) \nReference documentation and code samples for the Cloud Trace V2 API class Google::Cloud::Trace::V2::BatchWriteSpansRequest.\n\nThe request message for the `BatchWriteSpans` method. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #name\n\n def name() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. The name of the project where the spans belong. The format is `projects/[PROJECT_ID]`.\n\n### #name=\n\n def name=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. The name of the project where the spans belong. The format is `projects/[PROJECT_ID]`. \n**Returns**\n\n- (::String) --- Required. The name of the project where the spans belong. The format is `projects/[PROJECT_ID]`.\n\n### #spans\n\n def spans() -\u003e ::Array\u003c::Google::Cloud::Trace::V2::Span\u003e\n\n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::Trace::V2::Span](./Google-Cloud-Trace-V2-Span)\\\u003e) --- Required. A list of new spans. The span names must not match existing spans, otherwise the results are undefined.\n\n### #spans=\n\n def spans=(value) -\u003e ::Array\u003c::Google::Cloud::Trace::V2::Span\u003e\n\n**Parameter**\n\n- **value** (::Array\\\u003c[::Google::Cloud::Trace::V2::Span](./Google-Cloud-Trace-V2-Span)\\\u003e) --- Required. A list of new spans. The span names must not match existing spans, otherwise the results are undefined. \n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::Trace::V2::Span](./Google-Cloud-Trace-V2-Span)\\\u003e) --- Required. A list of new spans. The span names must not match existing spans, otherwise the results are undefined."]]