I hereby claim:
- I am apotterri on github.
- I am apotterri (https://keybase.io/apotterri) on keybase.
- I have a public key ASB5kR1Wr_iltGpQTvnTEqsrl2gn4HoynFO8o_P4_yTGygo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
5dbe76a39d2af565facc84e3b49049a2 |
#!/usr/bin/env ruby | |
# frozen_string_literal: true | |
def env_var(key) | |
var = ENV[key] | |
if var.nil? || var.empty? | |
nil | |
else | |
var | |
end |
This simple example demonstrates loading data generated by an AppMap recording client (for Ruby or Java) into the graph database neo4j.
A full description of this example is available at https://appland.org/code-gallery/querying-appmap-data
Interesting files in this gist:
import sys | |
def caller(): | |
def frames(): | |
f = sys._getframe().f_back.f_back | |
while f is not None: | |
yield (f.f_code.co_filename, f.f_lineno, | |
f.f_code.co_name, f.f_locals) | |
f = f.f_back |
A simple recording example.
To run:
% APPMAP=true python tst > simple.appmap.json
import os | |
import sys | |
import appmap | |
r = appmap.Recording() | |
with r: | |
import rag | |
rag.run() |