At the moment, it is not possible to combine custom and built-in traces. 
The same is true for spans within traces. You can however, create entirely 
custom traces using the projects.patchTrace 
<https://cloud.google.com/trace/api/reference/rest/v1/projects/patchTraces> 
REST API. You could for instance, create spans 
<https://cloud.google.com/trace/api/reference/rest/v1/projects.traces#Trace> 
during 
your requests to represent each of the time consuming steps throughout the 
lifespan of the request and then POST this in JSON format to the 
projects.patchTrace specific URL as shown in the API definition. This may 
be somewhat cumbersome and may not reveal some background details the 
built-ins show, but you can still trace important time frames such as your 
SQL commands and results.

There are already some Cloud Trace SDKs 
<https://cloud.google.com/trace/api/> for both Java and Node.js that, as 
stated, *provide additional wrapper functionality that makes it easy to 
write latency data from your applications to Cloud Trace.*

On Tuesday, January 19, 2016 at 4:41:30 AM UTC-5, troberti wrote:
>
> Sadly I do not know how to do that, but being able to create custom traces 
> for Cloud Trace would be really great feature.
>
>
> On Monday, January 18, 2016 at 3:58:58 AM UTC+1, Học Đỗ wrote:
>>
>> Hi,
>>
>> My GAE app takes about 800ms per request. The Google Cloud Trace shows me 
>> just about 20ms for datastore and memcache.
>>
>> Now, I want to trace the CloudSQL connect/query time, and some other 
>> operations (encrypt/decrypt) in my application.
>>
>> From documentation, I know that we can put custom traces to Google Cloud 
>> Trace, I have read the API's documentation but I want to put those custom 
>> traces together with builtin traces. I don't know how.
>>
>> Do you guys have any idea or documentation about that?
>>
>> P/S: I'm using Python, and suppose that this should be
>>
>> <!-- language: lang-python -->
>>
>>     @cloud_trace.trace()
>>     def decrypt_data():
>>         pass
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/2821eda6-898a-483f-bbb6-5533a856a039%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to