[[["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-04 UTC."],[],[],null,["# Cloud Trace API - Class Google::Cloud::Trace::Credentials (v0.45.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.45.0 (latest)](/ruby/docs/reference/google-cloud-trace/latest/Google-Cloud-Trace-Credentials)\n- [0.44.1](/ruby/docs/reference/google-cloud-trace/0.44.1/Google-Cloud-Trace-Credentials)\n- [0.43.0](/ruby/docs/reference/google-cloud-trace/0.43.0/Google-Cloud-Trace-Credentials)\n- [0.42.2](/ruby/docs/reference/google-cloud-trace/0.42.2/Google-Cloud-Trace-Credentials)\n- [0.41.4](/ruby/docs/reference/google-cloud-trace/0.41.4/Google-Cloud-Trace-Credentials) \nReference documentation and code samples for the Cloud Trace API class Google::Cloud::Trace::Credentials.\n\nCredentials\n-----------\n\nRepresents the authentication and authorization used to connect to the\nStackdriver Trace API. \n\nInherits\n--------\n\n- Google::Cloud::Trace::V1::TraceService::Credentials\n\nExample\n-------\n\n```ruby\nrequire \"google/cloud/trace\"\n\nkeyfile = \"/path/to/keyfile.json\"\ncreds = Google::Cloud::Trace::Credentials.new keyfile\n\ntrace = Google::Cloud::Trace.new(\n project_id: \"my-project\",\n credentials: creds\n)\n\ntrace.project_id #=\u003e \"my-project\"\n```"]]