Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
* [lttng-dev] Tagging traces with arbitrary data (as in custom metadata)
@ 2013-11-05 14:15 David Lindström
  2013-11-05 14:20 ` Mathieu Desnoyers
  0 siblings, 1 reply; 4+ messages in thread
From: David Lindström @ 2013-11-05 14:15 UTC (permalink / raw)


Hi, I was wondering if there?s a way to tag a trace with some additional information. A general example would be to include a description of the current experiment. One way to do this currently would be to create a custom lttng-message application with some UST tracepoint and then just log that to a separate channel, but that would be pretty ugly. It would be much cleaner to insert extra fields into the metadata stream. Is something like that possible in current versions of LTTng and/or would it be possible to add it for a future version?

Mvh
David Lindstr?m
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20131105/7874caa6/attachment.html>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [lttng-dev] Tagging traces with arbitrary data (as in custom metadata)
  2013-11-05 14:15 [lttng-dev] Tagging traces with arbitrary data (as in custom metadata) David Lindström
@ 2013-11-05 14:20 ` Mathieu Desnoyers
  2013-11-05 14:49   ` [lttng-dev] Tagging traces with arbitrary data (as in custommetadata) David Lindström
  0 siblings, 1 reply; 4+ messages in thread
From: Mathieu Desnoyers @ 2013-11-05 14:20 UTC (permalink / raw)


----- Original Message -----

> From: "David Lindstr?m" <david.lindstrom@percepio.se>
> To: lttng-dev at lists.lttng.org
> Sent: Tuesday, November 5, 2013 9:15:14 AM
> Subject: [lttng-dev] Tagging traces with arbitrary data (as in custom
> metadata)

> Hi, I was wondering if there?s a way to tag a trace with some additional
> information. A general example would be to include a description of the
> current experiment. One way to do this currently would be to create a custom
> lttng-message application with some UST tracepoint and then just log that to
> a separate channel, but that would be pretty ugly. It would be much cleaner
> to insert extra fields into the metadata stream. Is something like that
> possible in current versions of LTTng and/or would it be possible to add it
> for a future version?

The CTF metadata has an environment (env {}) section that contains this kind of information. LTTng already uses it to store the tracer version and some info about the system. We could eventually add a feature like this, a "tag", that would be added to the CTF environment information. I would guess that users would provide this tag on the lttng command line for their session, and it would be passed to the tracers by sessiond. 

Thoughts ? 

Thanks, 

Mathieu 

> Mvh
> David Lindstr?m

> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

-- 
Mathieu Desnoyers 
EfficiOS Inc. 
http://www.efficios.com 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20131105/cf239061/attachment.html>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [lttng-dev] Tagging traces with arbitrary data (as in custommetadata)
  2013-11-05 14:20 ` Mathieu Desnoyers
@ 2013-11-05 14:49   ` David Lindström
  2014-02-03 16:09     ` Mathieu Desnoyers
  0 siblings, 1 reply; 4+ messages in thread
From: David Lindström @ 2013-11-05 14:49 UTC (permalink / raw)


  From: Mathieu Desnoyers 
  Sent: Tuesday, November 05, 2013 3:20 PM
  To: DavidLindstr?m 
  Cc: lttng-dev at lists.lttng.org 
  Subject: Re: [lttng-dev] Tagging traces with arbitrary data (as in custommetadata)


------------------------------------------------------------------------------

    From: "David Lindstr?m" <david.lindstrom@percepio.se>
    To: lttng-dev at lists.lttng.org
    Sent: Tuesday, November 5, 2013 9:15:14 AM
    Subject: [lttng-dev] Tagging traces with arbitrary data (as in custom        metadata)


    Hi, I was wondering if there?s a way to tag a trace with some additional information. A general example would be to include a description of the current experiment. One way to do this currently would be to create a custom lttng-message application with some UST tracepoint and then just log that to a separate channel, but that would be pretty ugly. It would be much cleaner to insert extra fields into the metadata stream. Is something like that possible in current versions of LTTng and/or would it be possible to add it for a future version?

  The CTF metadata has an environment (env {}) section that contains this kind of information. LTTng already uses it to store the tracer version and some info about the system. We could eventually add a feature like this, a "tag", that would be added to the CTF environment information. I would guess that users would provide this tag on the lttng command line for their session, and it would be passed to the tracers by sessiond.


  Thoughts ?


I have no idea how this would be implemented, I?m only looking at potential uses. A simple tag field in the env{} section should cover my initial use cases. I have to wonder though, how much more complicated it would be to allow multiple named tags? For example, tags.description = ?Some description? instead of tag = ?Some description??

Also, how would one specify this? As an option to the lttng create command or as a separate command (lttng set-tag ...)?

Mvh
David Lindstr?m

  Thanks,


  Mathieu


    Mvh
    David Lindstr?m

    _______________________________________________
    lttng-dev mailing list
    lttng-dev at lists.lttng.org
    http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev





  -- 

  Mathieu Desnoyers
  EfficiOS Inc.
  http://www.efficios.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20131105/ec95218f/attachment-0001.html>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [lttng-dev] Tagging traces with arbitrary data (as in custommetadata)
  2013-11-05 14:49   ` [lttng-dev] Tagging traces with arbitrary data (as in custommetadata) David Lindström
@ 2014-02-03 16:09     ` Mathieu Desnoyers
  0 siblings, 0 replies; 4+ messages in thread
From: Mathieu Desnoyers @ 2014-02-03 16:09 UTC (permalink / raw)


----- Original Message -----

> From: "David Lindstr?m" <david.lindstrom@percepio.se>
> To: "Mathieu Desnoyers" <mathieu.desnoyers at efficios.com>, "DavidLindstr?m"
> <david.lindstrom at percepio.se>
> Cc: lttng-dev at lists.lttng.org
> Sent: Tuesday, November 5, 2013 9:49:08 AM
> Subject: Re: [lttng-dev] Tagging traces with arbitrary data (as in
> custommetadata)

> > From: Mathieu Desnoyers
> 
> > Sent: Tuesday, November 05, 2013 3:20 PM
> 
> > To: DavidLindstr?m
> 
> > Cc: lttng-dev at lists.lttng.org
> 
> > Subject: Re: [lttng-dev] Tagging traces with arbitrary data (as in
> > custommetadata)
> 
> > ----- Original Message -----
> 

> > > From: "David Lindstr?m" <david.lindstrom@percepio.se>
> > 
> 
> > > To: lttng-dev at lists.lttng.org
> > 
> 
> > > Sent: Tuesday, November 5, 2013 9:15:14 AM
> > 
> 
> > > Subject: [lttng-dev] Tagging traces with arbitrary data (as in custom
> > > metadata)
> > 
> 
> > > Hi, I was wondering if there?s a way to tag a trace with some additional
> > > information. A general example would be to include a description of the
> > > current experiment. One way to do this currently would be to create a
> > > custom
> > > lttng-message application with some UST tracepoint and then just log that
> > > to
> > > a separate channel, but that would be pretty ugly. It would be much
> > > cleaner
> > > to insert extra fields into the metadata stream. Is something like that
> > > possible in current versions of LTTng and/or would it be possible to add
> > > it
> > > for a future version?
> > 
> 

> > The CTF metadata has an environment (env {}) section that contains this
> > kind
> > of information. LTTng already uses it to store the tracer version and some
> > info about the system. We could eventually add a feature like this, a
> > "tag",
> > that would be added to the CTF environment information. I would guess that
> > users would provide this tag on the lttng command line for their session,
> > and it would be passed to the tracers by sessiond.
> 
> > Thoughts ?
> 

> I have no idea how this would be implemented, I?m only looking at potential
> uses. A simple tag field in the env{} section should cover my initial use
> cases. I have to wonder though, how much more complicated it would be to
> allow multiple named tags? For example, tags.description = ?Some
> description? instead of tag = ?Some description??

This could be called "user-provided environment", and could look like this in the metadata: 

env { 
.... 
user.myenvname = "text"; 
} 

> Also, how would one specify this? As an option to the lttng create command or
> as a separate command (lttng set-tag ...)?

lttng set-env "text" 

Thoughts ? 

Thanks, 

Mathieu 

> Mvh
> David Lindstr?m

> > Thanks,
> 
> > Mathieu
> 

> > > Mvh
> > 
> 
> > > David Lindstr?m
> > 
> 

> > > _______________________________________________
> > 
> 
> > > lttng-dev mailing list
> > 
> 
> > > lttng-dev at lists.lttng.org
> > 
> 
> > > http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
> > 
> 

> > --
> 
> > Mathieu Desnoyers
> 
> > EfficiOS Inc.
> 
> > http://www.efficios.com
> 

-- 
Mathieu Desnoyers 
EfficiOS Inc. 
http://www.efficios.com 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20140203/20a2a7a6/attachment.html>


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-02-03 16:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-05 14:15 [lttng-dev] Tagging traces with arbitrary data (as in custom metadata) David Lindström
2013-11-05 14:20 ` Mathieu Desnoyers
2013-11-05 14:49   ` [lttng-dev] Tagging traces with arbitrary data (as in custommetadata) David Lindström
2014-02-03 16:09     ` Mathieu Desnoyers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox