Add scoped trace snippets